﻿
.category-content {
    display: flex;
    flex-flow: row wrap;
    justify-content: start;
    margin: 20px;
}

.category-top-news {
    padding: 20px;
    background-color: #F0F9FF;
    margin: 0;
    cursor: pointer;
    width:100%;
}
.category-top-news:hover{
    background-color:rgba(0,0,0,.2);
}

.category-top-img {
    width: 100%;
    height: auto;
}

.category-top-content {
    margin: 0 10px;
    max-width: 90%;
    float: right;
}

.category-top-title {
    padding: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: darkblue;
}

.category-top-txt {
    margin: 0;
    font-size: 14px;
    color: black;
}

.lighterblue {
    background-color: rgb(251, 251, 255);
}

@media only screen and (max-width:770px) {
    .category-top-img-box {
        margin: 30px 30px 0 0 !important;
    }

    .category-top-content {
        margin-right: 0;
    }

    .category-top-title {
        margin: 10px 30px;
    }

    .category-top-txt {
        margin: 0 30px;
    }

    .category-top-news {
        padding: 10px 0;
    }
}

@media only screen and (max-width:600px) {
    .category-top-img-box {
        margin: 10px !important;
        display: flex;
        justify-content: center;
    }

    .category-top-img {
        overflow: hidden;
    }

    .category-top-content {
        margin: 0 auto;
        float: none !important;
    }

    .category-top-title {
        margin: 10px auto;
        text-align: center;
    }

    .category-top-news {
        padding: 10px 0;
    }

    .news-post-center-item {
        padding: 10px;
    }

    .news-post-center-title {
        color: darkblue;
        font-family: vazir-bold;
        font-size: 13px;
    }

    .news-post-center-date {
        display: block !important;
    }
}


@media only screen and (max-width:370px) {
    .news-post-center-date {
        display: none !important;
    }

    .news-post-center-title {
        font-size: 11px;
    }
}




#body_lastPageBtn,#body_forwardPageBtn{
    font-family: vazir;
    font-weight: 800;
    color: black;
    border: 1px solid grey;
    background-color: darkgrey;
    padding: 5px 10px;
    border-radius: 10px;

}

.category-pagination {
    margin: 30px;
    display: flex;
    justify-content: space-evenly;
}