@charset "UTF-8";

body {
	font-size: 12px !important;
}

.display-none {display:none;}

/* home spotlight carousel
-------------------------------------------------- */

#feature { background-color: #FFF; margin-bottom: 30px;}

#feature .item img { width: 100%; height: auto; }

@media (max-width:536px){
	#feature .item img {
		/*before 13Apr2023:height: 57vw;
		 object-fit: cover;*/
		
	}
	_:-ms-lang(x), #feature .item img { opacity:0; }
	_:-ms-lang(x), #feature .item a > div {
		background-repeat: no-repeat; 
		background-size: cover;
		background-position: center;
	}
	
}

//For IE
@media (max-width:536px) and (-ms-high-contrast: none) {
	#feature .item img {
		opacity: 0; 
	}	
}

#feature figcaption {
	/*font-family: Oxygen, Arial, sans-serif;
	font-weight: 300;*/
	position: relative; 
	padding: 10px;
	font-size: 1.333em;
	font-weight: bold; 
	line-height: 18px; 
	opacity: 1; 
	color: #FFF;
	background-color: #6E1E6F;
	width: 100%; min-height: 62px;
}

#feature figcaption small {
	display: block; margin-top: 5px; font-size: 0.75em; color: #FFF; 
	/* mobile only */
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

#feature .carousel-indicators {
	display: none;
	position:absolute;
	bottom: -10px;
	left:50%;
	z-index:15;
	width:60%;
	padding-left:0;
	margin-left:-30%;
	text-align:center;
	list-style:none
}

#feature .carousel-indicators li {
	display:inline-block;width:10px;height:10px;margin: 0px 5px;
	background-color: #6C6D6F;
	/*text-indent:-999px;*/
	text-indent:0px;
	cursor:pointer;
	border-radius: 0;
	border: none;
	margin-bottom: 15px;
}

#feature .carousel-indicators li > a{
	display:block;
	width:10px;height:10px;
	margin: 0px;
	padding: 0px;
	font-size:0px;
}
#feature .carousel-indicators .active{
	background-color:#6E1E6F;border:1px solid #fff;
}

.feature-button {
	position: absolute;
	width: 20px;
	top: 40%;
	margin-top: -20px;
	display: block;
}

.feature-button a {
	color: #fff; font-size: 12px;
	background: rgba(0, 0, 0, .6);
	/*padding: 0px;*/
	padding: 3px;
	width: 25px;
	height: 25px;
	border-radius: 30px;
	display: block;
	text-align: center;
}

#feature-left-button {
	left: 5px; width: 20px; 
}

#feature-right-button {
	left: 100%; margin-left: -30px;
}
#feature-pause-button {
	left: 100%; margin-left: -30px; top: 95%; /*stop button temp*/
}
#feature img.desktop-img {
	display:none;
}
#feature img.mobile-img {
	display:block;
}

@media screen and (min-width:768px){
	
	.feature-button {
		top: 50%;
	}	
	
	#feature figcaption {
		position: absolute;
		padding: 15px 25px 15px 35px;
		font-size: 3.5em;
		letter-spacing: 0.08em;
		line-height: 1.1;
		width: auto;
		background-color: rgba( 89, 23, 94, .9);
	}
	
	#feature figcaption.figcaption-right {
		text-align:right;
	}
	
	#feature figcaption small {
		display: block; 
		margin-top: 10px; 
		font-size: 0.6em;
		letter-spacing: normal;
		color: #FFF;
		overflow: initial;
		white-space: normal; 
		padding: 0 3px;
	}
	
	#feature .carousel-indicators {
		display: block;
	}
	
	#feature img.desktop-img {
		display:block;
	}
	#feature img.mobile-img {
		display:none;
	}
}

/* homepage_content
-------------------------------------------------- */

#homepage_content {
	background: #FFF; display: block; overflow: auto;
}

#homepage_content section {
	background: #FFF; padding: 0 0 0 0;
}

#homepage_content aside {
	background: #FFF; padding: 0 0 0 0;
	/*before 13Apr2023: border-right: 1px solid #ebebeb;*/
}

@media screen and (min-width:768px){
	#homepage_content section.more_of_cuhk.odd {
		border-left: 1px solid #ebebeb;
	}
}

.btn-rss { margin-left: 10px; }

/* home subsection header
-------------------------------------------------- */

div.home_subsection {
	height: 33px;
	/*before 13Apr2023: background: #FFF url(/20241028104703oe_/https://www.cuhk.edu.hk/chinese/images/title_bg_v2.png) no-repeat;*/
	border-width: 1px 0px 1px 0px;
	border-color: #EBEBEB;
	border-style: solid;
	clear: both;
	margin-bottom: 10px;
	box-shadow: inset 10px 0 0 0 #6d0866;
	padding-left: 10px;
}

