.page_News{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction:column;
    align-items: center;
    background-color: #e4dfd2;
}

/*the News_block */
.post_block{
    width: 82vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: warp;
}

.news-article
{
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #e4dfd2;
}

.select_bar_container{
    width: 82vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin-top: 11.458vw;
    padding-bottom: 1vw;
    border-bottom: solid 0.052vw #2e4565;
}

.cat-list{
    width: 33.28vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cat-list > li{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cat-list_item_dot{
    width: 1vw;
    height: 1vw;
    border: solid 2px #2e4565;
    border-radius: 50%;
}

.cat_active > .cat-list_item_dot{
    background-color: #2e4565;
}

.cat-list_item:hover .cat-list_item_dot{
    background-color: #2e4565;
}

.cat-list_item{
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
}

.cat-list_item_name{
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.041667vw;
    font-weight: bold;
    line-height: 0.06;
    letter-spacing: 2.7px;
    color: #2e4565;
    margin-left: 1.3vw;
}

/*************************/
.pagination{
    position: relative;
    width: 82vw;
    margin-left: 9vw;
    margin-right: 9vw;
    margin-top: 12.76vw;
    margin-bottom: 2vw;
}

.page-numbers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.page-numbers > li{
    margin-left: 2vw;
    color: #2e4565;
    font-size: 1.041667vw;
}

.page-numbers > li > a{
    text-decoration: none;
    color: #2e4565;
    border-radius: 50%;
    padding: 0.6rem 0.8rem 0.6rem;
    transition: 0.3s;
}

.page-numbers .current{
    color: #e4dfd2;
    background-color: #2e4565;
    border-radius: 50%;
    padding: 0.6rem 0.8rem 0.6rem;
}

.pagination .next{
    position: absolute;
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0;
    background-image: url("../images/page_news/next_page.svg");
    background-repeat:no-repeat;
    background-size: contain;
    border-radius:0;
    margin-left: 10vw;
    margin-top: -1.5rem;
}

.pagination .prev{
    position: absolute;
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0;
    background-image: url("../images/page_news/prev_page.svg");
    background-repeat:no-repeat;
    background-size: contain;
    border-radius:0;
    margin-left: -10vw;
    margin-top: -1.5rem;
}


.page-numbers > li:hover{
    background-color: #2e4565;
    color: #e4dfd2;
    border-radius: 50%;
}

.page-numbers > li > a:hover{
    color: #e4dfd2;
    text-decoration: none;
    padding: 0.6rem 0.8rem 0.6rem;
}



@media (max-width: 1024px){
    .select_bar_container{
        padding-bottom: 2vw;
    }

    .cat-list{
        width: 48vw;
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin-left: -3.5vw;
    }

    .pagination{
        margin-bottom: 5vw;
    }

    .pagination .next{
        width: 2.5vw;
        height: 2.5vw;
        margin-left: 28vw;
        margin-top: -2.5vw;
    }

    .pagination .prev{
        width: 2.5vw;
        height: 2.5vw;
        margin-left: -32vw;
        margin-top: -2.5vw;
    }
    
    
}

@media (max-width: 960px) {
    /*since most device from 768px to 970px will get wrong layout,
    increase the breakpoint in the page*/
    .select_bar_container{
        padding-bottom: 3vw;
    }

    .cat-list{
        width: 82vw;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-left: 0;
    }

    .news-article{
        grid-template-columns: none;
        gap: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination{
        margin-bottom: 5vw;
    }

    .cat-list_item_name{
        font-size: 16px;
    }

    .page-numbers {
        font-size: 14px;
        flex-wrap: wrap;
    }

    .pagination .prev, .pagination .next{
        position: relative;
        background-image: none;
        font-size: 14px;
        margin: 0;
    }
    
}

@media (max-width: 480px){
   
    .select_bar_container{
        padding-bottom: 20px;
    }

    .cat-list_item_dot {
        width: 15px;
        height: 15px;
    }

    .cat-list_item_name {
        font-size: 3.733vw;
    }

    .cat-list{
        width: 82vw;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-left: 0;
    }

    .cat-list_item {
        padding-bottom: 20px;
    }
    
    .news-article{
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-template-columns: none;
        gap: 0;
        margin: 0;
    }

    .pagination{
        margin-bottom: 5vw;
    }

    .post_block {
        width: 100vw;
    }
}