.calendar-section {
    display: flex;
    justify-content: center;
    column-gap: 30px;
    width: 100%;
    margin-top: 30px;
}
.opening-hours-calendar {
    width: 40%;
    padding: 50px 70px;
}
.opening-hours-calendar a {
    color: var(--clr-font);
}
.opening-hours-calendar .fc-toolbar .fc-toolbar-title{
    margin-left: 20px;
    margin-right: 20px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 125%;
    color: var(--clr-primary);
}
.opening-hours-calendar .fc-toolbar .fc-button {
    padding: 0;
    border-radius: 0;
    border: 0;
    background-color: transparent;
    margin: 0;
}
.opening-hours-calendar .fc-toolbar .fc-button.fc-prev-button > span,
.opening-hours-calendar .fc-toolbar .fc-button.fc-next-button > span{
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.opening-hours-calendar .fc-toolbar .fc-button.fc-prev-button > span {
    background-image: url(/20250226170844oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-prev.svg);
}
.opening-hours-calendar .fc-toolbar .fc-button.fc-next-button > span {
    background-image: url(/20250226170844oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-next.svg);
}
.opening-hours-calendar .fc-toolbar .fc-button > span::before { 
    content: '';
}
.opening-hours-calendar table {
    margin: 0;
}
.opening-hours-calendar table * {
    border-color: transparent !important;
}
.opening-hours-calendar .fc-col-header-cell {
    font-weight: 600;
    font-size: 100%;
    color: var(--clr-font);
}
.opening-hours-calendar .fc-daygrid-day-top {
    flex-direction: row;
    justify-content: center;
}
.opening-hours-calendar .fc-day-today {
    background-color: transparent !important;
}
.opening-hours-calendar .fc-day-today .fc-daygrid-day-number {
    position: relative;
}
.opening-hours-calendar .fc-day-today .fc-daygrid-day-number::after {
    position: absolute;
    content: '';
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    border-radius: 2px;
    background-color: var(--clr-primary);
}
.opening-hours-calendar .fc-daygrid > table,
.opening-hours-calendar .fc-daygrid > table > thead > tr > th{
    border: 0;
}
.opening-hours-calendar .fc-daygrid > table > tbody > tr > td {
    border-left: #dbdbdb 1px solid;
}
.opening-hours-calendar .fc-col-header-cell {
    border: 0;
}
.opening-hours-calendar .fc-day-grid-container.fc-scroller {
    height: auto!important;
    overflow-y: visible;
}
.opening-hours-calendar .fc-daygrid-day-events {
    min-height: 0px !important;
    margin: 0;
}
.opening-hours-calendar.left .fc-next-button ,
.opening-hours-calendar.right .fc-prev-button {
    opacity: 0;
    pointer-events: none;
}
.opening-hours-calendar .fc-daygrid-day .fc-daygrid-day-number {
    cursor: pointer;
}
.opening-hours-calendar .fc-daygrid-day.active .fc-daygrid-day-number {
    font-weight: 700;
}
.opening-hours-calendar .fc-daygrid-day.active .fc-daygrid-day-top {
    position: relative;
}
.opening-hours-calendar .fc-daygrid-day.active .fc-daygrid-day-top::before {
    position: absolute;
    content: '';
    background-color: var(--clr-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/*opening hour section*/
.opening-hours-container {
    margin-top: 30px;
}
.opening-hours-container .tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.opening-hours-container .tab-header select {
    padding: 10px 0 10px 10px;
    border-color: #585656;
    border-radius: 10px;
}
.opening-hours-container .tab-header .tab-title {
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 175%;
}
.opening-hours-container .tab-header .tab-btn {
    padding: 10px 30px !important;
    border-radius: 11px;
    background-color: #D7C1D6;
    color: var(--clr-primary);
}
.opening-hours-container .tab-header .tab-btn.active {
    background-color: var(--clr-primary);
    color: white;
}
.opening-hours-container .tab-content-container {
    margin-top: 30px;
}
.week-table {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    overflow: hidden;
}
.week-table .table-header,
.week-table .table-row {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    padding-left: 40px;
    padding-right: 30px;
    column-gap: 10px;
}
.week-table .table-header > div:nth-of-type(1),
.week-table .table-row > div:nth-of-type(1) {
    grid-column: span 2;
}
.week-table .table-header {
    background-color: var(--clr-primary);
    color: white;
    padding-top: 30px;
    padding-bottom: 30px;
}
.week-table .table-header .week-date {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.week-table .table-header .week-date .week-name {
    font-weight: 600;
    font-size: 125%;
}
.week-table .table-header .week-date .date {
    font-size: 87.5%;
}
.week-table .table-row {
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 87.5%;
}
.week-table .table-row .info .name {
    font-size: 125%;
    font-weight: 500;
}
.info .location,
.info .phone {
    position: relative;
    padding-left: 23px;
}
.week-table .table-row .info .location,
.week-table .table-row .info .phone {
    margin-top: 10px;
}
.info .location::before,
.info .phone::before {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
}
.info .location::before {
    background-image: url(/20250226170844oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-location.svg);
}
.info .phone::before {
    background-image: url(/20250226170844oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-phone.svg);
}
.week-table .table-row .info .name.highlight {
    font-size: 150%;
    font-weight: 600;
    color: var(--clr-primary);
}
.week-table .table-row .time {
    display: flex;
    justify-content: center;
}
.week-table .table-row:nth-of-type(2n+2) {
    background-color: #DBDADA;
}
.week-table .table-row:nth-of-type(2n+1) {
    background-color: rgba(247, 247, 247, 0.95);
}
.opening-hours-day-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
    row-gap: 20px;
}
.opening-hours-day-grid .grid-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.opening-hours-day-grid .image-container {
    width: 100%;
}
.opening-hours-day-grid .image-container img {
    width: 100%;
    max-width: unset;
}
.opening-hours-day-grid .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}
.opening-hours-day-grid .time {
    margin-top: auto;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 125%;
}
.opening-hours-day-grid .info .name {
    font-size: 150%;
    font-weight: 600;
    color: var(--clr-primary);
    text-align: center;
}
.opening-hours-day-grid .info .location {
    margin-top: 20px;
}
.opening-hours-day-grid .info .phone {
    margin-top: 10px;
}
@media (max-width: 1200px) {
    .opening-hours-calendar {
        width: 50%;
    }
}
@media (max-width: 1000px) {
    .week-table.desktop {
        display: none;
    }
    .opening-hours-calendar {
        width: 100%;
        padding: 50px 70px;
      }
    .opening-hours-calendar.right {
        display: none;
    }
    .opening-hours-calendar.left .fc-next-button {
        opacity: 1;
        pointer-events: all;
    }
    .opening-hours-container .tab-header {
        display: flex;
        flex-direction: column;
        row-gap: 30px;
    }
    .opening-hours-container .tab-header select {
        order: 2;
        width: 100%;
    }
    .opening-hours-container .tab-header .tab-title {
        order: 3;
    }
    .opening-hours-container .tab-header .tab-nav {
        order: 1;
        width: 100%;
    }
    .opening-hours-container .tab-header .tab-nav .tab-btn {
        width: 100%;
        justify-content: center;
    }
    .opening-hours-day-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 820px) {
    .opening-hours-day-grid {
        display: flex;
        flex-direction: column;
    }
}
@media (max-width: 550px) {
    .opening-hours-calendar {
        padding: 40px 30px;
    }
    .opening-hours-calendar .fc-col-header-cell {
        font-size: 80%;
    }
}
/*week table mobile*/
.week-table-expand {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    display: none;
    overflow: hidden;
}
.week-table-expand .expand-header .name {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
}
.week-table-expand .expand-header.highlight {
    background-color: var(--clr-primary) !important;
}
.week-table-expand .expand-header:nth-of-type(2n+1),
.week-table-expand .expand-header:nth-of-type(2n+1) .content {
    background-color: rgb(247, 247, 247);
}
.week-table-expand .expand-header:nth-of-type(2n+2),
.week-table-expand .expand-header:nth-of-type(2n+2) .content {
    background-color: #DBDADA;
}
.week-table-expand .expand-header.highlight .name {
    color: white;
    font-weight: 600;
}
.week-table-expand .expand-header .name {
    font-weight: 500;
    font-size: 112.5%;
}
.week-table-expand .expand-header {
    position: relative;
    overflow: hidden;
}
.week-table-expand .expand-header .expand-toggle {
    position: absolute;
    content: '';
    width: 24px;
    height: 24px;
    right: 5%;
    top: 18px;
    background-image: url(/20250226170844oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/button-up.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform-origin: center;
    transform: rotate(180deg);
    cursor: pointer;
}
.week-table-expand .expand-header.active .expand-toggle {
    transform: rotate(0deg);
}
.week-table-expand .expand-header.highlight .expand-toggle {
    background-image: url(/20250226170844oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-expand-white.svg);
}
.week-table-expand .expand-header > .content {
    max-height: 0px;
    padding-left: 20px;
    font-size: 87.5%;
}
.week-table-expand .expand-header.active > .content {
    max-height: 2000px;
}
.week-table-expand .content .info {
    padding-top: 20px;
    display: flex;
    column-gap: 35px;
}
.week-table-expand .time-table {
    padding-top: 15px;
    padding-bottom: 20px;
}
.week-table-expand .time-table .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 10px;
}
.week-table-expand .time-table .row .week-name {
    font-weight: 600;
    font-size: 100%;
}
@media(max-width: 1000px) {
    .week-table-expand {
        display: block;
    }  
}
@media(max-width: 500px) {
    .week-table-expand .content .info {
        column-gap: 0px;
        justify-content: space-between;
        padding-right: 20px;
    }
}
.loading {
    margin-top: 30px;
    margin-bottom: 30px;
}

.remark {
    display: none;
    font-weight: 500;
    font-style: italic;
    margin-top: 30px;
    background-color: #ececec;
    padding: 20px 25px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
}
.remark::before {
    position: absolute;
    height: 100%;
    width: 10px;
    content: '';
    background-color: rgba(109, 27, 109, 0.95);
    top: 0;
    left: 0;
}
.remark.active {
    display: block;
}