@charset "utf-8";

@font-face {
    font-family: "Homepage WenKai";
    src: url("../fonts/profile-wenkai.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+5149, U+5BB8, U+674E, U+FF08-FF09;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
}

.card {
    border-radius: 0.8rem!important;
}

.card-img-overlay {
    border-radius: 0.8rem!important;
}

.rounded-xl {
    border-radius: 0.8rem!important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}


.text-profile-position {
    font-weight: 400;
}

.profile-name-cn {
    font-family: "Homepage WenKai", "Kaiti SC", "KaiTi", serif;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.education-awards-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.education-awards-layout.has-awards {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
    column-gap: 2.5rem;
}

.education-section-heading {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.education-entry + .education-entry {
    margin-top: 1.15rem;
}

.education-school-row {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.education-logo-frame {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    overflow: hidden;
}

.education-logo {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.education-logo-cropped {
    object-fit: cover;
    object-position: center;
    transform: scale(1.32);
}

.education-school-name {
    min-width: 0;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.45;
}

.education-details {
    margin-top: .25rem;
    font-size: .92rem;
    line-height: 1.65;
}

.education-details.has-logo {
    padding-left: calc(28px + .65rem);
}

.education-degree-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 1rem;
    row-gap: .1rem;
}

.education-date,
.award-date {
    color: #4a5260;
    font-size: .88rem;
    font-style: italic;
    white-space: nowrap;
}

.education-date {
    margin-left: auto;
}

.award-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .75rem;
    row-gap: .15rem;
    font-size: .92rem;
    line-height: 1.65;
}

.award-entry + .award-entry {
    margin-top: .8rem;
}

.award-name {
    flex: 1 1 12rem;
}

.award-date {
    margin-left: auto;
}

@media (max-width: 991.98px) {
    .education-awards-layout.has-awards {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .education-card .card-body { padding: 1.5rem !important; }
    .education-date { margin-left: 0; }
    .education-degree-row { column-gap: .75rem; }
}

.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 2000;
    padding: .65rem 1rem;
    background: white;
    border-radius: .5rem;
}

.skip-link:focus {
    top: 1rem;
}

@media (max-width: 575.98px) {
    .profile-card .card-body { padding: 1.5rem !important; }
    .profile-card h1 { font-size: 1.7rem; }
    .profile-card h1 small { display: block; font-size: .6em; margin-top: .3rem; }
    .profile-card hr + .row a { display: inline-block; margin-bottom: .65rem; }
    .news-card .my-1.d-flex { flex-wrap: wrap; }
    .news-card .my-1.d-flex > .no-break { width: 100%; padding-left: 0 !important; margin-top: .25rem !important; }
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: Source Code Pro, monospace;
}

.carousel button {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    box-shadow: none;
}

.carousel button:focus {
    outline: none;
}

.carousel-control-prev,
.carousel-control-next {
    padding: 0;
    background: transparent;
    border: 0;
}

.carousel-indicators button {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    padding: 0;
    margin: 0 3px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.carousel-indicators button.active {
    opacity: 1;
}

.carousel-indicators button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.25);
}

.carousel-control-prev:focus-visible .carousel-control-prev-icon,
.carousel-control-next:focus-visible .carousel-control-next-icon {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 2px;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .carousel-indicators button {
        transition: none;
    }
}