div.home_subsection h1, div.home_subsection div.title {
	float: left;
	margin-left: 10px;
	margin-top:8px;
	margin-right:10px;
	margin-bottom: 0;
	font-size: 1.333em;
	color: #6D0864;
	/*font-family: Oxygen, Arial, sans-serif;*/
	font-weight: bold;
	line-height: 1.1em; /*CC update on 19Apr2023*/
}

div.home_subsection a {
	display: block;
	overflow: hidden;
	height: 30px;
}

div.home_subsection a:hover {
	color: #F00;
}

/*.btn-all:before {
	color: #6D0864;
	letter-spacing: -4px;
	content: "\e080\e080\000a\000d";
}*/

.btn-all {	
	font-size: 12px; /*Not in em, as the size should be fixed*/
	padding-top: 3px;
	padding-left: 0px;
	margin-left: -2px;
	margin-top: 6px;
	display: block;
	position: absolute;
	right: 20px;
	overflow: hidden;
	width: 30px;
	height: 16px;
	background: url(/20241028104703oe_/https://www.cuhk.edu.hk/chinese/images/btn_all.png) 0 0 no-repeat;
	
	font-size: 0;
	
	/* from .glyphicon */
	/*top: 1px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;*/
}

@media (min-width:768px){
	.btn-all {
		right: 36px;
	}
}

/*added on 13Apr2023*/
#homepage_content_right{border-left: 1px solid #ebebeb;}

div.home_subsection div.right_icon_button {
	position: absolute;
	right: 0px;
	top: 2px;
	z-index: 10;
}

div.home_subsection div.right_icon_button a {
	padding: 3px 7px 3px 10px;
	/* Defined text link style despite normally there is only image*/
	font-size: 16px;
	color: #6D0864;
	font-weight: bold;
}


/* home subsection aside
-------------------------------------------------- */

#homepage_content aside ul {
	padding: 0 0 0 10px;
}

#homepage_content aside li {
	list-style-type:none;
	display:list-item; 
	text-decoration:none;
	background-image: url(/20241028104703oe_/https://www.cuhk.edu.hk/chinese/images/student_bullet.png);
	background-repeat: no-repeat;
	background-position: 0px 5px; 
	padding-left: 10px;
	margin-left: 10px;
	font-size: 1em;
	line-height: 21px;
}


/* Home Content Block
-------------------------------------------------- */

.homepage_content_block div {
	margin-bottom: 0px !important;
}

.homepage_content_block article a {
	display: block;
	width: 100%;
	/*min-height: 200px;*/
	padding: 20px;	
	background-color: white;	
}

@media (max-width:400px){
	.homepage_content_block article a {
		padding: 0 0 20px 0;
	}

	.homepage_content_block article a >span.article_caption {
		display: block;
		padding-left: 5px; padding-right: 5px;	
	}
}


.homepage_content_block article a:hover {
	background-color: rgb(245, 238, 245);
	text-decoration: none;
}

.homepage_content_block article a img {
	border: 0px;
	width: 100%;
	/*before 13Apr2023: max-width: 400px; */
	height: auto;
	display: block;
	margin-bottom: 10px;
}

.homepage_content_block article a span {
	color:#964C90;
	font-size: 1.167em;
	font-weight: bold;
	line-height: 1.3;
}

@media (min-width:768px){
	/*.homepage_content_block article a {
		border-width: 0px 0px 0px 1px; 
		border-color: #EBEBEB; 
		border-style: solid;
	}*/
}

/* Upcoming Events - CAROUSEL
-------------------------------------------------- */

.upcoming-button {
	position: absolute;
	width: 20px;
	top: 50%;
	margin-top: -20px;
	display: block;
}

.upcoming-button a {
    color: #fff;
    font-size: 12px;
    background: rgba(0, 0, 0, .6);
    padding: 0px;
    width: 20px;
    height: 20px;
    border-radius: 22px;
    display: block;
    text-align: center;
}

@media (max-width:768px){
	.upcoming-item .upcoming-item-photo {
		display: none;
	}	
	
	.upcoming-item .upcoming-item-content {
		padding-left: 20px;
	}	
	
}


#upcoming-left-button {
	left: 5px; width: 20px; 
}

#upcoming-right-button {
	left: 100%; margin-left: -25px;
}
#upcoming-pause-button {
	left: 100%; margin-left: -25px; top: 95%;
}
/*#upcoming-events {
	border-width: 0px 0px 0px 1px; 
	border-color: #EBEBEB; 
	border-style: solid;
}*/

#upcoming-events .upcoming-item {
	padding: 0px 0px 10px 0px;
	min-height: 90px;
	cursor: pointer; 
}   

#upcoming-events .upcoming-item .upcoming-item-photo {
	float:left;
	height: 70px;
	width: auto;
	margin-right: 10px;
}

