/* ##########################
   h1.title1{
      font-size: 40pt;
      font-family: "Century Gothic", Helvetica, sans-serif;  
      letter-spacing: -.5px; 
      font-weight:lighter;
    }

    .content{
      font-size: 12pt;
      font-family: Calibri, Helvetica, sans-serif;
      letter-spacing: .5px; 
      color:#565656;
      line-height: 1.8em;
      text-rendering: geometricPrecision;
    }
########################### */

p{
  font-family: "Century Gothic", Helvetica, sans-serif;  
}

a{
  color: black;
}

.content{
  font-size: 14pt;
  font-family: Calibri, Helvetica, sans-serif;
  letter-spacing: .5px; 
  color:#565656;
  line-height: 1.8em;
  text-rendering: geometricPrecision;
}


h1{
  font-size: 40pt;
  font-family: "Century Gothic", Helvetica, sans-serif;  
  letter-spacing: -.5px; 
  font-weight:lighter;
}
h2{
  font-size: 40px;
  font-family: "Century Gothic", Helvetica, sans-serif;  
  letter-spacing: -.5px; 
  font-weight:lighter;
}
h3{
  font-weight: lighter;
}

body {
    margin: 0;
    padding: 0;
    color: #444444;
    min-width: 1000px;
    min-height: 100vh;
    overflow: -moz-scrollbars-vertical; 
    overflow-y: scroll;
    box-sizing: border-box;
    font-family: Arial,Helvetica,sans-serif;
    font-weight: lighter;
  }


  header {
    position: sticky;
    top: 0;
    background-color: white;
    text-align: center;
    padding: 40px 0px 10px 0px;
    font-size: 20px;
    font-weight: bold;
    z-index: 3;
    width: 100%;
  }
