﻿.news-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.news-main {
}

.news-item {
    width: calc(100%/3 - 30px);
    padding: 0 0 15px;
    margin: 0 45px 40px 0px;
}

    .news-item:nth-child(3n) {
        margin-right: 0;
    }

    .news-item a {
        text-decoration: none;
        color: #ff6a00;
    }

.news-img {
    overflow: hidden;
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
}

.news-txt {
    color: #fff;
    margin: 0;
    font-size: 15px;
    line-height: 1.5em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-ttl {
    color: #fff;
    font-size: 17px;
    font-weight:bold;
    line-height: 1.5em;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 8px;
    transition:all 0.3s;
    /*font-family: 'Oswald', sans-serif;*/
    text-transform:uppercase;
}

.news-item:hover .news-img img {
    transform: scale(1.05,1.05);
}

.news-item:hover .news-ttl {
    color:#e9aa00;
}

.news-img span::before{
    content: '';
    position: relative;
    display: inline-block;
    background: url(../img/ico_date_white.png) no-repeat center center/100% auto;
    width: 14px;
    height: 15px;
    margin-right: 10px;
    top: 2px;
}

.news-img img {
    width: 100%;
    transition: all 0.5s ease;
    height: 100%;
    object-fit: cover;
}

/*.news-date {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: #ff9d57;
    color: #fff;
    width: 150px;
    text-align: center;
    font-size: 16px;
    padding: 3px;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    transition: all 0.5s ease;
}*/
.news-date {
    color: #e9aa00;
    font-size: 14px;
    font-weight: 400;
    margin: 5px 0;
}

.news-link {
    text-align: right;
    font-weight: 500;
    font-style: italic;
    margin: 0;
    font-size: 16px;
}

@media screen and (max-width:768px) {
    .news-item {
        width: calc(98%/2 - 16px);
    }
        .news-item:nth-child(2n) {
            margin-right:0;
        }
        .news-item:nth-child(3n) {
            margin:0 45px 40px 0px;
        }
}

@media screen and (max-width:480px) {
    .news-item a {
        display: block;
    }

    .news-img, .news-main {
        width: 100%
    }

    .news-list {
        display: block;
    }

    .news-item {
        width: 100%;
        padding: 0 0 20px;
        margin: 0 0 25px;
    }
}
