﻿/* width */
div::-webkit-scrollbar {
    width: 10px;
}

/* Track */
div::-webkit-scrollbar-track {
    box-shadow: inset 0 0 2px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: grey;
    border-radius: 5px;
}

/* Handle on hover */
div::-webkit-scrollbar-thumb:hover {
    background: #CCC;
}

.no-padding {
    padding: 0px !important;
}

html {
    overflow-x: hidden;
    overflow-y: scroll;
}

@-moz-document url-prefix() {
    body {
        font-family: 'Muli', sans-serif, 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    }
}

body {
    font-family: 'Muli', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.navbar {
    padding: 8px 16px;
}

.navbar-brand {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-right: 15px;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    -ms-overflow-style: none;
    overflow-y: scroll;
    transition: 0.5s;
    margin-top: 20px;
    display: none;
    z-index: 10001;
}

    .overlay > .container:last-child {
        margin-bottom: 60px;
    }

#overlay-filter .card-body {
    padding: 0;
}

#overlay-filter-close {
    margin-top: 20px;
}

#rsh-proj-list.fa-ul {
    margin-left: 2.5em !important;
}

#rsh-proj-list > li:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

#rsh-proj-list > li {
    border-bottom: 1px dotted #999;
}

.fa-ul {
    margin-left: 2em;
}

.td-no-padding {
    padding: 0px !important;
}

.cursor-pointer {
    cursor: pointer;
}

.fp-header {
    width: auto;
    height: 20px;
}

.hkust-logo > img,
.navbar .navbar-brand a > img {
	max-width: 100%;
    width: auto;
    height: 45px;
}

.navbar-brand-border-left {
    border-right: 2px solid #003366;
    padding-right: 15px;
}

.hkust-menu-container {
    width: 64px;
    height: 40px;
    border-left: 1px solid #FFF;
    border-right: 1px solid #FFF;
}

.hkust-menu-btn-container {
    height: 40px;
}

#hkust-menu {
    width: 100%;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
    z-index: 4;
    background-color: #FFF;
    padding: 32px 16px;
}

#hkust-footer {
    padding: 8px;
}

.hkust-menu-items {
    padding: 12px 0;
    text-align: center;
}

    .hkust-menu-items a {
        color: #161616;
        line-height: 20px;
        text-align: center;
        text-transform: uppercase;
    }

        .hkust-menu-items a:hover,
        #hkust-footer a:hover {
            color: #161616;
            text-decoration: none;
        }

.search:hover {
    text-decoration: none;
}

#hkust-menu-header {
    color: #00153f;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.hkust-menu-btn {
    font-size: 16px;
    position: relative;
}
/*
#site-header {
    font-size: 20px;
    white-space: pre-wrap;
    text-transform: uppercase;
}
*/

#fp-nav {
    background: #FFF !important;
}

#fp-nav-bar {
    background: #003366;
}

    #fp-nav-bar .nav-item:not(:last-of-type) {
        margin: 0 8px;
    }

    #fp-nav-bar .nav-item:last-of-type {
        margin-left: 8px;
    }

#hkust-footer {
    width: 100%;
    background-color: #003366 !important;
    z-index: 9999;
}

    #hkust-footer .list-inline {
        margin-bottom: 0px;
        font-size: 12.8px;
    }

.footer-icon {
    width: 30px;
    height: auto;
}

.text-hkust {
    color: #003366 !important;
}

.copy-right {
    font-size: 9.6px;
}

.body-content {
    padding-top: 120px;
    margin-bottom: 80px;
}

.body-content-stcky {
    padding-top: 10px !important;
}

#filter-toggle {
    z-index: 3;
    right: 15px;
    position: fixed;
}

.position-sticky[data-filter-panel] {
    margin-top: 20px;
    background-clip: border-box;
    z-index: 2;
}

.spacer {
    height: 100px;
}

.list-group-item {
    padding: 0.75em 1em;
}

    .list-group-item ul {
        padding-left: 10px;
    }

        .list-group-item ul > li {
            border: none !important;
            border-radius: 0px 3px 3px 3px !important;
            border-left: 1px solid rgba(0,0,0,0.25) !important;
        }

