#wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#wrapper .col-l {
    flex-basis: 70%;
}

#wrapper .col-r {
    flex-basis: 28%;
}

.list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.list .item {
    flex-basis: 24%;
    margin-bottom: 2em;
}

.list::after {
	content: '';
	flex-basis: 24%;
}

.list .item h3 a {
    color: var(--black);
    font-size: 1.2em !important;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 25px;
    -webkit-line-clamp: 2;
    height: 47px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.list .item h3 a:hover {
    color: var(--red);
    text-decoration: underline;
}

/*tiêu đề H2*/
h2.td {
    margin-bottom: 1em;
    font-size: 1.3em;
}

/*thời gian đăng tin*/
.time1, .time1 i {
    color: #6c6c6c;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

/*danh sách tin tức*/

.col-l h2, .col-r h2 {
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gray2);
}

.col-l .list .item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gray2);
    padding: 15px 0;
}

.col-l .list .item:last-child {
    border-bottom: none;
}

.col-l .list .item .img {
    flex-basis: 30%;
}

.col-l .list .item .info {
    flex-basis: 68%;
}

.col-l .list .item .img img {
    height: 162px;
}

.col-l .info .description {
    margin-top: 10px;
}

.col-l .item .info .news-title:hover {
    color: var(--red) !important;
}

/*phân trang*/

.pagination {
    margin-top: 15px;
}

.list .item .img img {
    height: 171px;
}

/*xe mới về*/

.col-r .list .item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray2);
}

/*mô tả ngắn*/
.motangan {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    height: 84px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin-top: 6px;
}

.col-r .item .img {
    width: 30%;
}

.col-r .item .info {
    width: 67%;
}

.col-r .item .img img {
    height: 68px;
}

.col-r .item .info .car {
    display: inline-block;
    margin-bottom: 3px;
}

.col-r .item .info .car:hover {
    color: var(--red);
}

.col-r .list .item:last-child {
    border: none;
}


/*css cho phiên bản mobile*/
@media only screen and (max-width: 1200px) {
    #wrapper {
        padding: 15px;
    }

    /*breadcrumb*/
    .breadcrumb {
        padding: 20px 15px 5px;
    }

    /*tin tức*/
    .col-l .list .item .img {
        flex-basis: 35%;
    }

    .col-l .list .item .info {
        flex-basis: 63%;
    }

    .col-l .list .item .img img {
        height: 190px;
    }
}

@media only screen and (max-width: 1024px) {
    /*xe mới về*/
    .col-r .item .img img {
        height: 55px;
    }
}

@media only screen and (max-width: 991px) {
    #wrapper {
        flex-wrap: wrap;
    }

    /*tin tức*/
    #wrapper .col-l {
        flex-basis: 100%;
    }

    /*xe mới về*/
    #wrapper .col-r {
        flex-basis: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    #wrapper .col-r .title {
        flex-basis: 100%;
    }

    #wrapper .col-r .list {
        flex-basis: 68%;
    }

    #wrapper .col-r .box-advertisement {
        flex-basis: 30%;
    }

    .col-r .item .img img {
        height: 130px;
    }
}

@media only screen and (max-width: 768px) {
    /*tin tức*/
    .col-l .list .item .img img {
        height: 175px;
    }

    .list .item {
        flex-basis: 49%;
    }

    #wrapper .col-r .box-advertisement a img {
        height: 300px;
    }
}

@media only screen and (max-width: 640px) {
    /*tin tức*/
    .col-l .list .item .img img {
        height: 142px;
    }

    /*xe mới về*/
    .col-r .item .img img {
        height: 120px;
    }
}

@media only screen and (max-width: 576px) {
    #wrapper {
        padding: 10px;
    }

    /*tin tức*/
    .col-l .list .item .img img {
        height: 125px;
    }

    .news-title {
        font-size: 14px;
        line-height: 25px;
    }

    /*phân trang*/
    .pagination {
        margin-bottom: 15px;
    }

    /*xe mới về*/
    .col-r .item .img img {
        height: 105px;
    }
}

@media only screen and (max-width: 480px) {
    /*tin tức*/
    .col-l .info .description {
        margin-top: 3px;
    }

    .col-l .list .item .img img {
        height: 105px;
    }

    /*xe mới về*/
    .col-r .item .img img {
        height: 85px;
    }

    .col-r .list .item {
        padding: 10px 0;
    }

    /*ảnh quảng cáo*/
    #wrapper .col-r .box-advertisement a img {
        height: 180px;
    }
}

@media only screen and (max-width: 420px) {
    /*tin tức*/
    .col-l .list .item .img img {
        height: 95px;
    }

    .col-l .list .item {
        padding: 10px 0;
    }

    .list .item {
        flex-basis: 99%;
    }

    .list .item h3 a {
        height: auto;
    }

    .motangan {
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 20px;
        -webkit-line-clamp: 3;
        height: 40px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

@media only screen and (max-width: 395px) {
    /*tin tức*/
    .news-title {
        font-size: 13px;
        line-height: 25px;
    }

    .col-l .list .item .img img {
        height: 85px;
    }
}

@media only screen and (max-width: 375px) {
    /*xe mới về*/
    .col-r .item .img img {
        height: 70px;
    }

    .list .item {
        flex-basis: 100%;
    }

    .list .item {
        margin-bottom: 0;
    }

    .list .item h3 a {
        height: auto;
    }

    .motangan {
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 20px;
        -webkit-line-clamp: 4;
        height: 80px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

}

@media only screen and (max-width: 368px) {
    /*tin tức*/
    .col-l .info .description {
        display: none;
    }
}

@media only screen and (max-width: 320px) {
    /*tin tức*/
    .col-l .list .item .img img {
        height: 69px;
    }


}