﻿.section .news .event {
    margin-bottom: 30px;
}

@media all and (max-width: 768px) {
    .section .news .event {
        padding: 0
    }
}

.section .news .event .news-box {
    /*display: block;*/
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    padding-top: 10px;
    /*height: auto;*/
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-items: center;
}

@media all and (max-width: 768px) {
    .section .news .event .news-box {
        margin-right: 0
    }
}

.section .news .event .news-box .new-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 10px;
}

.section .news .event .news-box .new-info >p {
    margin-bottom: 10px;
}

@media all and (max-width: 768px) {
    .section .news .event .news-box .new-info {
        margin-left: 0px;
        margin-top: 15px;
        width: 100%;
        justify-content: center !important;
    }
}

.section .news .event .news-box .new-info .news-time {
    text-align: center;
    padding: 5px;
    background-color: #232323;
    border-radius: 5px
}

.section .news .event .sub-title {
    margin-top: 15px;
    margin-bottom: 0
}

.newslist-container {
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17%, 1fr));
    height: 100%;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .newslist-container {
        grid-template-columns: repeat(auto-fill, minmax(22%, 1fr));
    }
}

    @media (min-width: 1024px) and (max-width: 1199px) {
        .newslist-container {
            grid-template-columns: repeat(auto-fill, minmax(32%, 1fr));
        }
    }

    @media (min-width: 768px) and (max-width: 1023px) {
        .newslist-container {
            grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
        }
    }

    @media (max-width: 767px) {
        .newslist-container {
            grid-template-columns: repeat(auto-fill, minmax(46%, 1fr));
        }
    }

.newslist-box {
    position: relative;
    box-shadow: 0 4px 4px rgb(14 55 54 / 20%);
    border-radius: .5rem;
    border-top: solid;
    height: 100%;
}

.newslist-img {
    width: 100%;
    border-radius: .5rem;
    overflow: hidden;
    max-height: 100%;
}

.newslist-img img {
    width: 100%;
    object-fit: fill;
    object-position: left top;
    padding: 3px;
    max-height: 100%;
}

        .newslist-img img:hover {
            transform: scale(1.1);
            transition: .5s;
        }

    .newslist-title {
        display: inline-block;
        padding: 0.5rem 0.5rem;
        font-weight: bold;
        margin: 15px;
        background: rgba(0, 0, 0, 0.1);
    }