
@media (max-width: 375px){
	.resources {
		padding:30px 25px !important;
	}
	.services_facilities  {
		padding:30px 25px !important;
	}
}
@media (max-width: 1000px){
	.top_detail {
		display:block !important;
	}
	
	.top_detail .left , .top_detail .right{
		width:unset !important;
	}
	
	.location_card { 
		width:82px !important;
		height:90px !important;
	}
	
	.service_list { 
		grid-template-columns: repeat(2, 1fr)!important;
	}
	
	.service_card {
		width:137px !important;
		height:150px !important;
	}
	
	.resources_list {
		grid-template-columns: repeat(2, 1fr)!important;
		column-gap: 12px !important;
	}
	.resources_card {
		width:141px !important;
		height:127px !important;
	}
	
	.resources_card_title{
		font-size:75% !important;
		min-height:50px !important;
	}
	
	.today_hour {
		width:290px !important;
		background-image: url(/20240726003300oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/hours_bg_mb.png) !important;
		background-repeat: no-repeat;
		background-position: center;
		
		padding: 34px !important;
		font-size: 95% !important;
	}
	
	.about_us {
		margin-right:unset !important;
	}
	
	.view_all {
		display: none;
	}
	
	.people_list{
		display:block !important;
	}
	
	.people_img {
		width: 95px !important;
		height: 95px !important;
		margin-right:unset !important;
	}
	.people_img img {
		width: 100% !important;
		height : 100% !important
	}
	
	.people_card {
		margin-right: unset !important;
		margin-bottom: 20px;
	}
	
	.people_detail {
		margin-left:20px !important;
	}
	
	.location-image img{
		max-width: 27px !important;
		max-height: 20px !important;
	}
	
	.location-name {
		font-size:50% !important;
		margin-top: 10px !important;
	}
	
	.news-section ul li {
		font-size:100% !important;
	}
	
	.tab-container#event-date-tab .tab-nav {
		font-size:80% !important;
	}
	
	.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-info .event-title {
		font-size:100% !important;
	}
	
	.left {
		margin-bottom:30px;
	}
	
	.view_all_mb {
		display:block !important;
	}
}

.main-nav {
	bottom:355px;
}

.loop_banner_div {
	background-size: cover;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.top_detail{
	display:flex;
	margin-top:30px;
	margin-bottom: 30px;
}
.top_detail .left{
	width:743px;
}

.top_detail .right {
	width: 521px;
}
.about_us {
	background-color: #F6F6F6;
    border-radius: 23px;
	padding:40px 40px;
	margin-right:32px;
	
    box-shadow: 0px 5px 15px rgb(119 119 119 / 20%);
}  

.about_us_title {
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;	
	margin-bottom: 10px;
}

.about_us_content {
	
	line-height: 27px !important;
	font-weight:400;
	font-size: 90%;
}

.about_us_banner {
	margin-top:20px;
	margin-bottom:40px;
}

.opening_hour {
	background-color: #F6F6F6;
    border-radius: 23px;
	padding:40px 40px;
	margin-bottom:30px;
	
    box-shadow: 0px 5px 15px rgb(119 119 119 / 20%);
}

.opening_hour_title{
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
	margin-bottom:20px;
}
.today_hour {
	background-image: url(/20240726003300oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/hours_bg.png);
    color: #FFF;
    width: 441px;
    height: 96px;
    padding: 28px;
    font-size: 130%;
    text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}
@media(max-width: 400px) {
	.today_hour {
		background-size: contain;
		width: 100% !important;
	}
}
.contact .title{
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
	margin-top : 30px;
	margin-bottom : 21px;
}

.location .title{
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
	margin-top : 20px;
	margin-bottom : 21px;
}

.mobile {
	margin-bottom: 17px;
}

.mobile_icon {
	 position: relative;
    background-image: url(/20240726003300oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/phones_icon.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 19px;
    height: 18px;
    display: inline-block;
	margin-right:10px;
}

.email_icon {
	 position: relative;
    background-image: url(/20240726003300oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/email_icon.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 19px;
    height: 18px;
    display: inline-block;
	margin-right:10px;
}

.address {
	margin-top: 17px;
}

.address_icon {
	position: relative;
   background-image: url(/20240726003300oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/address_icon.png);
   background-repeat: no-repeat;
   background-position: center;
   background-size: contain;
   width: 19px;
   height: 18px;
   display: inline-block;
   margin-right:10px;
}
.mobile_text {
	font-size:90%;
}


.location_card {
    background-color: #F6F6F6;
    border-radius: 23px;
	display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    width: 130px;
    height: 130px;
    margin-left: auto;
    margin-right: auto;
	box-shadow: 0px 5px 15px 0px rgb(119 119 119 / 20%);
}


.location_list{
	display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 25px;
    row-gap: 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
@media(max-width: 400px) {
	.location_list{
		grid-template-columns: repeat(2, 1fr);
	}
}
.location-detail {    
	margin: auto;	
}

.location-name{
	text-align: center;    
	margin-top: 20px;
	font-size: 112.5%;
    color: var(--clr-primary);
    font-weight: 500;
	font-size:80%;
}

.location-image {
   /*text-align: -webkit-center;*/
	text-align: center;
}

.location-image img{
	max-width:40px;
	max-height:40px;
}

.event_title{
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
}

.event-top {
	display: flex;
    justify-content: space-between;
	margin-bottom: 20px;
}

.view_all {
	line-height: 35px;
	text-decoration: underline;
	font-size:80%;
}

.tab-container#event-date-tab {
	background-color: #F6F6F6;
    box-shadow: 0px 5px 15px rgb(119 119 119 / 20%);
    border-radius: 25px;
    padding: 30px 1.5rem 33px;
    font-weight: 500;
}

.tab-container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
	max-height: 500px;
}

.tab-container#event-date-tab .tab-content-container {
    overflow-y: auto;
}

.tab-container#event-date-tab .tab-nav {
    justify-content: unset;
    margin-right: auto;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tab-container#event-date-tab .tab-content-container {
    overflow-y: auto;
}