#upcoming-events .upcoming-item .upcoming-item-content a {
	color: #000000;
	font-size: 15px; /*before 13Apr2023: font-size: 1.083em;*/
	text-decoration: none;
}

#upcoming-events .upcoming-item .upcoming-item-content a:hover {
	color: #964C90;
}

#upcoming-events .upcoming-item .upcoming-item-content .upcoming-datetime {
	color: #666666; /*#717171*/
	font-size: 1em;
}

@media (min-width:768px){
	.upcoming-button { display: block; }
	#upcoming-events .upcoming-item { padding: 0px 20px 10px 20px; }   
}



/* News section
-------------------------------------------------- */

article#whats_new_template.news_article {
	display:none;	
}

article.news_article > time {
	float: left;
	width:50px; 
	height:48px; 
	/*before 13Apr2023: background:url(/20241028104703oe_/https://www.cuhk.edu.hk/chinese/images/calendar2.png) no-repeat; */
	color:#fff; 
	font-weight:700;
}

article.news_article > time .month {
	font-size: 14px;
	width:50px; /*before 13Apr2023: 42px;*/
	text-align:center; 
	font-weight: bold; /*before 13Apr2023: normal;*/
	top:0px;
	left:13px;
	
	padding-top: 3px;
}

article.news_article > time .day {
	width:50px; /*before 13Apr2023: 42px;*/
	text-align:center; 
	top:0px; 
	left:10px;
	font-size: 15px; /*before 13Apr2023: 20px;*/
	color: white; /*before 13Apr2023:color:#717171;*/
	/*before 13Apr2023: padding-top: 2px;*/
	/* fixed in px, not em */
	font-family: Roboto, Arial, 'Noto Sans SC Light', 'Heiti SC', 'Microsoft Yahei', sans-serif !important;
}

article.news_article {
	display: block; min-height: 60px; margin-bottom: 10px; padding: 5px 10px 5px 20px; clear: both; /*before 13Apr2023: padding: 5px 10px 5px 10px;*/
}

/* display only the first item in mobile --- Cancelled
article.news_article:nth-child(2) {
	display: block;
}
*/

div.news_content {
	font-size: 15px; /*before 13Apr2023: font-size: 1.083em;*/ color: #000; text-decoration: none; padding-left: 55px;
}

div.news_content a {
	color: #000000; text-decoration: none;
}

@media (min-width:768px){
	article.news_article { display: block; }
	div.news_content a:hover { color:#964C90; text-decoration: none; }
}

/* Popular Links
-------------------------------------------------- */

#popular_links ul { margin: 0; padding: 0 5px; font-size: 15px;}

/* mobile */
#popular_links li {
	margin: 0; padding: 0; display: block; 
	/* appearance */
	background-color: #F6F6F6; padding: 10px 15px; margin: 5px; border-radius: 5px;
}
#popular_links li a { display: block; width: 100%; color: black; }
#popular_links li a:hover {    color: #964C90;}
#popular_links li.banner img { display: none; }

/* desktop - sm or above */
@media (min-width:768px){	
	#popular_links li { background: none; padding: 0; margin: 5px; border-radius: 0;}
	#popular_links li.banner { padding: 4px 0; }	
	#popular_links li.banner.half  { display: block; float: left; width: 70px; }
	#popular_links li.banner img { display: inline; max-width: 300px;width: 100%;padding-right: 15px;}
	#popular_links li.banner span { display: none; }
}

/* popup windows 20220228*/
/*- Modules
============================================================================= */
.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 7px;
}

.modal-dialog {
  width: auto;
  max-width: 1110px;
  margin-top: 75px;
}
@media screen and (max-width: 991px) {
  .modal-dialog {
    margin-top: 38px;
  }
}
@media screen and (max-width: 767px) {
  .modal-dialog {
    margin-top: 20px;
  }
}

.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem);
}
@media screen and (min-width: 576px) {
  .modal-dialog-centered {
    min-height: calc(100vh - 10rem);
  }
  .modal-sm {
    max-width: 500px;
  }
}

.modal-content {
  box-shadow: 0;
  border: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
  /*border-top: 0.375em solid #3f0760;*/
  padding: 1.75em;
  position: relative;
}
@media screen and (max-width: 767px) {
  .modal-content {
    padding: 15px;
  }
}

.modal-body {
  padding: 0;
}

.modal .close {
background: #606061;
color: #FFFFFF;
line-height: 25px;
position: absolute;
right: -12px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
-webkit-border-radius: 12px;
-moz-box-shadow: 1px 1px 3px #000;
}

}
@media screen and (max-width: 767px) {
  .modal .close {
    font-size: 2em;
  }
}
.modal .close:after {
  /*content: "";*/
  display: inline-block;
}

.modal .close:hover:after, .modal .close:focus:after {
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -webkit-transform: scale(0.8);
  transform: scale(0.8);
}