@font-face {
    font-family: 'Noto Sans TC';
    src: url('../webfonts/NotoSansTC-Regular.woff2') format('woff2');
}

/* Font for Simplified Chinese */
:lang(zh-CN) {
    font-family: 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
}

/* Font for Traditional Chinese */
:lang(zh-TW) {
    font-family: 'Noto Sans TC', Helvetica, Arial, serif !important;
}

/* Font for English */
:lang(en) {
    font-family: 'Noto Sans TC', Helvetica, Arial, serif !important;
}

.bbhk-menu {
    padding-left: 10px;
    font-weight: 1000;    
}

.nav-link.dropdown-toggle.bbhk-menu {
    color: #1999D2 !important;
}

.nav-link.dropdown-toggle.bbhk-menu.active {
    color: #e36e28 !important;
}

.nav-link.dropdown-toggle.bbhk-menu .line {
    background-color: #00aeef;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 1px;
    z-index: 2;
    transform: translateX(-50%);
    transition: all .5s cubic-bezier(.65, .05, .36, 1);
}

.nav-link.dropdown-toggle.bbhk-menu:hover .line,
.nav-link.dropdown-toggle.bbhk-menu.hover_active .line {
    width: 100%;
}

.bbhk-menu:hover,
.bbhk-menu.active,
.bbhk-submenu .list-group-item.active {
    color: #1999D2 !important;
}

.bbhk-submenu,
.bbhk-submenu > a.list-group-item {
    font-weight: 600;
    /*color: #1999D2 !important;*/
    line-height: 2rem;
}

.bbhk-submenu ~ ul {
    list-style-type: disc;
    padding-inline-start: 1.5rem;
    padding-top: 0.5rem;
}

.bbhk-submenu ~ ul > li {
    padding-left: 0.1rem;
}

nav .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding-left: 0;
    color: black;
    text-decoration: none;
}

/*
nav div.mobile-full-size {
    min-height: 100vh;
    align-content: baseline;
}
*/

/*@media (min-width: 1200px) {*/
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 100vw;
    }
/*}*/

@media only screen and (min-width: 768px) {
    /*
    .dropdown:hover {        
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5) !important;
        border-top-left-radius: 10px !important;
        border-top-right-radius: 10px !important;        
    }
    */

    /*
    .dropdown-toggle:hover ~ .mega-menu {
        display: inline;
    }
    */

    .dropdown:hover .nav-link {
        color: #1999D2 !important;
    }
}

.nav-item.active .nav-link {
    color: #1999D2 !important;
}

.nav-link.active {
    color: #1999D2 !important;
}

.navbar-nav li:hover > ul.dropdown-menu {
    display: block;
}

/* Page inner navbar */
.navbar-nav .nav-item .nav-link {
    color: black; /* Inactive item color */
}

.navbar-nav .nav-item.active .nav-link {
    color: #1999D2; /* Active item color (default Bootstrap primary color) */
}

.navbar-nav .nav-item:not(:last-child) .nav-link::after {
    content: " > ";
    color: black; /* Separator color */
    margin-left: 5px;
}

/* hide drop down arrow */
.dropdown-toggle::after {
    display: none !important;
}

@media only screen and (min-width: 768px) {
    /*
    .dropdown-menu {
        border-radius: 10px !important;
        box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.5) !important;
    }

    .dropdown-menu-root {
        border-top-left-radius: 0px !important;
        border-top-right-radius: 0px !important;
    }
    */
}

.dropdown-menu-right {
    top: auto;
    margin-top: -1px;
    left: auto;
    right: auto;
}

.dropdown-submenu {
    position:relative;
}

@media only screen and (min-width: 768px) {
    .dropdown-submenu>.dropdown-menu {
        top: 0;
        left: 100%; /*-10rem; /* 10rem is the min-width of dropdown-menu */    
        margin-top:-6px;
    }
}

@media only screen and (max-width: 767px) {
    .dropdown-submenu>.dropdown-menu {
        margin: 10px;
    }
}

@media only screen and (min-width: 768px) {
    /* rotate caret on hover 
    .dropdown-menu > li > a:hover:after {
        text-decoration: underline;
        transform: rotate(90deg);    
    }*/
}

.dropdown-item.active {
    background-color: #fff !important;
    color: #1999D2 !important;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: #fff !important;
    color: #1999D2 !important;
}

@media only screen and (max-width: 767px) {
    .left-menu {
        display: none;        
    }

    /*
    .video {
        min-height: 100px;
    }
    */
}

@media only screen and (min-width: 768px) {
    .left-menu {
        background-color: #1999D2;
        color: #fff;
    }

    /*
    .video {
        min-height: 600px;
    }
    */
}

iframe {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
}

.left-menu .row.active {
    background-color: #79B6FF;
}

.left-menu a {
    color: #fff;
    text-decoration:none;
}

.right-content {
    background-color: #fff;
}

/* --- */

.btn-primary, .btn-primary:active, .btn-primary:visited {
    background-color: #A6E8ED !important;
    border-color: #A6E8ED !important;    
}

.btn-primary:focus {
    box-shadow: 0 0 0 .2rem rgba(147, 202, 210, 0.5) !important;
}

.btn-primary:hover { /*, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open>.dropdown-toggle.btn-primary {*/
    background-color: #1999D2 !important;
    border-color: #1999D2 !important;    
}

/* --- 
.bbhk-news-bg-color {
    background-color: #E6F6FF;
}

.bbhk-news-title-color {
    color: #33589F;
}
*/

.bbhk-title-text-color {
    color: #1999D2;
}

/* --- */

.bbhk-footer-text-color,
.bbhk-footer-text-color a {
    color: #ffffff;
    text-decoration: none;
}

/* --- */

.bbhk-support-button {
    padding: 4px;
    border: 2px solid #fff;
    border-radius: 25px !important;
    background-color: #fff !important;
    color: #1999D2;
}

/* --- */

@media only screen and (max-width: 767px) {
    .min-height-col {
        min-height: 300px;
    }
}

/* --- */

.table-bordered,
.table-bordered th,
.table-bordered td {
    border: 1px solid #000!important;
}

/* --- */
.fixed-bottom-div {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 10;
}

.bbhk-toc-title {
    font-size: 1.3rem;
}

.bbhk-toc-content {
    font-size: 1.2rem;
}
