/*Alert bar*/
.alert-bar {
    background-color: var(--clr-secondary);
    max-height: 0px;
    pointer-events: none;
    transition: max-height 0.3s linear;
}
.alert-bar .container{
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
}
.alert-bar .container .alert-icon {
    width: 22px;
    height: 22px;
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-alert.svg);
    background-position: center;
    background-size: cover;
    flex-shrink: 0;
}
.alert-bar .alert-text {
	display:none
}

li.font-size {
    color: unset !important;
}

.alert-bar.active .container .alert-text {
	display:block;
    padding-left: 1rem;
}
.alert-bar .container .alert-close-btn {
    width: 24px;
    height: 24px;
    margin-left: auto;
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-alert-close.svg);
    background-position: center;
    background-size: cover;
    cursor: pointer;
    flex-shrink: 0;
}
.alert-bar.active {
    max-height: 100vh;
    pointer-events: all;
}
/*popup message*/
.popup-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    top: 0;
    left: 0;
    z-index: 200;
}
.popup-overlay.active {
    background-color: rgba(26, 25, 25, 0.5);
    pointer-events: all;
}
.popup-overlay .popup-message-container {
    display: flex;
    flex-direction: column;
    max-width: 1074px;
    width: 100%;
    height: fit-content;
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 25px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.35s linear;
}
.popup-overlay.active .popup-message-container {
    opacity: 1;
}
.popup-overlay .popup-message-container .popup-heading {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--clr-primary);
}

@media(max-width: 375px) {
	.popup-overlay .popup-message-container .popup-heading p {
		font-size: 145% !important;
	}	
}

.popup-overlay .popup-message-container .popup-heading p {
    font-size: 175%;
    padding-top: 20px;
    padding-bottom: 20px;
    color: white;
    width: 100%;
    margin-left: 50px;
    margin-right: 50px;
    text-align: center;
}
.popup-overlay .popup-message-container .popup-heading .popup-close-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-popup-close.svg);
    background-position: center;
    background-size: cover;
    cursor: pointer;
    flex-shrink: 0;
}
.popup-overlay .popup-message-container .popup-content {
    box-sizing: border-box;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 50px;
    padding-right: 50px;
    background-color: white;
}

/*header*/

@media(max-width: 425px) {
	header{
		height: 95px !important;
	}
}
header {    
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background-color: white;
    width: 100%;
    height: var(--header-height);  
    z-index: 100;  
}
header .header {
    display: flex;
    align-items: center; 
    font-weight: 500;   
    position: relative;
}
header .header .quick-link {
    margin-left: auto; 
    flex-shrink: 0;
}
header .header .quick-link .btn.active{
	background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/eva_arrow-up-fill.svg) !important;
}
header .header .quick-link .btn{
    padding-right: 2.8rem;
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/menu-arrow-down.svg);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer; 
}
header .header .quick-link .sub-menu {
    border-radius: 15px;
    background: rgba(247, 247, 247, 0.95);
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    width: 120%;
    font-weight: 400;
}
/* @supports (backdrop-filter: blur(20px)) {
    header .header .quick-link .sub-menu {
        backdrop-filter: blur(20px)
    }
  } */
  