/* 
  a{
    color: #000;
  } */


  .header-title a{
    display: flex;
    justify-content: space-evenly;
    max-width: 1000px;
    margin: auto;
    text-decoration: none; 
    color: #444444;
    font-weight: lighter;
  }
  .header-title a:hover{
    color: #8ca76d;
  }

  header span {
    margin: 0 20px;
  }


  .nav-bar {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    color: #444444;
  }


  .nav-bar a {
    text-decoration: none;
    margin: 0px 10px;
    font-weight: lighter;
    font-size: 15px;
    flex-wrap: nowrap;
    color: #444444;
  }


  .nav-bar a:hover {
    color: #8ca76d;
  }

  .nav-bar ul{
     padding: 0px;
     display: grid;
     grid-template-columns: repeat(8, auto);
     list-style-type: none;
  }

  .nav-bar ul li{
    padding: 5px 2px 10px 2px;
    position: relative;
 }

  .nav-bar ul ul{
    padding: 0px;
    margin-top: 10px;
    position: absolute;
    z-index: 2;
    list-style-type: none;
    display: none;
    background-color: white;
    font-size: 14px;
    /* left: -30px; */
  }
  .nav-bar ul li ul > li{
    padding: 8px 5px;
    white-space: nowrap;
  }

  .nav-bar ul li:hover > ul{
    display: block;
 }

  .nav-item.active > a,
  .sub-nav-item.active > a {
      color: #8ca76d; /* 當前頁面的顏色 */
  }

  .home-description{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px 0 40px 0;
    background-color: rgba(0, 0, 0, 0.3);
 }

  .hero {
    position: relative;
     height: 655px;
    text-align: center;
    
    /* display: flex; */
  }


  .hero img {
    width: 100%;
    height: 655px;
    display: block;
    object-fit: cover;
     /* object-position: 100%; */
    position: absolute;
    top: 0;
    left: 0;
  }


  .hero h1 {
    font-size: 30px;
    font-weight:100;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  }


  .hero p {
    font-size: 14px;
    color: #fff;
    margin: 10px 0 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  }

    .hero p span {
        font-family : "Palace Script MT";
    font-size: 40px;
    }

  footer {
    text-align: center;
    padding: 30px 10px 20px 10px;
    font-size: 14px;
    color: #888;
  }

  .cardiac-ana-title-container h1{
    margin: auto;
  }

  /* Cardiac Anaesthesia */
  .cardiac-ana-title-container{
    display: grid;
    grid-template-columns: 3fr 5fr;
    margin: 0 max(20px, calc((100% - 1500px)/2));
  }
  .cardiac-ana-title-container img{
    /* max-width: 100%; */
    /* width: calc((100% - 100px)/2); */
    width: 100%;
    height: 400px;
    object-fit: contain;
  }
  .cardiac-ana-content{
    margin: 60px auto;
    padding: 40px 0px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    text-align: center;
    background-color: rgb(235, 235, 235);
  }
  .cardiac-ana-content > div{
    display: block;
    padding: 50px 0;
  }
  .cardiac-ana-content svg{
    width: 38px;
    height: 38px;
  }


  /* about us  */
  .aboutus-header-container{
    display: flex;
    justify-content: center;
  }
  .aboutus-header{
    padding: 50px 20px;
    /* width: 37%; */
    max-width: 900px;
    text-align: center;
  }
  .aboutus-header h1 {
    font-size: 50px;
  }
  .aboutus-header-content{
    line-height: 1.8em;
  }
  .aboutus-border{
    border: 1px solid black;
  }
  .aboutus-content{
    height: 100%;
    min-height: 1000px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
  }
  .aboutus-content img{
    width: 100%;
    /* height: 100%; */
    height: 600px;
    object-fit: cover;
  }
  .aboutus-content div{
    width: 350px;
    line-height: 2em;
    margin: auto;
    text-align: justify;
    font-size: 14px;
  }
  .aboutus-content div h2{
    text-align: center;
    margin-bottom: 60px;
  }

  /* meet the team */

  .meet-the-team-header{
    margin-left: calc((100% - 900px)/2);
    max-width: 700px;
    text-align: left;
    margin-bottom: 30px;
    font-size: 14px;
  }
  .meet-the-team-header h1{
    font-size: 50px;
  }
  .meet-the-team-photo-container{
    background-color: rgba(136, 136, 136, 0.171);
    margin: 0px 40px;
    position: static;
    display: grid;
    height: auto;
    min-height: auto;
  }
  .meet-the-team-photo-card{
    position: relative;
    z-index: 1;
    margin: 10px 0;
    display: flex;
    justify-content: center;
  }
  .meet-the-team-photo-card img{
    height: 320px;
    /* object-fit: cover; */
  }
  .meet-the-team-photo-card-discription{
    background-color: white;
    position: absolute;
    top: 270px;
    left: 50px;
    padding: 0px 15px;
    width: 225px;
  }
  .meet-the-team-photo-card-discription h3{
    margin: 20px 0 0 0;
  }
  .meet-the-team-photo-card-discription p{
    margin-top: 0;
    font-size: 14px;
    padding: 3px 0;
  }
  .meet-the-team-card-grid{
    padding: 30px 30px 70px 30px;
    display: grid;
    gap: 50px;

    grid-template-columns: repeat(auto-fill, 300px);
    grid-template-rows: auto;

    justify-content: center;
    /* justify-content: flex-start; */
  }

  .thoracic-header-container{
    margin: auto;
    padding: 40px 80px;
    background-color: rgba(136, 136, 136, 0.11);
    justify-content: center;
    position: relative;
}
.thoracic-header{
    display: flex;
    justify-content: start;
    width: 70%;
    
}
.thoracic-header img{
    width: 90%;
    object-fit: cover;
    height: 350px;
}
.thoracic-header-card{
    position:absolute;
    text-align: center;
    background-color: white;
    padding: 50px 40px;
    bottom: 40px;
    right: 100px;
    width: 50%;
    display: flex;
    justify-content: center;
}
.thoracic-header-card > div{
  text-align: start;
    /* width: 80%; */
    /* min-width: 620px; */
}
.thoracic-header-card div > div{
  font-size: 14px;
    /* width: 70%; */
}

.thoracic-header-card h1{
    font-size: 50px;
    white-space: nowrap;
}