[data-filter-panel] .list-group-item.active {
    background: #1a4c9e;
    border-color: #1a4c9e;
}

span[data-tree-parent],
.list-group-item ul > li:not(.disabled) {
    cursor: pointer;
}

.list-group-item ul > li:not(:first-child),
.list-group-item ul > li:last-child {
    border-top: 1px solid rgba(0,0,0,0.25) !important;
    border-bottom: 1px solid rgba(0,0,0,0.25) !important;
}

.filter-messages > div {
    margin-top: 60px;
}

.results-div:not(:last-of-type) {
    margin-bottom: 30px;
}

.results-div + .last {
    margin-bottom: 0px;
}

.not-match-ri,
.not-match-name {
    display: none !important;
}

.odd {
    background: #e5e5e5;
}

.even, #profile-div {
    background: #F1E8D6;
}

ul.emeritusFacultyList {
    list-style-type: none;
}

    ul.emeritusFacultyList > li {
        margin-bottom: .5em;
    }


.emeritusTitle {
    color: #967A25;
}

.name {
    font-size: 1.3em;
}

.name-chi {
    color: #967A25;
}

.name-eng {
    color: #8896A5;
    word-break: break-word;
}

.edu {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.post {
    color: #586C81;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.unit {
    font-weight: normal;
}

.contact {
    word-break: break-all;
}

#profile-div {
    margin-bottom: 30px;
}

#profile-details {
    background: #f7f7f7;
    margin-bottom: 30px;
}

.profile-image {
    padding-left: 0px !important;
}

.profile-img-dummy {
    padding: 10px 0px;
}

.warp-block {
    border-left: 5px solid #1f58b6;
    border-radius: 5px;
}

.pubBlock {
    padding: 10px;
    margin: 10px 0px;
    border: 1px solid #336699;
    border-left: 5px solid #CCC;
    border-radius: 5px;
}

.blockquote {
    font-size: 1rem;
    border: 1px dotted #CCC;
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
}

#searchResult-pills-tab .nav-link.active,
#profile-details #nav-tab > .nav-link.active {
    color: #FFF;
    background-color: #336699;
    font-weight: 500;
}

#searchResult-pills-tab .nav-item > .badge,
#profile-details .nav-item > .badge {
    margin-left: 3px;
}

.nav-hkust > .nav-link.active, .badge-hkust {
    background: #1a4c9e;
    color: #FFF;
}

.tchg-list {
    margin: 10px;
    word-break: break-all;
}

.no-padding-left {
    padding-left: 0px !important;
}

.no-padding-right {
    padding-right: 0px !important;
}

.back-to-top {
    cursor: pointer;
    position: fixed;
    bottom: 50px;
    right: 20px;
    display: none;
    z-index: 10000;
}

mark, .mark {
    padding: 0;
    background-color: #e2b70d;
}

#searchResultContent {
    padding-top: 20px;
}

.gsc-adBlock {
    display: none !important;
}

@media(max-width: 420px) {
    #searchResult-pills-tab .nav-item,
    #profile-details .nav-item {
        width: 100%;
    }

    .profile-image {
        max-width: 200px;
    }
}

@media(max-width: 1024px) {
    #hkust-menu {
        padding: 17px 0;
    }

    #hkust-menu-header {
        font-size: 11px;
    }

    .hkust-menu-items {
        padding: 3px 0;
    }

        .hkust-menu-items a {
            font-size: 11px;
            line-height: 14px;
        }
}

@media (max-width: 576px) {
    #profile-details #nav-tab > .nav-link {
        min-width: 50%;
    }

    .body-content-stcky {
        padding-top: 20px !important;
    }
}

@media (max-width: 767px) {
    .fp-header {
        width: auto;
        height: 45px;
    }
}

@media(min-width: 768px) {
    #profile-div > .row > *[class*="col-"] {
        margin: 5px;
    }

    .contact {
        border-left: 1px dotted #333;
        padding-top: 15px;
    }
}

@media print {
    .print-div {
        width: 100% !important;
        max-width: 100% !important;
        flex: auto !important;
    }
}
