/* customised fluid */
.header-slide{
  padding: 0px;
}

/* Navbar */
.navbar-brand{
  padding: 5px
}

.brand-image{
  height:40px;
}

ul.nav a:hover {
  color: red !important;
}

ul.navbar-nav > li > a.nav-current,
ul.navbar-nav > li.nav-current > a {
  color: #c00000 !important;
}

.navbar{
  margin-bottom: 0px
}

@media only screen
and (min-width : 320px)
and (max-width : 480px) {
    .caption-content{font-size: 5px;}
}

/* Lanugage Bar*/

a.language-inactive{
  color: #777 !important;
}

a.language-active{
  color: #c00000 !important;
}

.en-mode{
  padding-right: 0px !important;
}

.cn-mode{
  padding-left: 0px !important;
}

.en-mode:after{
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
  height: 15px;
  width: 1px;
  background: gray;
}

.language li{
  display: inline-block;
}

.jumbotron{
  background-image: url(../../img/www_banner.jpg);
  background-size: cover;
  padding-top: 17%;
  padding-bottom: 50%;
  color: white;
}

.jumbotron h2:first-of-type{
  display: inline-block;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.7);
}

.jumbotron h2:last-of-type{
  display: inline-block;
  padding: 5px;
  background-color: rgba(255, 0, 0, 0.7);
}

.jumbotron h1 span:first-of-type{
  display: inline-block;
  padding: 5px;
  background-color: rgba(255, 0, 0, 0.7);
}

.jumbotron h1 span:last-of-type{
  display: inline-block;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.7);
}

.jumbotron h1, .jumbotron h2{
  margin-left: 10%;
}

@media only screen and (max-width: 800px) {
  .jumbotron h1{
    font-size: 28px;
  }
  .jumbotron h2{
    font-size: 14px
  }
}




/* About Section*/

p.text-center{
  margin: 10px 50px 10px;
}


/* Highlight label */

.content-section div h3 {
  font-size: 36px;
}

.red-label{
  color: #c00000;
}

.en-title{
  margin: 10px;
}

.label-line{
    position: relative;
    width: 150px;
    height: 1px;
    background: #DEDEDE;
    display: inline-block;
    vertical-align: middle;
}

.label-line:first-child:after{
    right: 0px;
}

.label-line:after{
    position: absolute;
    content: '';
    display: block;
    width: 17px;
    height: 3px;
    background: #C11000;
    top: -1px;
}

.break-line{
    position: relative;
    width: 100px;
    height: 2px;
    background: #c00000;
    display: inline-block;
    vertical-align: middle;
    margin: 20px;
}

.highlight{
  text-decoration: none !important;
}

.highlight span{

  display: inline-block;
  width: 160px;
  line-height: 40px;
  color: #fff;
  background: #C11000;
  text-align: center;
}

span.moreinfo:hover{
  color:#000;
  transition: all 0.4s;
}

/* Screen adjust */
@media only screen
and (max-width : 590px) {
  p.text-center span{
    display: none;
  }
  .content-section div h3 {
    font-size: 24px;
  }
  .content-section div p, footer p, footer a{
    font-size: 12px;
  }

  .content-section div a{
    font-size: 10px;
  }
  .highlight span{
    font-size: 10px;
    display: inline-block;
    width: 120px;
    line-height: 30px;
    color: #fff;
    background: #C11000;
    text-align: center;
  }
}

/* Section */

.content-section{
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Section 2 */
@media only screen
and (max-width : 1150px){
  figure.section2-figure{
    display: none;
  }
}

/* Section 3 */
.curriculum-link{
  padding: 0px;
}

#committee{
  background: url(../../img/committee-bg.jpg) no-repeat center border-box;
  padding-bottom: 60px;
}

.committee-title *{
  color: #fff;
  padding: 0px;
}

.committee-title ol li.active, .committee-title ol li:hover {
  background: #fff;
  color: #333;
}

.committee-title ol li{
  display: inline-block;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  width: 160px;
  line-height: 38px;
  background: #C11000;
  color: #fff;
  margin: 0 10px;
}

