@charset "UTF-8";

body {
	font-size: 12px !important;
}
	
/* home spotlight carousel
-------------------------------------------------- */

#feature { background-color: #FFF; }

#feature .item img { width: 100%; height: auto; }

@media (max-width:536px){
	#feature .item img {
		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; line-height: 18px; opacity: 1; color: #C90;
	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: 0px;
	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: 5px;
	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 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: 3em;
		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.45em; 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;
	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;
	background: #FFF url(/20201208105634oe_/http://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;
}

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;
}

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(/20201208105634oe_/http://www.cuhk.edu.hk/chinese/images/btn_all.png) 0 0 no-repeat;
	
	font-size: 0;
	
	/* from .glyphicon */
	/*top: 1px;
	font-family: 'Glyphicons Halflings';
	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;
	}
}

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(/20201208105634oe_/http://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%;
	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: 2px;
    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-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: 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; 
	background:url(/20201208105634oe_/http://www.cuhk.edu.hk/chinese/images/calendar2.png) no-repeat; 
	color:#fff; 
	font-weight:700;
}

article.news_article > time .month {
	font-size: 12px;
	width:42px; 
	text-align:center; 
	font-weight: normal;
	top:0px;
	left:13px;
}

article.news_article > time .day {
	width:42px; text-align:center; 
	top:0px; left:10px;
	font-size:20px; font-family: Georgia, serif; color:#717171;
	/* fixed in px, not em */
}

article.news_article {
	display: block; min-height: 60px; margin-bottom: 10px; padding: 5px 10px 5px 10px; clear: both;
}

/* display only the first item in mobile --- Cancelled
article.news_article:nth-child(2) {
	display: block;
}
*/

div.news_content {
	font-size: 1.083em; color: #000; text-decoration: none; padding-left: 50px;
}

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; }

/* 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%; }
#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; }
	#popular_links li.banner span { display: none; }
}
