body {
  background-color: #FDFDFD;
  /* font-family: "Calibri", Sans-serif; */
  font-family: Arial, Sans-serif;
  /* font-size: 1.1rem; */
  /* letter-spacing: .8px; */
}

.font-cn-kai {
  font-family: "STKaiti", "DFKai-SB", "Microsoft Yahei", Arial, sans-serif;
}

b { font-weight: bold; }

.color-main,
.a-color-main a,
.a-hover-main a:hover,
.a-hover-main:hover {
  color: #8e24aa;
}

.color-sub, 
.a-color-sub a,
.a-hover-sub a:hover,
.a-hover-sub:hover {
  color: #f57f17;
}

.color-header {
  color: #b71c1c;
}

.color-brand,
.a-color-brand a,
.a-hover-brand a:hover,
.a-hover-brand:hover {
  color: #9f0000;
}

.color-brand-light,
.a-color-brand-light a,
.a-hover-brand-light a:hover,
.a-hover-brand-light:hover {
  color: #d84315;
}

.color-other-1, 
.a-color-other-1 a,
.a-hover-other-1 a:hover,
.a-hover-other-1:hover {
  color: #5c6bc0;
}

.color-other-2,
.a-color-other-2 a,
.a-hover-other-2 a:hover,
.a-hover-other-2:hover {
  color: #616161;
}

.color-other-3,
.a-color-other-3 a,
.a-hover-other-3 a:hover,
.a-hover-other-3:hover {
  color: #ef6c00;
}

.color-other-4,
.a-color-other-4 a,
.a-hover-other-4 a:hover,
.a-hover-other-4:hover {
  color: #546e7a;
}

.color-other-5,
.a-color-other-5 a,
.a-hover-other-5 a:hover,
.a-hover-other-5:hover {
  color: white;
}

a,
.a-default,
table.table a {
  color: #3949ab;
}

a:hover,
.a-hover:hover,
table.table a:hover {
  color: #ff9100;
}

.bg-color-main {
  background-color: #f18d00;
}

.bg-color-main-light {
  background-color: #ffc246;
}

.bg-color-main-dark {
  background-color: #c56200;
}

.bg-color-sub {
  background-color: #7d5d94;
}

.bg-color-sub2 {
  background-color: #003F98;
}

.bg-color-sub-light {
  background-color: #9679AB;
}

.bg-color-sub-dark {
  background-color: #684d7b;
}

.bg-color-other-1 {
  background-color: #c7a500;
}

.bg-color-other-2 {
  background-color: #870000;
}

.bg-color-main.h-con {
  background-color: black;
}

.border-underline {
  border-bottom: 1px solid #e0e0e0;
}

.font-xs,
.table-font-lg th,
.table-font-lg td,
.list-font-lg li {
  font-size: .8rem;
}

.font-sm,
.table-font-sm th,
.table-font-sm td,
.list-font-sm li {
  font-size: .9rem;
}

.font-ms,
.table-font-ms th,
.table-font-ms td,
.list-font-ms li {
  font-size: .95rem;
}

.font-md,
.table-font-md th,
.table-font-md td,
.list-font-md li {
  font-size: 1rem;
}

.font-ml,
.table-font-ml th,
.table-font-ml td,
.list-font-ml li {
  font-size: 1.05rem;
}

.font-lg,
.table-font-lg th,
.table-font-lg td,
.list-font-lg li {
  font-size: 1.1rem;
}

.font-xl,
.table-font-xl th,
.table-font-xl td,
.list-font-xl li {
  font-size: 1.2rem;
}

.font-stretch-c {
  font-stretch: condensed;
}

.font-stretch-n {
  font-stretch: normal;
}

.text-shadow-1 {
  text-shadow: 1px 1px 4px black;
}

.text-shadow-2 {
  text-shadow: 2px 2px 6px black;
}

.text-shadow-3 {
  text-shadow: 3px 3px 6px black;
}

.list-spacing-0 li {
  margin-bottom: 0;
}

.list-spacing-1 li {
  margin-bottom: .5rem;
}

.list-spacing-2 li {
  margin-bottom: 1rem;
}

.list-spacing-3 li {
  margin-bottom: 1.5rem;
}

.list-spacing-4 li {
  margin-bottom: 2rem;
}