.inactive-group{
  display: none;
}

.committee-group1, .committee-group2, .news-list{
  overflow: hidden;
}


/* Section 4 Swiper */
.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.committee-group1 img, .committee-group2 img{
  max-width: 180px;
}

.swiper-slide p{
  font-size: 12px;
}

.swiper-slide a{
  text-decoration: none;
}

.swiper-pagination + div{
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
}

.committee-title .swiper-pagination-bullet {
    background: #fff;
    opacity: .9;
}

.committee-title .swiper-pagination-bullet-active {
    background: #c00000;
    opacity: .9;
}

/* Section 5 */
.section5-bg{
  width: 100%;
  margin: 20px 0 0;
}

/* Section 6 Swiper */

.news-title *{
  padding: 0px;
}

#news{
  /*
  background: url(../../img/committee-bg.jpg) no-repeat center border-box;
  */
}

.news-list a{
  background-color: #F7F7F7;
  height: 280px;
  margin-bottom: 10px;
}

.news-list img{
  max-width: 280px;
  padding: 20px
}

.news-list time{
  color: #2b2b2b;
  opacity: 0.6;
  display: block;
  font-size: 14px;
}

.news-list p{
  color: #333;
  font-size: 16px;
  margin: 10px;
}

.news-list a, .news-list h3, .news-list time{
  max-width: 300px;
}

@media only screen
and (max-width : 590px){
  .news-list a{
  height: 250px;
  }
  .news-list time{
  font-size: 9px;
  }
}

/* Section 7 */
#contact{
  padding: 0px;
  height: 650px;
  background: url(../../img/section7-bg.jpg) no-repeat center border-box;
}

.contact-title{
  padding: 50px 70px 0px;
  height: 650px;
  background: rgba(193,16,0,0.6);
}

.contact-title *{
  color: #fff;
}

.location{
  text-align: left;
  font-size: 18px;
}

.location-detail{
  text-align: left;
  font-size: 16px;
}

.location-detail:hover{
  box-shadow: none;
  color: #000;
  text-decoration: none;
}

#map *{
  color: #000;
}

/* Adjustment for screen size */
@media only screen
and (max-width : 800px){
  .contact-title div{
    display: none;
  }
  #contact, .contact-title{
    height: 200px;
  }
}

@media only screen
and (min-width : 800px){
  .location-detail{
    float: right;
    margin-top: 200px;
  }
}

@media only screen
and (max-width : 1230px)
and (min-width : 800px){
  .location-detail{
    display: none;
  }
}


/* Footer */

footer {
  padding: 18px 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #363636;
}

footer div{
  margin:0 auto;
  padding:10px;
}

footer a{
  display:inline-block;
  text-decoration:none;
  height:20px;
  line-height:20px;"
}

footer img{
  float: left;
}

footer ul{
  padding-left: 0px;
}

/****************************************************************************************************************************/

/* Model */
.child-header1 img{
  width: 100%;
}

.child-header1, .child-header2{
  margin: 0px;
  padding: 0px;
}

.child-header2{
  background: #f8f8f8;
}

.header-container1 {
  margin: 0 auto;
  position: relative;
  height: 100px;
}

.header-container2 {
  content: "";
  position: absolute;
  background: #c00000;
  padding: 20px;
  bottom: 0;
  left: 0;
}

.header-container2 {
  color: #fff;
}

.header-container3 {
  padding: 25px;
  position: relative;
  border: 2px solid white;
}

.header-container3 .label-line:after{
  background: #fff;
}

.header-container3 .label-line{
  width: 100px;
}

.current-page {
  text-align: right;
  line-height: 100px;
  color: #999999;
}

.current-page a {
  font-size: 15px;
  color: #999999;
  text-decoration: none;
  padding-right: 10px;
}

.current-page a.active{
  color: #c00000;
}

@media only screen
and (min-width : 900px){
  .sub-header-container{
    display: none;
  }
}