.photo-album-container{
    margin: 0px 40px;
    position: static;
    display: flex;
    justify-content: center;
    height: auto;
    min-height: auto;
}
.photo-album-grid{
    font-family: Calibri, Helvetica, sans-serif;
    padding: 30px 30px 70px 30px;
    display: grid;
    gap: 20px;
    overflow: hidden;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    justify-content: center;
    text-align: center;
}
.photo-album-grid div{
    max-height: 600px;
    max-width: 600px;
    position: relative; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    object-fit: cover;
}
.photo-album-grid div:hover > img{
  transform: scale(1.1);
}
.photo-album-grid div:hover > div{
  /* background-color: transparent; */
  opacity: 0;
  transform: scale(1.1);
}
.photo-album-grid div div{
  transition: all 1s;
  z-index: 1;
  position: absolute; 
  background: linear-gradient(rgba(128, 128, 128, 0), rgba(70, 70, 70, 0.5));
  color: white; 
  align-items: flex-end;
  justify-content: start;
  width: 100%;
  height: 100%;
}
.photo-album-grid div div span{
  margin-bottom: 10%;
  margin-left: 10%;
  text-align: left;
}
.photo-album-grid img{
    object-fit: cover;
    transition: all 1s;
    height: 100%; 
    aspect-ratio: 1 / 1;
    /* width: auto; */
    /* height: auto;  */
    width: 100%;
    transform-origin: center;
}