header .header .quick-link .sub-menu li{
    font-size: 75%;
    /*padding: 2rem 1rem;*/
	    padding: 15px 13px;
}
header .header .quick-link .sub-menu li a{
    text-decoration: none;
    color: var(--clr-font);
}
header .header .options {
    margin-right: 1rem;
    flex-shrink: 0;
}
header .header .options ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    margin-left: 2rem;
}
header .header .options li {    
    margin: 0;
    margin-left: 1.4rem;

}
header .header .options li.font-size span {  
    margin-left: 0.1rem;
    cursor: pointer;
}
header .header .options li.lang span a {   
    text-decoration: none;
    color: var(--clr-font);
}
header .header .options li.lang .zh-cn{  
	font-weight:600;
}     
header .header .options li.lang span {       
    position: relative;	
}
header .header .options li.lang span:not(:last-child) {       
    padding-right: 0.5rem;
}
header .header .options li.lang span:not(:last-child)::after {   
    position: absolute;
    content: '';
    width: 1px;
    height: 70%;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: var(--clr-font);
}
header .header .search-btn {
    cursor: pointer;
}
@media(max-width: 900px) {
    header .header .options ul {
        margin-left: 0;
    }
}
@media(max-width: 820px) {
    .quick-link, .options {
        display: none;
    }
}
/*mobile menu*/
.alert-bar.active ~ .mobile-menu {
    margin-top: calc(var(--header-height) + var(--alert-height));
}
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-menu.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-left: 20px;
}
.mobile-menu-toggle.active {
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-menu-close.svg);
}
.mobile-menu {
    --alert-height: 0px;
    display: none;
    position: fixed;
    margin-top: var(--header-height);
    padding-bottom: 120px;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height) - 72px);
    z-index: 90;
    background-color: white;
    overflow-x: hidden;
    overflow-y: scroll;
    font-weight: 500;
}
.mobile-menu.active {
    display: block;
	/* height: 100%;*/
     overflow: scroll;
}
.mobile-menu .expandable::before {
    display: none;
}
.mobile-menu .expandable ,
.mobile-menu .expandable-parent {
    position: relative;
}
.mobile-menu .expandable::after ,
.mobile-menu .expandable-parent::after {
    position: absolute;
    content: '';
    width: 11px;
    height: 5px;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/expand-arrow-down-white.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.mobile-menu .expandable.active::after ,
.mobile-menu .expandable-parent.active::after {
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/expand-arrow-up-white.svg);
}
.mobile-menu .expandable-parent::after {
    top: 30px;
    transform: none;
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/expand-arrow-down.svg);
}
.mobile-menu .expandable-parent.active::after {
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/expand-arrow-up.svg);
}
.mobile-menu .expandable.yellow::after {
   background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/expand-arrow-down-black.svg);
}
.mobile-menu .expandable.yellow.active::after {
   background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/expand-arrow-up-black.svg);
}
.mobile-menu .expandable.yellow {
    background-color: var(--clr-secondary);
    color: var(--clr-font);
    padding-left: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
}
.mobile-menu > .menu-btn.yellow + .expand-content > div > ul > li {
    /*background-color: #FEF9F1 !important;*/
    background-color: #FFFFFF !important;
	
}
.mobile-menu > .menu-btn.yellow + .expand-content > div > ul > li a {
    color: var(--clr-font) !important;
}
.mobile-menu ul,
.mobile-menu li {
    margin: 0;
}

.mobile-menu a {
	width: 70%;
}

.mobile-menu li a,
.mobile-menu > .menu-btn > a{
    padding-left: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
}
.mobile-menu > .menu-btn {
    display: flex;
    align-items: center;
    width: 100vw;
    background-color: var(--clr-primary);
    margin-bottom: 2px;
}
.mobile-menu > .menu-btn a{
    color: white;
}
.mobile-menu > .menu-btn + .expand-content > div > ul > li {
    display: flex;
    flex-direction: column;
    width: 100vw;
    background-color: #F3ECF3;
}
.mobile-menu > .menu-btn + .expand-content > div > ul > li:not(:nth-last-of-type(1)) {
    margin-bottom: 2px;
}
.mobile-menu .sub-menu.expand-content {
    background-color: white;
    width: 110vw;
    margin-left: -30px;
}
.mobile-menu .sub-menu.expand-content li {
    padding-left: 30px;
}
.mobile-menu .sub-menu.expand-content li a {
    display: flex;
    width: 100%;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    /*color: var(--clr-font);*/
	color: #3C3B3B;
}

.mobile-menu-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}
.mobile-menu-bottom .search-form {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.mobile-menu-bottom .search-form::after {
    position: absolute;
    content: '';
    width: 105%;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #A5A5A5;
}
.mobile-menu-bottom .search-form form {
    display: flex;
    align-items: center;
    width: 100%;
    margin-left: 1rem;
}
.mobile-menu-bottom .search-form input[type="text"] {
    height: 39px;
    width: 100%;
    background: white;
    border: 0.5px solid #585656;
    border-radius: 8px;
}
.mobile-menu-bottom .menu-options {
    width: 100%;
    margin-right: 60px;
}
.mobile-menu-bottom .menu-options ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.mobile-menu-bottom .menu-options .lang {
    margin-left: 30px;
}
.mobile-menu-bottom .menu-options .lang a {
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
}
@media(max-width: 820px) {
    .mobile-menu-toggle {
        display: block;
    } 
}
/*Search bar*/
.search-bar.desktop {
    position: absolute;
    display: block;
    border: 0 !important;
    border-radius: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
}
.search-bar.desktop.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0%);
}
.search-bar.desktop form {
    display: flex;
    align-items: center;
    height: 100%;
}
.search-bar.desktop form .close-btn{
    width: 24px;
    height: 24px;
    margin-left: auto;
    margin-right: 20px;
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-alert-close.svg);
    background-position: center;
    background-size: cover;
    cursor: pointer;
    flex-shrink: 0;
}
.search-bar.desktop form .form-text{
    border: 0;
    outline: 0;
    font-size: 180%;
}
.search-bar.desktop form .form-text:focus{
    border: 0;
    outline: 0;
}

.drop-down-content .close-btn {
								   
	width: 24px;
    height: 24px;
					  
    background-image: url(/20221206003033oe_/http://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-alert-close.svg);
    background-position: center;
    background-size: cover;
    cursor: pointer;
    flex-shrink: 0;
					
    margin-left: auto;
    margin-top: -15px;   
			 
}