/* GENERAL */

html {
    font-size: 62.5%;
}
html.small {
    font-size: 52%;
}
html.large {
    font-size: 75%;
}
body {
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    overflow: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-font-feature-settings: 'liga', 'kern';
}
img {
    max-width: 100%;
    height: auto;
    border: 0;
}
a {
    text-decoration: none;
}
p {
    margin-bottom: 1em;
    font-size: 1.6rem;
    line-height: 1.4;
    text-align: justify;
}
.content p {
    font-size: 1.8rem;
}
p.small {
    font-size: 1.3rem;
}
p.center {
    text-align: center;
}
p:last-child {
    margin-bottom: 0;
}
strong {
    font-weight: 700;
}
em {
    font-style: italic;
}
sub {
    vertical-align: sub;
    font-size: smaller;
}
sup {
    vertical-align: super;
    font-size: smaller;
}
input[type="text"],
input[type="email"],
input[type="submit"],
textarea {
    -webkit-appearance: none;
}

.content p a,
.content li a,
.content th a,
.content td a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;
}
.content ul {
    list-style: outside disc;
    margin-left: 2em;
    margin-bottom: 2em;
}
.content ol {
    list-style: outside decimal;
    margin-left: 2em;
    margin-bottom: 2em;
}
.content li {
    margin-bottom: 0.5em;
    font-size: 1.6rem;
}
.content table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 20px;
}
.content td,
.content th {
    padding: 5px 10px;
    border: 1px solid #CCC;
    font-size: 1.8rem;
    vertical-align: middle;
}
/*
.content li p,
.content p li,
.content p p,
.content li li,
.content th p,
.content td p,
.content th li,
.content td li {
    font-size: 1em;
}
*/
.content th ul,
.content th ol,
.conten td ul,
.content td ol {
    margin-left: 1em;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 0 auto;
    overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed,
.video-container video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.video-container p {
    color: transparent;
    font: 0/0 a;
}

.content-sitemap .sitemap-menu {
    margin-bottom: 4em;
}
.content-sitemap ul li {
    margin-bottom: 2em;
}
.content-sitemap ul ul li {
    margin-bottom: 1em;
}
.content-sitemap a {
    font-size: 1.4rem;
    color: #822E6B;
}
.content-sitemap ul ul a {
    font-size: 1.2rem;
}

.content-search-form {
    margin-bottom: 30px;
    border: 2px solid #00AAE3;
    padding: 5px 5px 5px 12px;
    border-radius: 30px;
    font-size: 2rem;
    max-width: 300px;
}
.content-search-form form {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.content-search-form input[type="search"] {
    flex-grow: 1;
}
.content-search-form input[type="submit"] {
    width: 34px;
    height: 34px;
    font: 0/0 a;
    background-color: transparent;
    background-image: url(https://www.sls.cuhk.edu.hk/wp-content/themes/customtheme/images/arrow-blue-bg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}
.content h2.search-page-heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: #705BE1;
    margin-bottom: 1em;
}
.search-page-count {
    margin-bottom: 30px;
}
a.search-result {
    display: block;
    margin-bottom: 20px;
}
.content h3.search-result-title {
    margin-bottom: 0;
    font-size: 2rem;
    color: #705BE1;
}
p.search-result-link {
    font-size: 1.6rem;
    font-style: italic;
    color: #888;
}

span.description {
    color: transparent;
    font: 0/0 a;
}
.for-screen-reader {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.pagination-number,
.page-numbers {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border: 1px solid transparent;
    line-height: 50px;
    text-align: center;
    border-radius: 5px;
}
.pagination-first,
.pagination-last,
.page-numbers.prev,
.page-numbers.next {
    position: relative;
}
.page-numbers.prev,
.page-numbers.next {
    color: transparent;
    font: 0/0 a;
}
.page-numbers.prev:before,
.page-numbers.next:before,
.pagination-first:before,
.pagination-last:before,
.pagination-first:after,
.pagination-last:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    width: 9px;
    height: 16px;
    margin-top: -8px;
    background: url('../images/submenu-arrow-sprite.png') no-repeat 0 0;
    background-size: 100% auto;
}
.page-numbers.prev:before,
.page-numbers.next:before {
    left: 50%;
    margin: -8px 0 0 -4.5px;
}
.pagination-first:before {
    left: 15px;
}
.pagination-first:after {
    left: 22px;
}
.pagination-last:before {
    left: 18px;
}
.pagination-last:after {
    left: 25px;
}
.pagination-first:after,
.pagination-last:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    width: 9px;
    height: 16px;
    margin-top: -8px;
    background: url('../images/submenu-arrow-sprite.png') no-repeat 0 0;
    background-size: 100% auto;
}
.page-numbers.prev:before,
.pagination-first:before,
.pagination-first:after {
    transform: rotate(180deg);
}
a.pagination-number:hover,
a.page-numbers:hover {
    color: white;
    background-color: #705BE1;
}
.page-numbers.current {
    border: 1px solid #705BE1;
}
/*
.page-numbers.dots:hover,
.page-numbers.current:hover {
    color: inherit;
    background-color: transparent;
}
*/
a.pagination-first:hover:before,
a.pagination-last:hover:before,
a.pagination-first:hover:after,
a.pagination-last:hover:after,
a.page-numbers.prev:hover:before,
a.page-numbers.next:hover:before {
    background-position: 0 -25px;
}