@media only screen
and (max-width : 900px)
and (min-width : 600px){
  .header-container1{
    display: none;
  }
  .sub-header-container .label-line:after{
    background: #fff;
  }
  .title{
    background: #c00000;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .title h3, .title p{
    margin:0px;
    padding-bottom: 10px;
    color: #fff;
  }
}

@media only screen
and (max-width : 900px)
and (min-width : 600px){
  .header-container1{
    display: none;
  }
  .sub-header-container .label-line:after{
    background: #fff;
  }
  .title{
    background: #c00000;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .title h3, .title p{
    margin:0px;
    padding-bottom: 10px;
    color: #fff;
  }
}

@media only screen
and (max-width : 600px){
  .header-container1{
    display: none;
  }
  .sub-header-container .label-line:after{
    background: #fff;
  }
  .title{
    background: #c00000;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .title h3, .title p{
    margin:0px;
    padding-bottom: 5px;
    color: #fff;
  }
  .title h3{
    font-size: 22px;
  }
  .title p, .footer-div-model{
    font-size: 12px;
  }
  .title span{
    display: none;
  }
}

.footer-div-model{
  padding: 0px;
  display: inline-block;
}

.footer-contact, footer li a{
  color: #939393;
  text-decoration: none;
}

footer li a:hover{
  color: #c00000;
  text-decoration: none;
}

footer li{
  display: inline-block;
}

footer li:after{
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
  height: 10px;
  width: 1px;
  background: gray;
}


/* Child page */

.subpage-title hr{
  border-top: 1px solid #c00000;
}

.contact-person img{
  width: 130px;
  float: left;
  margin-right: 20px;
}

.contact-person span{
  border-bottom: 2px solid #c00000;
}

.contact-person{
  display: inline-block;
  margin: 30px;
  padding: 0px;
  border-bottom: 2px solid lightgray;
}

.contact-person:hover{
  border-bottom: 2px solid #c00000;
}


/* Responsive contact person block */
.contact-person{
  height: 155px;
  width: 340px;
}

@media only screen
and (max-width: 390px){
  .contact-person{
    width: 260px;
}
}

.person-details p{
  color: gray;
  height: 115px;
  overflow-y: scroll;
}

/* Intro subpage */

.subpage-figure img{
  max-width: 100%;
  margin-right: 10px;
  margin-left: 10px;
}

.embeded-figure{
  max-width: 100%;
  display: none;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 10px;
}

@media only screen
and (max-width: 991px){
  .embeded-figure{
    display: block;

  }
  .subpage-figure{
    display: none;
  }
}


/* Founding subpage */

.founding-header img{
  margin-bottom: 20px;
}


@media only screen
and (min-width: 592px){
  .founding-header img, .culture-header img{
    width: 70%;
  }
}

@media only screen
and (max-width: 591px){
  .founding-header img, .culture-header img{
    width: 90%;
  }
}

/* Organization subpage */

.organization img, .organization-details{
  display: inline-block;
  margin:10px;
}

.organization span{
  border-bottom: 2px solid lightgray;
}

.organization{
  display: inline-block;
  margin: 30px;
  padding: 0px;
  border-bottom: 2px solid lightgray;
}

.organization:hover{
  border-bottom: 2px solid #c00000;
}

#organization{
  overflow: hidden;
}

#organization .swiper-pagination{
  position: relative;
}

/* Overview subpage */

.course-item{
  margin-bottom: 20px;
  background-color: #f8f8f8;
}

.course-item .course-item-info{
  position: relative;
  top: 20px;
}

#overview .course-item-youth{
  padding: 34px 30px;
  border-left: 4px solid #c00000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.course-item-youth .course-item-youth-intro{
  margin: 0 auto 24px;
}

.course-item-youth .course-item-youth-intro h3{
  margin-top: 0;
  margin-bottom: 14px;
}

.course-item-youth .course-item-youth-intro p{
  line-height: 1.8;
  margin-bottom: 0;
}

.course-item-youth .course-item-youth-gallery{
  margin-top: 4px;
}

