#wrapper .list-cars h2 {
    padding-left: 0.5em;
    border-left: 3px solid var(--red);
    color: var(--red);
}

/*danh sách tin xe*/

#wrapper .list-cars .list {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

#wrapper .list-cars .list:after {
    content: '';
    flex-basis: 23.5%;
}

#wrapper .list-cars .list .item {
    flex-basis: 23.5%;
    margin-bottom: 25px;
    box-shadow: 0 0 10px 3px #000;
}

#wrapper .list-cars .list .item:last-child {
    box-shadow: none;
    margin-bottom: 0;
}

.list .item .img {
    display: block;
    overflow: hidden;
}

.list .item .img img {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    height: 186px;
    opacity: 1;
}

.list .item .img img:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 0.5;
}

.list .item .info {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 6px;
    background: var(--bgMenu);
}

/*giới hạn ký tự tên xe*/
.list .item .info .car {
    width: auto;
    height: 46px;
    display: inline-block;
    color: #fff;
}

/*giới hạn ký tự phần dv*/
.vi-sao .visao-item p {
    width: auto;
    margin-bottom: 3px;
    color: black;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.list .item .info .car:hover {
    color: var(--red);
}

.fix-color {
    color: black;
}

.other1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px dotted var(--gray3);
    padding-top: 0.5em;
    margin-top: 0.5em;
}

.other1 li.other-info {
    width: 32%;
    align-items: flex-start;
}

/*Danh sách tin tức*/

.news {
    padding: 15px;
    background: var(--bgMenu);
}

.news .content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.news .box {
    flex-basis: 49%;
}

.news h2 {

    padding-left: 0.5em;
    border-left: 3px solid var(--red);
    color: var(--red);
}

.news .list-news {
    margin-top: 25px;
}

.list-news .item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.list-news .item .img {
    display: inline-block;
    flex-basis: 25%;
}

.list-news .item .img img {
    height: 90px;
    border-radius: 4px;
}

.list-news .info {
    flex-basis: 73%;
}

.list-news .info .car {
    display: inline-block;
    margin-bottom: 10px;
}

.list-news .info .car:hover {
    color: var(--red);
}

/*vi sao khach hang tin tuong chung toi*/
.vibao {
    color: white;
}

.vi-sao {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 1.5em;
}

.vibao h2 {
    padding-left: 0.5em;
    border-left: 3px solid var(--red);
    color: var(--red);
    margin-bottom: 1em;
}

.vi-sao .visao-item {
    flex-basis: 32%;
    background: var(--bgMenu);
    padding: 1em 0.5em;
    border-radius: 4px;
    color: #e1e1e1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.visao-item .tieu-chi {
    flex-basis: 65%;
    text-align: start;
}

.vi-sao .visao-item p {
    color: white;
}

.vi-sao .visao-item h3 {
    margin-bottom: 5px;
    text-transform: uppercase;
    color: white;
}

.vi-sao .visao-item img.icon-img {
    max-width: 100%;
    width: 70px;
    object-fit: contain;
    margin-right: 20px;
}

.see-more {
    text-align: center;
    margin: 5px 0 10px;
}

.see-more a {
    display: inline-block;
    font-weight: bold;
    background: #e60017;
    padding: 8px 30px;
    border-radius: 4px;
    text-transform: uppercase;
}

.see-more a:hover {
    background: var(--redHover);
}

/*giao diện moblie*/
@media only screen and (max-width: 1200px) {
    #wrapper {
        padding: 15px 0;
    }

    #wrapper .list-cars {
        padding: 0 15px;
    }

    .vibao {
        padding: 0 10px;
    }
}

@media only screen and (max-width: 1024px) {
    /*danh sách tin xe*/
    #wrapper .list-cars .list .item {
        flex-basis: 32%;
    }

    .other1 li.other-info {
        flex-basis: 48%;
        margin-bottom: 0.5em;
    }
}