.tab-container#event-date-tab .tab-content-container {
    overflow-y: auto;
}
.tab-container .tab-content-container {
    display: flex;
    height: 100%;
    width: 100%;
}

.tab-container .tab-content.active {
    display: flex;
}
.tab-container .tab-content {
    display: none;
    flex-direction: column;
    justify-content: center;
    margin-right: -100%;
    height: 100%;
    width: 100%;
}

.tab-container#event-date-tab .tab-content .event-dates {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 0px !important;
}
.tab-container .tab-content > * {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.tab-container#event-date-tab .tab-content .event-dates .event-date-time {
    display: flex;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
*, ::before, ::after {
    /* word-break: keep-all; */
    word-wrap: normal;
}

.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-date {
    display: flex;
    flex-direction: column;
    width: 65px;
    height: 65px;
    border-radius: 13px;
    margin-right: 1rem;
    overflow: hidden;
    font-size: 12px;
    flex-shrink: 0;
}

.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-info {
    display: flex;
    flex-direction: column;
}

.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-date > .top {
    background-color: var(--clr-primary);
    color: white;
}
.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-date > .top, .tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-date > .bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    height: 50%;
}

.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-date > .bottom {
    background-color: white;
    color: var(--clr-primary);
}
.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-date > .top, .tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-date > .bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    height: 50%;
}

.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-info .event-title {
    color: var(--clr-primary);
    font-size: 112.5%;
}

.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-info .event-time {
    position: relative;
    color: var(--clr-font);
    font-size: 87.5%;
    padding-left: 2rem;
}
.tab-container#event-date-tab .tab-content .event-dates .event-date-time .event-info .event-time::before{
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    background-image: url(/20240726003300oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-time.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.tab-container .tab-nav li {
    margin: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tab-container#event-date-tab .tab-nav li.active {
    color: var(--clr-primary);
}

.tab-container#event-date-tab .tab-nav li:not(:last-child)::after {
    position: absolute;
    content: '';
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 2px;
    height: 2rem;
    background-color: var(--clr-font);
}


.news-top {
	display: flex;
    justify-content: space-between;
	margin-bottom: 20px;
}

.news_title{
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
}


.news-section {
    background: #F6F6F6;
    box-shadow: 0px 5px 15px rgb(119 119 119 / 20%);
    border-radius: 20px;
    padding: 30px 3rem;
    margin-bottom: var(--section-margin);
}

.news-section ul li {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 2rem;
    font-weight: 500;
    font-size: 112.5%;
}

.news-section ul li::before {
    position: absolute;
    content: '';
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
background-color: var(--clr-primary);
}