table.table-spacing-1 th,
table.table-spacing-1 td {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

table.table-spacing-2 th,
table.table-spacing-2 td {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

table.table-spacing-3 th,
table.table-spacing-3 td {
  padding-top: .75rem;
  padding-bottom: .75rem;
}

table.table-spacing-4 th,
table.table-spacing-4 td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

table.table-spacing-5 th,
table.table-spacing-5 td {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.line-h-0 {
  line-height: 0;
}

.line-h-1 {
  line-height: 1;
}

.line-h-2 {
  line-height: 1.5;
}

.line-h-3 {
  line-height: 2;
}

.line-h-4 {
  line-height: 2.5;
}

.line-h-5 {
  line-height: 3;
}

.a-hover-underline:hover,
.a-hover-underline a:hover
{
  text-decoration: underline;
}

.word-break-all  {
  word-break: break-all;
}

.video-fluid {
  height: auto;
  width: 100%
}

.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
}

.title-1 {
  font-size: 1.4rem;
  font-weight: 300;
}

.title-2 {
  font-size: 1.2rem;
  font-weight: bold;
}

.content-height {
	min-height: 400px;
}

@media (max-width: 575px) {
  .title-1 {
    font-size: 1.35rem;
  }
  .content-height {
	min-height: 250px;
}
}

/* Bootstrap Customization */
.container-nm {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container-wd {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 0 0;
}

@media (min-width: 576px) {
  .container-nm {
    max-width: 564px;
  }
}

@media (min-width: 768px) {
  .container-nm {
    max-width: 760px;
  }
}

@media (min-width: 992px) {
  .container-nm,
  .container-wd {
    max-width: 962px;
  }
}

@media (min-width: 1200px) {
  .container-nm,
  .container-wd {
    max-width: 1170px;
  }
}

@media (min-width: 1400px) {
  .container-nm,
  .container-wd {
    max-width: 1370px;
  }
}

/* @media (min-width: 1600px) {
  .container-nm,
  .container-wd {
    max-width: 1570px;
  }
} */

.zoom.zoom-lg:hover img,
.zoom.zoom-lg:hover video {
  -webkit-transform: scale(1.4);
  transform: scale(1.4);
  cursor: pointer;
}



/* %%Top Section */
.top-header-main {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .top-header-main {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .top-header-main {
    font-size: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .top-header-main {
    font-size: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .top-header-main {
    font-size: 1.75rem;
  }
}

.top-header-sub {
  font-size: 1.1rem;
}

@media (min-width: 992px) {
  .top-header-sub {
    font-size: 1.2rem;
  }
}

.top-btn, 
.top-btn-option {
  font-size: 1.1rem;
}

.top-btn {
  background-color: rgba(255, 255, 255, 0);
  border: none;
  padding: 4px 6px;
}

.top-btn:hover, 
.top-btn:focus {
  
  background-color: lightgray;
  border-radius: 5px;
}

.top-nav .navbar-nav .dropdown-menu {
  position: static !important;
}

@media (min-width: 992px) {
  .top-nav .navbar-nav .dropdown-menu {
    position: absolute !important;
  }
}

.top-nav .navbar-nav .nav-item .nav-link {
  font-stretch: normal;
  font-weight: 300;
  letter-spacing: .4px;
}

.top-nav .navbar-toggler {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.top-nav .navbar-toggler {
  /* border: 2px solid #4a148c; */
  border: 0;
  margin: 2px 0;
}

.top-nav .navbar-toggler:hover {
  color: brown;
}

.top-nav .navbar-toggler:focus {
  border: 2px solid #e0e0e0;
}

.top-nav .dropdown-menu .dropdown-item:hover,
.top-nav .dropdown-menu .dropdown-item:focus {
  background-color: brown;
  color: gray;
}

@media (max-width: 991px) {
  .top-nav .dropdown-menu {
    background-color: #fafafa;
    border: none;
  }

  .top-nav .dropdown-menu a:not(.active) {
    color: #795548;
  }
}

.dropdown .dropdown-menu .dropdown-group .dropdown-item {
  padding-bottom: .25rem;
  padding-top: .25rem;
}

.dropdown .dropdown-menu .dropdown-group .dropdown-item.group-header {
  padding-bottom: 0;
  font-weight: bold;
}

.dropdown .dropdown-menu .dropdown-group .dropdown-item.group-header:hover,
.dropdown .dropdown-menu .dropdown-group .dropdown-item.group-header:focus {  
  -webkit-box-shadow: none;
  box-shadow: none;
}

.dropdown-item.group-header.group-header-text,
.dropdown .dropdown-menu .dropdown-group .dropdown-item.group-header.group-header-text:hover,
.dropdown .dropdown-menu .dropdown-group .dropdown-item.group-header.group-header-text:focus  {
  background-color: transparent;
  color: #212529 !important;
  cursor: default;
}

.dropdown .dropdown-menu .dropdown-group .dropdown-item.group-header.group-header-link:hover,
.dropdown .dropdown-menu .dropdown-group .dropdown-item.group-header.group-header-link:focus {
  color: white !important;
  background-color: firebrick;
}

.item-header {
  padding-bottom: 0;
  font-weight: bold;
}


.top-search {
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

/* //Top Section */


/* %%Home */
.home-bg {
  background-color: #eeeeee;
}

.home-carousel .slick-track {
  line-height: 0;
}

.home-carousel.slick-slider.slick-dotted {
  margin-bottom: 0;
}

.home-carousel-prev, 
.home-carousel-next {
  position: absolute;
  top: 45%;
  display: block;
  color: white;
  z-index: 100;
  cursor: pointer;
}

.home-carousel-prev:hover,
.home-carousel-next:hover,
.home-carousel-prev:focus,
.home-carousel-next:focus {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.home-carousel-prev:focus,
.home-carousel-next:focus {
  color: orange !important;
}

.home-carousel-prev {
  left: 25px;
}

.home-carousel-next {
  right: 25px;
}

.home-carousel-bg {
  min-height: 400px;
  object-fit: cover;
}

.home-carousel .slick-dots {
  bottom: 30px;
}

.home-carousel .slick-autoplay-toggle-button {
  bottom: 20px;
  left: 25px;
  color: white;
  opacity: .95;
}

.home-carousel .slick-dots li.slick-active button .slick-dot-icon {
  color: white;
  opacity: .95;
}

.home-carousel-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(62, 69, 81, 0);
  z-index: 10;
}

.home-carousel-mask--dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(62, 69, 81, 0.15);
  z-index: 10;
}

.home-carousel-mask--darker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(62, 69, 81, 0.65);
  z-index: 10;
}

.home-carousel-caption {
  position: absolute;
  top: 80px;
  left: 15%;
  right: 15%;
  z-index: 10;
  padding-top: 20px;
  padding-bottom: 20px;
  line-height: 1.5;
  color: #fff;
  text-align: left;
}

@media (min-width: 768px) {
  .home-carousel-caption {
    top: 20px;
    right: 0;
    width: 600px;
  }
}

@media (min-width: 1200px) {
  .home-carousel-caption {
    top: 40px;
    width: 1000px;
  }
}

@media (min-width: 1400px) {
  .home-carousel-caption {
    width: 1200px;
  }
}

.home-carousel-caption p {
  font-size: 1.1rem;
}

.home-carousel-caption .caption-title {
  font-size: 2.5rem;
}

@media (max-width: 575px) {
  .home-carousel-caption .caption-title {
    font-size: 2.3rem;
  }
}

.home-slide-img {
  min-height: 400px;
  object-fit: cover;
}

.home-news-effect .news-image {
  position: relative;
  overflow: hidden;
}

.home-news-effect a .news-image img {
  width: 100%;
  -webkit-transition: 0.2s all linear;
  transition: 0.2s all linear;
}

.home-news-effect a:hover .news-image img {
  transform: scale(1.3);
}

.home-card {
  position: relative;
}

.home-card-caption-container {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.home-card-caption {
  background: rgba(197, 99, 0, 0.85);
  /* background: rgba(69, 90, 100, 0.8); */
  height: 100%;
  padding: 5px 10px;
  font-weight: bold;
  color: white;
}

.home-counter-title {
  font-size: 2rem;
}

.home-counter-figure {
  font-size: 2.5rem;
}

.home-counter-object {
  font-size: 1.2rem;
}

.home-title {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.2;
}

.home-contact-bg {
  background-color: #757575;
}

.home-contact-title {
  font-weight: bold;
  font-size: 1.1rem;
}

.footer-copyright {
  font-weight: bold;
  font-size: .9rem;
}


/* Pages */
.breadcrumb-menu {
  border-top: 1px solid #eceff1;
  border-bottom: 1px solid #eceff1;
}

.breadcrumb-menu .group-header,
.breadcrumb-menu .group-header.group-header-text {
  background-color: #eceff1;
  font-weight: bold;
}

.breadcrumb-menu .dropdown-item:hover {
  text-decoration: underline;
}

.mdb-lightbox--narrow.mdb-lightbox [class*="col-"] {
  padding: .2rem;
}

.img-hover {
	transition: transform .5s; 
}

.img-hover:hover {
  -ms-transform: scale(1.5); /* IE 9 */
  -webkit-transform: scale(1.5); /* Safari 3-8 */
  transform: scale(1.5); 
}

.page-bg {
  background: url(/20220904024706oe_/https://www.spe.cuhk.edu.hk/images/page-bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  /* background-image: url("/20220904024706oe_/https://www.spe.cuhk.edu.hk/images/page-bg.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; */
}

.page-video {
  max-width: 700px;
}

.page-text-shadow {
  text-shadow: 2px 2px 5px black;
}

.page-profile-pic {
  width: 120px;
}

.page-qrcode {
  width: 120px;
}

.btn.btn-flat.page-modal-btn {
  color: SlateGray;
}

.page-modal-btn:hover
/* .page-modal-btn:focus */
{
  background: rgba(128, 128, 128, 0.1);
}

.page-pills .nav-link {
  border: 1px solid #4abde8;
}


.content-collapse-overlay {
  margin-top: -4rem;
  width: 100%;
  height: 4rem;
  display: inline-block;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,1) 60%);
}

.gallery-cover-title-bg {
  position: absolute;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0) 100%);
  bottom: 0px;
  width: 100%;
  height: 40%;
}

.gallery-cover-title {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
}

.sub-menu {
	border-left: 1px solid #dee2e6 !important;
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
	padding-left: 1rem !important;
	margin-top: -15px;
}

@media (max-width: 991px) {
  .sub-menu {
    border-left: 0px solid #dee2e6 !important;
	padding-left: 0.2rem !important;
	margin-top: 0px;
  }
}

.research-theme-card {
  height: 6rem;
}