.course-item-youth .course-item-youth-gallery-cell{
  padding: 14px;
  background: #fff;
  border: 1px solid #ebebeb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

#overview .course-item-youth .course-item-youth-media-image{
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.course-item-youth .course-item-swiper{
  padding: 4px 36px 36px;
}

.course-item-youth .course-item-youth-prev,
.course-item-youth .course-item-youth-next{
  color: #c00000;
  width: 30px;
  height: 30px;
  margin-top: -20px;
}

.course-item-youth .course-item-youth-prev:after,
.course-item-youth .course-item-youth-next:after{
  font-size: 18px;
  font-weight: 700;
}

.course-item-youth .course-item-youth-pagination{
  bottom: 2px !important;
}

.course-item-youth .course-item-youth-pagination .swiper-pagination-bullet{
  background: #b0b0b0;
  opacity: 1;
}

.course-item-youth .course-item-youth-pagination .swiper-pagination-bullet-active{
  background: #c00000;
}

/* 图片预览模态框（通用样式） */
.gallery-preview-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-preview-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.gallery-preview-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #aaa;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.gallery-preview-close:hover {
  color: #fff;
}

/* Legacy layout tweaks for non-youth course items only (avoid overriding Swiper/gallery padding) */
#overview .course-item:not(.course-item-youth) > div,
#overview .course-item:not(.course-item-youth) > img{
  margin-left: 0px;
  margin-right: 0px;
  padding-right: 0px;
  padding-left: 0px;
}

#overview .course-item:not(.course-item-youth) > img{
  width: 50%
}

@media only screen
and (max-width: 991px){
  .course-item img{
    display: none;
  }
  .course-item{
    background-color: #fff;
  }

  .course-item-youth{
    padding: 24px 16px;
    box-shadow: none;
  }

  .course-item-youth .course-item-youth-intro{
    margin-bottom: 18px;
  }

  .course-item-youth .course-item-youth-gallery{
    margin-top: 0;
  }

  .course-item-youth .course-item-swiper{
    padding: 2px 24px 28px;
  }

  .course-item-youth .course-item-youth-gallery-cell{
    padding: 10px;
  }
}

@media only screen
and (max-width: 560px){
  .course-item-youth .course-item-swiper{
    padding: 0 18px 26px;
  }

  #overview .course-item-youth .course-item-youth-media-image{
    height: 220px;
  }
}

@media only screen
and (min-width: 992px){
  .course-list hr{
    display: none;
  }
}

.course-list hr{
  border-top: 1px solid #c00000;
  margin-top: 20px;
}


/* Culture subpage */
.culture-header img{
  margin-bottom: 20px;
}

/* Contact subpage */
.contact-details h4{
  color: #c00000;
}

@media only screen
and (min-width: 992px){
  .contact-details + hr{
    display: none;
  }
}

/* News subpage */

.news-scroll ul, .news-scroll li{
  overflow: auto;
}

.news-scroll ul{
  padding-left: 0px;
}

.news-scroll li{
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid gray;
}

.all-news-list {
  list-style-type: none;
}

.all-news-list img{
  max-width: 240px;
  margin-bottom: 10px;
  margin-right: 10px;
}

.news-brief div{
  margin-top: auto;
  margin-bottom: auto;
}

.news-brief h4{
  color: #000;
}

.news-brief p{
  color: lightgray;
}

.news-brief a:hover{
  text-decoration: none;
}

.news-brief a:hover h4{
  color: #c00000;
}

.news-brief a:hover img{
  -ms-transform: scale(1.1); /* IE 9 */
  -webkit-transform: scale(1.1); /* Safari 3-8 */
  transform: scale(1.1);
  transition: transform .2s;
}

/* YLDP module */
/* Section 2 Project Intro*/
@media only screen
and (max-width : 1200px){
  .ProjectIntroList{
    display: none;
  }
  .ProjectIntroInfo{
    margin: 10px;
  }
  .ProjectIntroInfo span{
    margin-bottom: 10px;
  }
}

.ProjectIntroList{
  background-color: #c00000;
  padding-right: 0px;
  padding-left: 0px;
}

.ProjectIntro div{

}