@media only screen and (max-width: 991px) {
    /*danh sách tin tức*/
    .news {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .news .box {
        flex-basis: 100%;
    }

    .list-news .item .img img {
        height: 135px;
    }

    .visao-item .tieu-chi {
        flex-basis: 100%;
        text-align: center;
    }

    .vi-sao .visao-item h3 {
        margin: 5px 0 0 0;
    }
}


@media only screen and (max-width: 768px) {
    /*danh sách tin xe*/
    #wrapper .list-cars .list {
        margin-top: 15px;
    }

    #wrapper .list-cars .list .item {
        margin-bottom: 15px;
    }

    .list .item .info .box-year-price {
        display: flex;
        flex-direction: column;
    }

    .list .box-year-price .icon {
        display: none;
    }

    .list .item .img img {
        height: 157px;
    }

    /*danh sách tin tức*/
    .news .list-news {
        margin-top: 15px;
    }

    .list-news .item .img img {
        height: 103px;
    }

    .vi-sao .visao-item {
        flex-basis: 32%;
        margin-bottom: 0.6em;
    }

    .vi-sao .visao-item h3 {
        padding: 0;
        line-height: 18px;
        font-size: 13px;
    }

    .vi-sao .visao-item p {
        line-height: 18px;
        margin-top: 0.4em;
    }
}

@media only screen and (max-width: 594px) {
    /*danh sách tin xe*/
    .list .item .info .car {
        min-height: 44px;
    }

    .vi-sao .visao-item {
        flex-basis: 100%;
    }

    .vi-sao .visao-item img.icon-img {
        width: 60px;
    }

    .visao-item .tieu-chi {
        flex-basis: 81%;
        padding-top: 8px;
    }

    .thongtinphu {
        height: 57px;
    }

    .vi-sao .visao-item {
        flex-wrap: nowrap;
    }

    .vi-sao .visao-item {
        padding: 0.5em;
    }
}

@media only screen and (max-width: 576px) {
    /*danh sách tin xe*/
    #wrapper .list-cars {
        padding: 0 10px;
    }

    #wrapper .list-cars .list .item {
        flex-basis: 49%;
    }

    .list .item .info .car {
        min-height: 22px;
    }

    /*danh sách tin tức*/
    .news {
        padding: 10px;
    }

    /*phân trang*/
    .pagination {
        margin-bottom: 15px;
    }

    .car-info .box-img .list-img {
        overflow: visible !important;
    }

    .thongtinphu {
        height: auto;
    }
}

@media only screen and (max-width: 576px) {
    /*danh sách tin tức*/
    .list-news .item .img img {
        height: 90px;
    }

    .list-news .item {
        margin-bottom: 15px;
    }

    .list-news .info .description {
        display: none;
    }

}

@media only screen and (max-width: 480px) {
    /*danh sách tin tức*/
    .list-news .item .img img {
        height: 76px;
    }

}

@media only screen and (max-width: 420px) {
    /*danh sách tin xe*/
    .list .item .img img {
        height: 120px;
    }

    /*danh sách tin xe*/
    .list-news .item .img {
        display: inline-block;
        flex-basis: 20%;
    }

    .list-news .info {
        flex-basis: 78%;
    }

    .list-news .item .img img {
        height: 52px;
    }

    .vi-sao .visao-item {
        flex-basis: 100%;
        margin-bottom: 0.6em;
        height: auto;
    }

    .vi-sao .visao-item p {
        line-height: 20px;
        margin-top: 1em;
        font-size: 1.1em;
    }

    .other1 li.other-info {
        width: 48%;
        margin-bottom: 0.6em;
    }

    .thongtinphu {

        height: 54px;
    }

    .visao-item .tieu-chi {
        flex-basis: 68%;
        padding-top: 8px;
    }


}

@media only screen and (max-width: 394px) {
    /*danh sách tin xe*/
    .vi-sao .visao-item h3 {
        font-size: 0.9em;
    }
}

@media only screen and (max-width: 351px) {
    .list-news .info .description {
        display: none;
    }
}

@media only screen and (max-width: 320px) {
    /*danh sách tin xe*/
    #wrapper .list-cars .list .item {
        flex-basis: 100%;
    }

    .list .item .img img {
        height: 168px;
    }

    .list .item .info .car {
        min-height: auto;
    }

    .list .item .info .box-year-price {
        display: inline-block;
    }

    .list .box-year-price .icon {
        display: inline-block;
    }

    /*danh sách tin tức*/
    .list-news .item .img img {
        height: 42px;
    }

    .list-news .item {
        margin-bottom: 10px;
    }

    .vi-sao .visao-item {

        flex-basis: 100%;
        margin-bottom: 1em;

    }

    .vi-sao .visao-item h3 {
        height: auto;
    }

    .thongtinphu {
        height: auto;
    }
}
