.page_events{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction:column;
    align-items: center;
    background-color: #e4dfd2;
}

#selection_studies{
    margin-left: 0;
}

/*the events block */
.post_block{
    position: relative;
    width: 100vw;
    margin-top: 7%;
    height: auto;
}

.event-cards
{
    margin: 0 auto;
    justify-content: center;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.select_bar_container{
    width: 82vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin-top: 11.458vw;
    border-bottom: solid 0.052vw #2e4565;
    padding-bottom: 1vw;
}

.cat-list{
    /*width: 16.09375vw;*/
    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;
}

.event-space {
    width: 35.57vw;
    min-width: 400px;
    margin: 0 2.5vw 4vw 2.5vw;
}


@media (max-width: 1130px) {
    #event-slider-container-outer {
        transform: translateX(calc(-1000px + 32.6vw));
    }
    .event-slider-item {
        min-width: 400px;
    }
    #event-icon-prev {
        left: calc(45.65vw - 215px);
    }
    #event-icon-next {
        left: calc(54.35vw + 215px);
    }
}

/*************************/
.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;
    font-size: 1.041666vw;
}

.page-numbers > li{
    margin-left: 2vw;
    color: #2e4565;
    font-size: 1.0416vw;
}

.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: 960px) {
    .cat-list{
        width: 55vw;
    }

    .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) {
    .cat-list{
        width: 55vw;
        flex-direction: column;
        align-items: flex-start;
    }

    .event-cards {
        width: 89.333vw;
    }

    .cat-list_item_dot {
        width: 15px;
        height: 15px;
    }

    .cat-list_item {
        padding-bottom: 20px;
    }

    .select_bar_container {
        margin-top: 80px;
    }

    .post_block {
        margin-top: 40px;
    }

}