﻿

.viewcat-header h1{
    font-size: 24px;
    margin-bottom: 20px;
}

.news-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.news-post-item{
    position: relative;
    border-radius: 0 20px 0 20px;
    border: 1px solid #c7ebff;
}

.news-post-image{
    margin: -1px;
}

.news-post-item img{
    width: 100%;
    height: 210px;
    border-top-right-radius: 20px;
    object-fit: cover;
}

.news-post-item .news-post-content{
    padding: 18px 15px;
}

.news-post-item h2,
.news-post-item h3{
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-post-item h3{
    font-weight: 400;
}

.news-post-item .meta{
    font-size: 14px;
    margin: 5px 0;
    color: #555;
}

.news-post-item .meta i{
    font-size: 14px;
}

.news-grid .news-post-item p{
    margin: 0;
}

.news-detail h1.title{
    font-size: 26px;
    color: #222;
}

.news-detail .publtime{
    color: #808080;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    padding: 10px 10px 6px;
    font-size: 14px;
    background: #f9f9f9;
}

.news-detail .publtime a{
    color: #808080;
}

.news-others .heading{
    background-color: #eee;
    margin-bottom: 15px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 600;
    border-left: 4px solid #0094dd;
    border-radius: 0 20px 0 20px;
}

.news-others-list{
    gap: 15px;
}

.others-item{
    width: calc(50% - 8px);
}

.others-item img{
    width: 120px;
    height: 80px;
    margin-right: 10px;
    border-radius: 0 20px 0 20px;
    object-fit: cover;
}

.others-item span{
    display: block;
    margin-top: 3px;
    font-size: 13px;
}

.block-news-groups{
    margin-bottom: 30px;
}

.block-news-groups .news-groups-item{
    position: relative;
    border-radius: 12px;
    background-color: #f8f8f8;
    border: 1px solid #f1f1f1;
    overflow: hidden;
}

.block-news-groups .news-groups-item img{
    height: 220px;
    object-fit: cover;
}

.block-news-groups .news-groups-content{
    padding: 10px;
}

.block-news-groups .news-groups-content .news-cat{
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 3px;
}

@media (max-width: 991.98px) {
    .others-item {
        width: 100%;
    }

    .news-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid .news-post-item p{
        display: none;
    }
}

@media (max-width: 499.98px) {
    .news-grid{
        grid-template-columns: repeat(1, 1fr);
    }

    .news-grid .news-post-item p{
        display: block;
    }
}