/* Displayed Content */
.displayed_content {
    background: inherit;
}

.faculty_info_box a {
    display: block;
    width: 100%;
    height: 100%;
}

.staff_info_box ol {
    list-style: decimal;
}

/* Mobile Style */
@media only screen and (max-width: 768px) {

    .page_container {
        background-color: transparent;
    }
    .page_content_top {
        padding: 0;
    }

    .position_title {
        display: none;
    }

    /* Faculty Filter */
    .mobile_faculty_filter_btn {
        padding: 0.5rem;
        box-sizing: border-box;
        border: 1px solid white;
        background-color: rgba(255, 255, 255, 0.4);
        font-size: 1.2rem;
        text-align: center;
    }

    .faculty_filter {
        display: none;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
    }

    .faculty_filter .title {
        margin-bottom: 1.5rem;
        text-align: center;
        font-size: 1.2rem;
    }

    .faculty_filter .group,
    .faculty_filter .field {
        width: 10rem;
        margin: 0 auto;
    }

    .faculty_filter .item {
        margin-top: 1rem;
    }

    .faculty_filter .reset_btn {
        display: none;
    }

    .faculty_filter .confirm_btn {
        width: 7rem;
        padding: 0.5rem;
        margin: 4rem auto 0 auto;
        border: 1px solid white;
        border-radius: 1.2rem;
        background-color: rgba(255, 255, 255, 0.5);
        font-size: 1.2rem;
        text-align: center;
    }

    /* Field Description */
    .field_description {
        position: relative;
        margin-top: 0.3rem;
        padding: 0.5rem;
        box-sizing: border-box;
        border: 1px solid white;
    }

    .field_description .title {
        font-size: 1.2rem;
    }
    .field_description .title::after {
        content: ' ▽';
    }
    .field_description.expanded .title::after {
        content: ' △';
    }

    .field_description .content {
        display: none;
    }
    .field_description.expanded .content {
        display: block;
        margin-top: 0.7rem;
        line-height: 1.5;
    }

    .field_description .close_btn {
        position: absolute;
        top: 0.3rem;
        right: 0.3rem;
        width: 0.8rem;
    }

    /* Faculty Info Box */
    .faculty_info_box {
        margin-top: 0.5rem;
        width: 100%;
        height: 6rem;
        background-color: #e1e2e3;
    }
    .faculty_info_box a {
        display: flex;
        flex-direction: row;
    }

    .faculty_info_box .profile {
        width: 6rem;
        height: 6rem;
    }
    .faculty_info_box .profile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

    .faculty_info_box .banner {
        display: flex;
        margin: auto 0;
        color: #484848;
    }
    .faculty_info_box .banner-zh {
        flex-direction: row;
        align-items: baseline;
    }
    .faculty_info_box .banner-en {
        flex-direction: column;
        line-height: 1.2;
    }
    .faculty_info_box .banner .name {
        margin-left: 1rem;
    }
    .faculty_info_box .banner-zh .name {
        font-size: 1.5rem;
    }
    .faculty_info_box .banner-en .name {
        font-size: 1.25rem;
    }
    .faculty_info_box .banner .position {
        margin-left: 1rem;
        font-size: 1.2rem;
    }

    /* Staff Info Box */
    .staff_info_box {
        width: 100%;
        margin-top: 0.5rem;
        background-color: #e1e2e3;
        color: #484848;
    }

    .staff_info_box .main {
        display: flex;
        flex-direction: column;
    }
    .staff_info_box .main .left {
        display: flex;
        flex-direction: row;
    }
    .staff_info_box .profile {
        width: 7rem;
        height: 7rem;
    }
    .staff_info_box .profile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .staff_info_box .name_and_position {
        margin-top: 0.5rem;
        margin-left: 1rem;
        line-height: 1.5;
    }
    .staff_info_box .name {
        font-size: 1.6rem;
    }
    .staff_info_box .position {
        font-size: 1.1rem;
    }

    .staff_info_box .main .profession {
        padding: 1rem 5%;
        box-sizing: border-box;
        line-height: 1.5;
    }

    .staff_info_box li {
        margin-left: 1rem;
    }

    .staff_info_box .info {
        position: relative;
        width: 90%;
        border-top: 2px solid #484848;
        margin: 0 auto;
        padding-bottom: 1rem;
    }
    .staff_info_box .info .item {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 1rem;
    }
    .staff_info_box .info .item .title {
        min-width: 4rem;
    }
    .staff_info_box .info .item .value {
        padding-left: 1rem;
        border-left: 2px solid #484848;
        overflow-wrap: anywhere;
    }

}

