/*
Theme Name: HOKOHOST
Theme URI: https://hokohost.com
Author: CUHK LTD.
Author URI: https://cuhk.uk
Description: A custom WordPress theme for HOKOHOST.
Version: 1.0
*/
*, ::after, ::before {
    box-sizing: border-box;
}
body {
	margin: 0;
	font-family: Arial, sans-serif;
	background-color: #333;
	color: white;
}

.logo {
	font-weight: bold;
	font-size: 24px;
}
.menu {
	display: flex;
}
.menu-item li a {
	color: white;
	text-decoration: none;

}
.mobile-menu-button {
	display: none;
}
.topbar {
	background-color: #222;
	position: fixed;
	width: 100%;
	top: 0;
	z-index:100;
	display: flex;
	padding: 9px 0px;
	justify-content: center; 
}
.topbar-inner {
	width: calc(100% - 20px); 
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.login {
	background-color: #333;
	border: 1px solid gray;
	padding: 10px;
	border-radius: 4px;
	color: white;
	text-decoration: none;
	margin-left: 10px; 
}
.language-select {
	display: flex;
	align-items: center;
}
.fas { 
	color: white;
	margin-right: 5px;
}

.topbar-inner {
	flex-direction: row;
	justify-content: space-between;
}
.footer {
	text-align: center;
	padding: 20px;
	width: 100%;
	bottom: 0;
	background-color: #222; 
	font-size:13px;
}
.header {
	background-color: #333;
	z-index: 99;
	display: flex;
	justify-content: space-between;
	padding: 30px 0px;
	position: fixed;
	width: 100%;
	top: 58px;
	box-sizing: border-box;
	align-items: center;
}
.menu-item{
	margin: 0px;
    padding: 0px;
    list-style: none;
	position:relative;
}
.logo {
	font-weight: bold;
	font-size: 24px;
}
.menu ul{
	display:flex;
	gap:33px
}
.menu-item li a {
	color: white;
	text-decoration: none;
}
.mobile-menu-button {
	display: none;
}
.main-content{
    margin-bottom: 60px !important;
    margin-top: 201px !important;
}

.main-content a:hover{
	opacity:.8
}
.polylang_langswitcher{
	margin: 0px;
	list-style: none;
    background-color: #333;
    border: 1px solid gray;
    padding: 0px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    margin-left: 10px;
    z-index: 999;
    position: absolute;
	display: none;

}
.polylang_langswitcher li{
    padding: 6px 10px;
    min-width: 116px;
}
.polylang_langswitcher li:hover{
	background-color: #222222;
}
.polylang_langswitcher a{
	color: white;
    text-decoration: none;
}
.currentlang{
	margin: 0px;
    list-style: none;
    background-color: #333;
    border: 1px solid gray;
    padding: 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    margin-left: 10px;
    z-index: 999;
	cursor:pointer;
	display:flex; 
	align-items:center;
	gap:22px;
    justify-content: space-between;
	min-width: 118px;
}	

.header .container{
	display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu ul ul.sub-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0; 
    background-color: #333;
    border: 1px solid grey;
    z-index: 1000;
    width: auto; 
    min-width: 100%; 
    white-space: nowrap; 
	border-bottom:0px;
}

.menu ul li:hover > ul.sub-menu li:hover{
	background-color: #222222;
}
.sub-menu{
	padding:0px;
	margin:0px;
}
.menu ul ul.sub-menu li {
	display: block;
	padding:8px 11px
}



.menu-item-has-children{
	display: inline-block;
}

.container{
	max-width:100%;
	width:1100px;
	margin:0px auto;
	padding:0px 20px;
}
@media screen and (min-width: 900px) {
	.menu ul li:hover > ul.sub-menu {
	display: block;
}
	.menu-item  i{
		margin-left: 13px;
	}
	.menu-item{
        min-height: 28px;
        display: flex !important;
        align-items: center;
		justify-content:center;
	}
	.sub-menu .sub-menu{
		left: 100% !important;
        top: -.4px !important;
	}
	.header{
		padding: 0px !important;
		
	}
	.menu-item {
        min-height: 79px;
	}
	.menu ul ul.sub-menu{
		left:0px
	}
	.menu ul ul.sub-menu li{
		min-height:auto;
		padding-top: 16px;
		padding-bottom: 16px;
		border-bottom: 1px solid #7d7d7d;
		justify-content:space-between;
	}
}
.menu-toggle{
	display:none
}
@media screen and (max-width: 900px) {
	.menu-toggle{
		display:block
	}
	.menu{
		display:none
	}
	.menu ul {
		display: block;
	}
	.header {
		justify-content: center;
	}

	.mobile-menu-button {
		display: block;
		position: absolute;
		right: 10px;
		background: none;
		border: none;
		font-size: 24px;
		color: white;
	}
	.mobile-menu-button{
		display: block;
	}
	.menu-container .menu{
		display: none;
		position: absolute;
		top: 77px;
		left: 0;
		background-color: #222222;
		width: 100%;
		padding: 18px;
		padding-bottom:0px !important;
		padding-left:22px !important;
	}
	.menu-item li a {
		display: block;
		margin-top: 0px;
		margin-bottom: 12px;
	}

	.menu ul ul.sub-menu {
		display: none;
		position: unset;
		top: 100%;
		right: 50px;
		background-color: transparent;
		min-width: 190px;
		border: 0px;
		z-index: 99999999999999;
	}
	.menu ul ul.sub-menu li{
		padding:0px;
		margin-bottom:0px !important;
	}
	.menu ul li:hover > ul.sub-menu{
		margin-left:20px;
	}

	.menu-item-has-children{
		width: 100%;
		margin-bottom:12px
	}
	.menu-item-has-children span{
		display: inline-block;
        width: 100%;
        text-align: right;
        padding-right: 9px;
        padding-top: 11px;
        position: relative;
		top: -10px;
	}
	.menu-item-has-children > a{
		position: absolute;
		top: 0;
		z-index: 99999999;
		display:inline-block !important;
	}


	.menu-item li a{
		margin-bottom:21px;
	}
	.sub-menu li a{
		margin-bottom:21px !important
	}

	.menu-item li:last-child a{
		margin-bottom:21px !important;
	}

	.sub-menu .sub-menu {
    	left: 100%; 
    	top: 0; 
    	width: auto; 
    	min-width: 100%; 
	}

	.sub-menu li:first-child{
		margin-top: 11px;
	}
	.sub-menu .menu-item li:first-child a{
		margin-bottom:21px !important;
	}
	.sub-menu .sub-menu .menu-item{
		margin-bottom:21px !important
	}
	.sub-menu .menu-item li:last-child a{
		margin-bottom:21px !important;
	}
	.menu ul li > ul.sub-menu{
		margin-left: 20px !important;
	}
	.sub-menu li:last-child{
		margin-bottom: 0px;
	}
}
body.admin-bar .topbar {
    top: 32px; 
}

body.admin-bar .header {
    top: 90px; 
}

body.admin-bar .main-content {
    margin-top: 231px;
}