.ProjectIntro ul{
  float: left;
  max-width: 350px;
  list-style-type: none;
}

.ProjectIntro li span{
  float: left;
  font-size: 21px;
}

.ProjectIntro li aside{
  margin-left: 50px;
}

.ProjectIntro li h3{
  font-size: 21px;
  color: #fff;
}

.ProjectIntro li aside p{
  font-size: 12px;
  color: #fff;
  opacity: 0.5;
}

.ProjectIntro img{
  float: right;
  max-width: 300px;
}

span.circle {
  background: #fff;
   border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  color: #c00000;
  display: inline-block;
  font-weight: bold;
  line-height: 1.6em;
  margin-right: 15px;
  text-align: center;
  width: 1.6em;
}

.ProjectIntroInfo hr{
  border-color: #c00000;
}

/* Section 3 Course Intro */

.CourseIntroInfo{
  margin-left: 20px;
  margin-top: 20px;
  float: left;
}

.CourseIntroTitle{
  color: #c00000;
  font-size: 17px;
  font-weight: bold;
}

.grid{
  float: center;
}

@media only screen
and (max-width: 1432px)
and (min-width: 992px){
  .CourseGrid{
    float: left;
  }
}

@media only screen
and (min-width: 801px){
  .hiddenPart2{
    display: none;
  }
}

@media only screen
and (max-width: 800px){
  .hiddenPart1{
    display: none;
  }

  .CourseGrid figcaption h2{
    font-size: 15px;
    line-height: 1.8;
  }
}

@media only screen
and (max-width: 600px){
  .CourseIntroInfo{
    text-align: center;
  }
}

/* Section 4 Swiper */
.LecturerFigure{
  max-width: 500px;
  float: left;
}

.LecturerLogo{
  position: absolute;
  left: 20px;
  top: 10px;
  max-height: 70px;
}

.LecturerInfo{
  float: right;
  max-width: 700px;
}

@media only screen
and (max-width: 991px){
  .LecturerIntroFigure{
    display: none;
  }
  .LecturerInfo{
    max-width: 1000px;
  }
}

/* Section 5 */
#application{
  background: url(../../img/Applicationbg.jpg) no-repeat center border-box;
}

.ApplicationList{
  display: inline-block;
  width:90%;
  text-align: left;
}

.ApplicationList li{
  display: inline-block;
  margin-left: 1%;
  width: 32%;
  vertical-align: top;
}

.ApplicationList li:nth-child(1){
  margin-left: 0;
}

.ApplicationList li span{
  display: inline-block;
  vertical-align: middle;
  font-size: 90px;
  color: #bf0000;
  font-weight: bold;
}

.ApplicationList li aside{
  display: inline-block;
  vertical-align: middle;
  width:65%;
  margin-left: 2%;
}

.ApplicationList li aside h4{
  font-size: 24px;
  color: #444;
  margin-bottom: 16px;
}

.ApplicationList li aside p{
  font-size: 16px;
  color: gray;
}

@media only screen
and (max-width: 1200px){
  .ApplicationList li{width: 100%;}
  .ApplicationList li span{font-size: 40px;}
  .ApplicationList li aside h4{font-size: 15px;}
  .ContactLeft {display: none;}
}


/* Application details */
.applicationguide .img-container{
  height: 100%;
  width: 50%;
  position: absolute;
  right: 0;
  top: 20px;
}

.applicationguide{
  overflow: hidden;
  position: relative;
}

.applicationguide img{
  height: 97%;
  width: 100%;
  position: absolute;
  right: 0;
}
.applicationdetails{
  position: relative;
  background-color: #f1f1f1;
}

.applicationdetails ol, .applicationdetails ul, .applicationdetails li{
  list-style-type: none;
  margin-bottom: 10px;
}

.applicationdetails h4{
  color: #c00000;
}

@media only screen
and (max-width: 991px){
  .applicationguide img{
    display: none;
  }
  .applicationdetails{
    padding: 10px 10px 10px;
  }
}

#overview div,#overview img{
  padding-right: 0px;
  padding-left: 0px;
}