.main-content#news .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
    row-gap: 32px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.news-card {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    padding: 36px 20px 0px;
    width: 395px;
    min-height: 351px;
    margin-left: auto;
    margin-right: auto;
}
.news-card::before {
    position: absolute;
    content: '';
    top: 48px;
    left: 20px;
    transform: translateY(-50%);
    width: 51px;
    height: 51px;
    background-color: var(--clr-primary);
    background-image: url(/20220831082032oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-news-2.svg);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}
.news-card::after {
    position: absolute;
    content: '';
    top: 83px;
    left: 44px;
    width: 3px;
    height: 65%;
    background-color: var(--clr-primary);
    border-radius: 5px;
}
.news-card .publish-date,
.news-card .news{
    width: 80%;
}
.news-card .publish-date {
    font-weight: 500;
    font-size: 87.5%;
    color: #585656;
}
.news-card .news {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1.5rem;
}
.news-card .news-heading {
    font-weight: 600;
    font-size: 125%;
    color: var(--clr-font);
}
.news-card .excerpt {
    margin-top: 15px;
    font-size: 87.5%;
    color: #585656;
}
.news-card.pinned .news-heading {
    color: var(--clr-primary);
}
.news-card.pinned {
    background-color: #F3ECF3;
    border-radius: 23px;
}
.news-card.pinned::before {
    background-image: url(/20220831082032oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-pinned-news.png);
    background-color: #E7A922;
}
.more-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}
.more-icon {
    background-color: var(--clr-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-image: url(/20220831082032oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-more.svg);
    background-repeat: no-repeat;
    background-position: center;
}
.more-text {
    color: var(--clr-primary);
    font-weight: 500;
    margin-top: 5px;
}
.archived-news {
    margin-top: 30px;
}
@media(max-width: 1260px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 840px) {
    .news-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .news-card {
        width: min(100%, 393px);
        min-height: 293px;
    }
    .news-card .publish-date {
        font-size: 71.8%;
    }
    .news-card .news-heading {
        font-size: 100%;
    }
    .news-card .excerpt {
        font-size: 71.8%;
    }
}
/*News detail*/
.single-news {
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}
.single-news .news-title {
    font-weight: 600;
    font-size: 175%;
    color: var(--clr-primary);
    margin: 0;
}
.single-news .publish-date {
    font-weight: 500;
    font-size: 87.5%;
    color: #585656;
    margin: 0;
    margin-top: 20px;
    margin-bottom: 30px;
}
.single-news .news-content {
    font-weight: 500;
    color: var(--clr-font);
}
.single-news .share-icon-row {
    display: flex;
    column-gap:  1rem;
    margin-top: 30px;
    margin-bottom: 30px;
}
.single-news .share-icon-row div{
    width: 35px;
    height: 35px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.single-news .share-icon-row .facebook-share {
    background-image: url(/20220831082032oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-facebook-share.svg);
}
.single-news .share-icon-row .twitter-share {
    background-image: url(/20220831082032oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-twitter-share.svg);
}
.single-news .share-icon-row .print-btn {
    background-image: url(/20220831082032oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-print.svg);
    cursor: pointer;
}