.view_all_mb {
	display:none;
	text-align:center;
	text-decoration: underline;
	font-size:85%;
	font-weight:500;
	color : #6D1B6D;
	margin-top: 15px;
}

.services_facilities {
	background-color: #F6F6F6;
    border-radius: 23px;
	padding:30px 40px;
	margin-bottom:30px;
	
    box-shadow: 0px 5px 15px rgb(119 119 119 / 20%);
}

.services_title {
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
		margin-bottom:20px;
}

.service_card {
    background-color: #F6F6F6;
    border-radius: 23px;
	display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    width: 180px;
    height: 190px;
    margin-left: auto;
    margin-right: auto;
	box-shadow: 0px 5px 15px 0px rgb(119 119 119 / 20%);
}
@media(max-width:400px) {
	.service_card {
		width: 100% !important;
	}
}


.service_list{
	display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 25px;
    row-gap: 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.service-detail {    
	margin: auto;	
}

.service-name{
	text-align: center;    
	margin-top: 20px;
	font-size: 112.5%;
    color: var(--clr-primary);
    font-weight: 500;
	font-size: 95%;
}

.service-image {
	min-height:60px;
	min-height:60px;
	text-align: center;
}

.service-image img{
 max-height: 46px;
    max-width: 46px;
}

.related_links_title{
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
	margin-bottom:20px;
	margin-top:20px;
}

.related_link_list ul li {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 2rem;
    font-weight: 500;
    font-size: 112.5%;
}

.related_link_list ul li::before {
    position: absolute;
    content: '';
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
background-color: var(--clr-primary);
}


.resources {
	background-color: #F6F6F6;
    border-radius: 23px;
	padding:30px 40px;
	margin-bottom:30px;
	
    box-shadow: 0px 5px 15px rgb(119 119 119 / 20%);
}

.resources_title{
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
	    margin-bottom: 20px;
}

.resources_list{
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 46px;
    row-gap: 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
	text-align: center;
}
@media (max-width:400px) {
	.resources_list {
		grid-template-columns: repeat(1, 1fr) !important;
	}
	.resources_card {
		margin-left: auto;
		margin-right: auto;
	}
}

.resources_card {
    border-radius: 23px;
    overflow: hidden;
    width: 264px;
    height: 238px;
}
.resources_img{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.resources_card_title {
	min-height:72px;
	font-size:90%;
	background-color: rgba(74, 12, 74, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}


.show_button.more {
	background-image: url(/20240726003300oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/button-down.svg);
}
.show_button.more::after {
	/*content: 'More ';*/
}

.show_button.less {
	background-image: url(/20240726003300oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/button-up.svg);
}
.show_button.less::after {
	/*content: 'Less ';*/
}

.show_button__more_text , .show_button_less_text {
	text-align:center;
	display:none;
	font-weight:500;
	color: #6D1B6D;
}

.show_button__more_text.active , .show_button_less_text.active {
	display:block;
}

.resources_card.over {
	display:none;
}

.resources_card.over.active {
	display:block;
}
.show_button {
	position: relative;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	height:30px;
	width:30px;	
	margin: 35px auto 2px auto;
}

.show_button::after {
	position: absolute;
	display: block;
	bottom: 0;
	left: 50%;
	width: 96px;
	color: var(--clr-primary);
	font-weight: 500;
	font-size: 92.5%;
	text-align: center;
	transform: translate(-50%, 100%);
}

.people{
	background-color: #F6F6F6;
    border-radius: 23px;
	padding:30px 40px;
	margin-bottom:30px;
	
    box-shadow: 0px 5px 15px rgb(119 119 119 / 20%);
}

.people_title{
	font-weight:600;
	font-size:140%;
	color:#6D1B6D;
	    margin-bottom: 20px;
}

.people_img img {
	width:150px;
	/*height:135px;*/
	border-radius: 23px
}


.people_list {
	display:flex;
}

.people_card {
	display:flex;
	margin-right: 100px;
}
@media(max-width: 400px) {
	.people_card {
		flex-direction: column;
		align-items: center;
		row-gap: 12px;
	}
	.people_detail {
		margin-left: auto !important;
	}
}
.people_detail {
	margin: auto;
}

.people_img {
	margin-right:20px;
}

.people_name {
	color :#6D1B6D;
	font-size:90%;
	font-weight:500;
}

.people_title_name{
	color :#585656;
	font-size:75%;
	font-weight:400;
}