/* Desktop Style */
@media screen and (min-width: 769px) {

    .position_title {
        margin: 1rem auto;
        font-size: 1.2rem;
        color: white;
    }

    /* Faculty Filter */
    .faculty_filter {
        position: relative;
        width: 100%;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0.78rem 0.91rem;
        border: 1px solid white;
        box-sizing: border-box;
        box-shadow: 1.152rem 1.776rem 2.124rem 0 rgba(0, 0, 0, 0.16);
        background: inherit;
        overflow: hidden;
    }
    .faculty_filter::before {
        content: "";
        position: absolute;
        top: -25%;
        left: -25%;
        display: block;
        width: 150%;
        height: 150%;
        box-shadow: inset 0 0 12rem 2.4rem rgba(242, 242, 242, 0.6);
        filter: blur(0.3125rem);
        background: inherit;
    }

    .mobile_faculty_filter_btn,
    .faculty_filter .title,
    .faculty_filter .confirm_btn {
        display: none;
    }

    .faculty_filter .group,
    .faculty_filter .field {
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 0.625rem;
    }
    .faculty_filter .field {
        margin-top: 0.625rem;
    }

    .faculty_filter .item {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .faculty_filter .reset_btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: absolute;
        right: 0.84rem;
        bottom: 0.84rem;
        height: 2.4rem;
        padding-right: 0.3rem;
        border-radius: 0.36rem;
        background-color: rgba(176, 184, 195, 0.8);
        transition: 0.2s;
        cursor: pointer;
    }
    .faculty_filter .reset_btn:hover {
        background-color: rgba(134, 143, 155, 0.8);
    }
    .faculty_filter .reset_btn:hover img {
        opacity: 0.8;
    }

    .faculty_filter .reset_btn img {
        width: 2.4rem;
    }

    /* Field Description */
    .field_description {
        position: relative;
        width: 100%;
        margin-top: 1.5rem;
        margin-bottom: 1.25rem;
        padding: 0.78rem 0.91rem;
        border: 1px solid white;
        box-sizing: border-box;
        box-shadow: 1.152rem 1.776rem 2.124rem 0 rgba(0, 0, 0, 0.16);
        background: inherit;
        overflow: hidden;
    }
    .field_description::before {
        content: "";
        position: absolute;
        top: -25%;
        left: -25%;
        display: block;
        width: 150%;
        height: 150%;
        box-shadow: inset 0 0 12rem 2.4rem rgba(242, 242, 242, 0.6);
        filter: blur(0.47rem);
        background: inherit;
    }

    .field_description .title {
        position: relative;
        font-size: 1.1rem;
        font-weight: bold;
    }

    .field_description .content {
        position: relative;
        width: 90%;
        margin: 0.625rem auto 0 auto;
        line-height: 1.5;
    }

    .field_description a {
        position: absolute;
        right: 0.3125rem;
        bottom: 0.3125rem;
        text-decoration: underline;
    }

    .field_description .close_btn {
        position: absolute;
        top: 0;
        right: 0;
        width: 0.84rem;
        padding: 0.6rem;
        cursor: pointer;
    }

    /* Faculty Info Box */
    .faculty_info_box_container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 1.8rem;
    }

    .faculty_info_box {
        transition: 0.2s;
    }
    .faculty_info_box:hover {
        box-shadow: 0 0.1rem 0.6rem 0 white;
    }
    .faculty_info_box:hover .banner {
        background-color: #484848;
        box-shadow: 0 0.1rem 1.25rem 0 rgba(0, 0, 0, 0.16);
    }
    .faculty_info_box:hover .banner .name {
        color: #e1e2e3;
        text-shadow: 0 0 1.08rem white;
    }

    .faculty_info_box .profile {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        background-color: #e1e2e3;
        overflow: hidden;
        transition: 0.2s;
    }
    .faculty_info_box .profile img {
        width: 100%;
    }

    .faculty_info_box .banner {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 3rem;
        background-color: #e1e2e3;
        transition: 0.2s;
    }
    .faculty_info_box .banner .name {
        font-size: 1.1rem;
        color: #484848;
    }
    .faculty_info_box .banner .position {
        display: none;
    }

    /* Staff Info Box */
    .staff_info_box_container {
        display: grid;
        grid-template-columns: 49% 49%;
        grid-gap: 2%;
    }
    .staff_info_box {
        width: 100%;
        box-shadow: 0 0.1rem 1.25rem 0 rgba(0, 0, 0, 0.16);
        background-color: #e1e2e3;
        color: #707070;
    }

    .staff_info_box .main {
        display: flex;
        flex-direction: row;
        padding-bottom: 1.25rem;
    }
    .staff_info_box .main .left {
        width: 50%;
    }
    .staff_info_box .profile {
        min-width: 100%;
        height: 0;
        padding-bottom: 100%;
        overflow: hidden;
    }
    .staff_info_box .profile img {
        width: 100%;
        box-shadow: 0.1rem 0 0.2rem 0 rgba(0, 0, 0, 0.16);
    }
    .staff_info_box .name_and_position {
        margin-top: 0.94rem;
        margin-left: 10%;
        line-height: 1.5;
    }
    .staff_info_box .name {
        font-size: 1.5rem;
    }
    .staff_info_box .position {
        font-size: 1rem;
    }

    .staff_info_box .main .profession {
        width: 50%;
        padding: 1.25rem;
        box-sizing: border-box;
        font-size: 1rem;
        line-height: 1.5;
    }

    .staff_info_box li {
        margin-left: 1rem;
    }

    .staff_info_box .info {
        position: relative;
        width: 90%;
        padding: 0.625rem;
        border-top: 1px solid #afafaf;
        margin: 0 auto;
        font-size: 1rem;
    }
    .staff_info_box .info .item {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 0.3125rem;
    }
    .staff_info_box .info .item .title {
        min-width: 3.75rem;
    }
    .staff_info_box .info .item .value {
        padding-left: 0.94rem;
        border-left: 1px solid #707070;
        overflow-wrap: anywhere;
    }

}
