#wrapper .list-cars h2 {
    padding-bottom: 10px;

    color: var(--black);
}

/*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: 32%;
}

#wrapper .list-cars .list .item {
    flex-basis: 32%;
    margin-bottom: 25px;
}

#wrapper .list-cars .list .item:last-child {
    margin-bottom: 0;
}

.list .item .img {
    display: block;
    overflow: hidden;
}

.list .item .img img {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    height: 186px;
}

.list .item .img img:hover {
    -moz-transform: scaleX(1.1);
    -o-transform: scaleX(1.1);
    -webkit-transform: scaleX(1.1);
    transform: scaleX(1.1);
}

.list .item .info {
    background:var(--gray4);
    border-bottom-right-radius: 4px;
}

.list .item .info .car {
    display: inline-grid;
    width: auto;
    margin-bottom: 3px;
    font-weight: bold;
    padding: 6px;
}

.list .item .info .car:hover {
    color: var(--red);
}

.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 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px;
    background: var(--yellow);
    border-radius: 4px;
}

.news .box {
    flex-basis: 49%;
}

.news h2 {
    padding-bottom: 5px;
}

.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;
}

.list-news .info {
    flex-basis: 73%;
}

.list-news .info .car {
    display: inline-block;
    position: relative;
    top: -5px;
}

.list-news .info .car:hover {
    color: var(--red);
}

.tai-them {
    text-align: center;
    margin: 10px 0;
}

.tai-them a {
    background: var(--red);
    padding: 0.8em 2em 0.8em 2em;
    border-radius: 4px 0 4px 0;
    color: var(--white);
    font-weight: 700;
}

.tai-them a:hover {
    background: var(--redHover);
}

/*vi sao khach hang tin tuong chung toi*/
.custom {
    background: url(../images/bg2.jpg);
    z-index: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.vibao {
    background: none;
    margin-top: 2em;
    color: var(--white);
}

.vi-sao {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
}

.vibao h2 {
    padding-bottom: 10px;
    margin-bottom: 1em;
}

.vi-sao .visao-item {
    flex-basis: 32.5%;
    border: 1px solid var(--gray2);
    padding: 0.5em;
    color: #fff;
    display: flex;
    justify-content: space-between;
    text-align: left;
    align-items: center;
    border-radius: 5px 0 5px 0;
}

.vi-sao .visao-item h3 {
    padding: 1em 0;
    text-transform: uppercase;
    height: 70px;
}

.visao-item img {
    padding-right: 0.6em;
}

.vi-sao .visao-item img.icon-img {
    width: auto;
    max-width: 100%;
    height: 55px;
}

.name-blog {
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-block;
}

.sub-text {
    display: block;
    overflow: hidden;
    height: 44px;
    font-size: 0.9em;
    font-weight: 300;

}

/*effect-underline*/
a.effect-underline:after {
    content: '';


    display: inline-grid;

    width: 100%;
    border-bottom: 1px solid;

    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: scale(0, 1);
    transform: scale(0, 1);
}

a.effect-underline:hover:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/*giao diện moblie*/
@media only screen and (max-width: 1200px) {
    #wrapper {
        padding: 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;
    }

    .list .item .info .car {
        height: 44px;
    }

    .cm-tag span {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 927px) {
    .list .item .info .car {
        min-height: 44px;
    }
}

@media only screen and (max-width: 790px) {
    .cm-tag span {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 772px) {
    /*vì sao khách hàng tin tưởng ba cường auto*/
    .vi-sao .visao-item h3 {
        height: 85px;
    }
}

@media only screen and (max-width: 768px) {
    /*vì sao khách hàng tin tưởng ba cường auto*/
    .vi-sao .visao-item h3 {
        height: auto;
    }

    /*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: 49%;
        margin-bottom: 0.6em;
    }
}

@media only screen and (max-width: 668px) {
    .cm-tag span {
        flex-basis: 50%;
        font-size: 0.9em;
    }

    span.fix-01 {
        text-align: end;
    }

    #wrapper .list-cars h2 {
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 662px) {
    /*vì sao khách hàng tin tưởng ba cường auto*/
    .vi-sao .visao-item h3 {
        height: 72px;
    }
}

@media only screen and (max-width: 594px) {
    /*danh sách tin xe*/
    .list .item .info .car {
        min-height: 44px;
    }
}

@media only screen and (max-width: 576px) {
    /*danh sách tin xe*/
    #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;
    }
}

@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;
    }
}

@media only screen and (max-width: 522px) {
    .cm-tag span {
        flex-basis: 100%;

    }

    span.fix-01 {
        text-align: start;
    }
}


@media only screen and (max-width: 480px) {
    /*danh sách tin tức*/
    .list-news .item .img img {
        height: 76px;
    }

    .vi-sao .visao-item {
        flex-basis: 100%;
    }

    .name-blog {
        height: auto;
    }
}

@media only screen and (max-width: 432px) {
    /*danh sách tin xe*/
    .list .item .info .car {
        min-height: 44px;
    }
}

@media only screen and (max-width: 420px) {
    /*danh sách tin xe*/
    .list .item .img img {
        height: 220px;
    }

    /*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 {

        margin-bottom: 0.6em;
        height: auto;
    }

    .other1 li.other-info {
        width: 48%;
        margin-bottom: 0.6em;
    }

    .cm-tag span {
        flex-basis: 49%;
    }

    span.fix-01 {
        text-align: end;
    }

    .list .item .info .car {
        min-height: auto !important;
        font-size: 1.2em;
    }

    .cm-tag {
        margin-top: 0;
    }

    .cm-tag span {
        font-size: 1.1em;
    }

    .price {
        font-size: 1.2em;
    }
}

@media only screen and (max-width: 394px) {
    /*danh sách tin xe*/
    .list .item .info .car {
        min-height: 44px;
    }

    .vi-sao .visao-item h3 {
        font-size: 0.9em;
    }
}

@media only screen and (max-width: 347px) {
    /*vì sao khách hàng tin tưởng ba cường auto*/
    .vi-sao .visao-item h3 {
        height: 80px;
    }
}

@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;
    }
}