.cardiothoracic-header-container{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url(photo/cardiothoracic/background.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0 calc((100% - 1000px)/2);
  width: 980px;
  height: 336px;
}

.cardiothoracic-header-container img{
  width: 100%;
  height: auto;
  width: 980px;
}
.cardiothoracic-header{
  position:relative;
}
.cardiothoracic-header-content{
  /* position: absolute;
  top: 35%;
  left: 18%; */
  background-color: white;
  padding: 16px 7px;
  width: 50%;
  margin: auto;
  line-height: 1.3;
  font-size: 18px;
}
.cardiothoracic-content-container{
  margin: 90px 0px;
}
.cardiothoracic-content-point{
  display: flex;
  justify-content: center;
}
.cardiothoracic-content-point > div{
  width: 290px;
  margin: 30px;
  text-align: center;
  line-height: 1.7;
}

.cardiothoracic-album-container{
  text-align: center;
  font-size: 26px;
}


.contact-us-container{
  background-color: rgba(136, 136, 136, 0.11);
  
}

.contact-upper-container{
  height: 340px;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 80px;
}
.contact-upper-container img{
  object-fit: cover;
}

.contact-upper-content{
  height: 100%;
  width: 67%;
  background-color: white;
  display: flex;
  flex-direction: column;
  padding-left: max(20px, calc((100% - 1150px)/2));
}

.contact-upper-content h1{
  font-size: 50px;
}

.contact-us-lower-container{
  display: flex;
  justify-content: center;
  padding: 30px 80px;
  
}

.contact-us-lower-content{
  width: 100%;
  background-color: white;
  padding: 60px;
  display: flex;
  justify-content: center;
}

.contact-us-lower-details{
  width: 370px;
  margin-right: 50px;
  font-size: 15px;
  line-height: 1.3;
}
.contact-us-phone::before{
  content: "";
  display: flex;
  width: 70px;
  margin-bottom: 35px;
  border-top: 0.1px solid black;
}
.contact-us-phone{
  font-size: 26px;
  line-height: 2;
}

.tee-preceptor-header{
  margin-left: max(20px, calc((100% - 900px)/2));
  line-height: 1.2em;
}
.tee-preceptor-header h2{
  margin-top: 60px;
  margin-bottom: 0;
  font-size: 30px;
}
.tee-preceptor-header ul li{
  padding: 2px 0;
}
.tee-preceptor-content{
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #e0ead4;
  color: white;
  padding: 40px 0 140px 0;
}
.tee-preceptor-content div{
  font-size: 60px;
}
.tee-preceptor-content h2{
  font-size: 32px;
}
.tee-preceptor-poster{
  padding-top: 80px;
  display: flex;
  justify-content: center;
  background-color: rgba(136, 136, 136, 0.096);
}

.clinical-header-container{
  background-image: url(photo/interested_in_us/clinical/background.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 653px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.clinical-header-content{
  background-color: white;
  text-align: center;
  width: 600px;
  height: 400px;
}
.clinical-header-content-box{
  padding: 30px 90px 100px 90px ;
}
.clinical-header-content-box h1{
  font-size: 60px;
}
.clinical-header-content-box div{
  line-height: 1.7;
  margin-bottom: 50px;
}
.clinical-header-content-box a{

  color: white;
  background-color: #8ca76d;
  padding: 10px 20px;
}
.clinical-content-container{
  margin-top: 100px;
  margin-left: max(20px, calc((100% - 900px)/2));
  line-height: 1.7;
}
.clinical-content-container h1{
  font-size: 40px;
}

.work-us-header-container{
  margin-left: max(20px, calc((100% - 900px)/2));
  margin-top: 50px;
  margin-bottom: 70px;
}
.work-us-header-container a{
  text-decoration: none;
}
.work-us-header-container h1{
  font-size: 40px;
}
.work-us-header-container div{
  width: 600px;
  line-height: 1.7;
}
.work-us-content-container{
  background-image: url(photo/interested_in_us/work-with-us/background.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 653px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-us-content-container a{
  text-decoration: none;
}
.work-us-content{
  text-align: center;
  width: 600px;
  height: 400px;
}

.work-us-content-box{
  background-color: white;
  padding: 30px 90px 50px 90px ;
}
.work-us-content-box h1{
  font-size: 32px;
}
.work-us-content-box div{
  line-height: 1.7;
  margin-bottom: 50px;
}
.work-us-content-box > a{
  
  color: white;
  background-color: #8ca76d;
  padding: 10px 20px;
}

.work-us-content-box h1 >a{
  color: black;
}

.gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 100;
  text-align: center;
  display: none;
}
.gallery-top-bar{
  display: flex; 
  justify-content: space-between; 
  flex-direction:row;
  height: 10%;
  margin: 0 70px 0 70px;
  align-items: center;
}
.gallery-top-bar span{
  cursor: pointer;
}
.photo-gallery-container{
  /* margin-left: 10%; */
  /* width: 50%; */
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}
.photo-gallery-container img{
  /* height: 100px; */
  display: block; 
}
.gallery-silder{
  display: flex;
  width: 100%;
  height: 85%;
}
.image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1 2 100px;
  max-width: 100%;
  height: 100%;
}
.image-container img {
  object-fit: cover;
}
.text-container{
  font-family: "Century Gothic", Helvetica, sans-serif;  
  width: 30%;
  justify-content: start;
  text-align: start;
  padding-left: 10px;
}
.button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px;
  cursor: pointer;
}
.prev {
  left: 2%;
}

.next {
  right: 2%;
}


.other-header-container{
  margin-left: 100px;
  margin-left: min(calc((100% - 900px)/2), 100px);

}
.heart-lung-grid{
  /* display: flex; */
  grid-template-columns: repeat(2,auto);
  justify-content: center;
}
.ventricular-grid{
  /* width: 60%; */
  grid-template-columns: repeat(3,auto);
  justify-content: center;
}

.interested-page-container{
  max-width: 1200px;
  margin: auto; 
}
.interested-container{
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.interested-row{
  /* margin: 40px; */
  justify-content: center;
  display: flex;
  padding: 65px 0 35px 0;
  border-bottom: 1px solid black;
}
.interested-row img{
  width: 380px;
  height: 285px;
  margin: auto 40px;
  object-fit: cover;
}
.interested-row-text{
  line-height: 1.8em;
}
.interested-row h1 ,.interested-row a{
  font-size: 30px;
  color: black;
}

@media only screen and (max-width:1200px){

  
  .contact-upper-container{
    padding: 30px 20px;
  }
  .contact-us-lower-container{
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    
  }
}

.side-bar{
  display: none;
}
.mobile-expend-button{
  display: none;
}
.side-bar-icon{
  display: none;
}

@media only screen and (max-width:430px){

  body{
    min-width: 0px;
  }
  header{
    position: initial;
  }
  .nav-bar{
    display: none;
    z-index: 99;
    background-color: rgba(87, 87, 87, 0.568);
    position: fixed;
    top: 0;
    height: 100%;
    justify-content: end;
    padding: 0;
    margin: 0;
  }

  .nav-bar ul{
    right: 0;
    display: block;
    padding: 0;
    margin: 0;
    background-color: white;
    height: max-content;
    text-align: start; 
    height: 100%;
    width: 80%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .nav-bar ul li a{
    font-size: 20px;
    line-height: 3;
  }
  .nav-bar ul li ul{
    position: relative;
    margin-left: 20px;
  }

  .cardiac-ana-content{
    grid-template-columns: repeat(1,1fr);
  }


  .meet-the-team-header{
    margin: 0;
    padding: 0 20px;
    width: 90%;
  }

  .header-title a div:first-child {
    margin-bottom: 25px;
    font-size: 20px;
  }
  .header-title a{
    flex-direction: column;
    line-height: 1.6;
    font-size: 16px;
  }
  .side-bar-icon{
    display: block;
    display: flex;
    justify-content: end;
    margin: 0 20px 20px 0;
  }
  .mobile-expend-button{
    display:initial;
  }

  .aboutus-header{
    width: 100%;
  }
  .aboutus-content{
    grid-template-columns: 1fr;
  }
  .aboutus-content div:nth-child(2) {
    order: 1; 
  }
  .aboutus-content img:last-of-type {
    order: 0; 
  }
  .cardiothoracic-header-container{
    margin: 0;
    width: auto;
  }
  .cardiothoracic-content-point{
    flex-direction: column;
    align-items: center;
  }
  .thoracic-header{
    width: 100%;
  }
  .thoracic-header img{
    width: 100%;
  }
  .thoracic-header-container{
    padding: 0;
  }
  .thoracic-header-card{
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    padding: 0;
  }
  .thoracic-header-card h1{
    font-size: 40px;
    text-align: center;
  }
  .thoracic-header-card div > div{
    font-size: 20px;
    line-height: 1.6;
    padding: 0 40px;
  }
  .photo-album-grid {
    grid-template-columns: auto;
    font-family: Calibri, Helvetica, sans-serif;
  }
  .tee-preceptor-poster img{
    max-width: 100%;
  }
  .clinical-header-content-box{
    padding: 0;
  }
  .clinical-header-content{
    margin: 0 20px;
    padding: 0 20px;
  }
  .work-us-header-container div{
    width: 100%;
    font-size: 20px;
    line-height: 2;
  }
  .work-us-content{
    margin: 0 20px;
  }
  .work-us-content-box{
    padding: 20px 0;
  }
  .interested-page-container{
    width: 90%;
  }
  .interested-row{
    flex-direction: column;
  }
  .interested-row img{
    width: 100%;
    margin: 0;
  }
  .other-header-container{
    margin: 0;
  }
  .photo-album-container{
    margin: 0;
  }
  .contact-upper-container{
    flex-direction: column;
    height: auto;
    background-color: white;
    padding: 0;
  }
  .contact-upper-content{
    width: auto;
    order: -1;
    margin-bottom: 30px;
  }
  .contact-us-lower-content{
    flex-direction: column;
    padding: 0;
  }
  .contact-us-lower-content iframe{
    width: 100%;
  }
  .contact-us-lower-details{
    margin: 30px 0px;
  }
  .contact-us-lower-details >div{
    font-size: 20px;
  }

  .cardiothoracic-header-content{
    width: 60%;
    padding: 20px;
    line-height: 1.8;
  }
  .gallery-silder{
    flex-direction: column;
    height: auto;
  }
  .text-container{
    width: auto;
    font-size: 22px;
    margin-top: 30px;
  }
  .cardiac-ana-title-container{
    grid-template-columns: 1fr;
  }
}