#wrapper .list-cars h1 {
    padding-bottom: 10px;
    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: 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;
    border-top-left-radius: 4px;
}

.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;
    min-height: 56px;
}

.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;
    color: var(--white);
    font-weight: 700;
}

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

/*youtube*/

.vide {
    position: relative;
}

.video-youtube {
    position: relative;
    background-color: #35363e;
    height: 380px;
}

.vide-bg {
    background-image: url(../images/video-bg.jpg);
    position: absolute;
    z-index: 0;
    inset: 0px;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.75;
    top: 0;
    left: 0;
}

.vide-bg video {
    visibility: visible;
    margin: auto;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
}

.list-video {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #fff;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.list-video .item {
    flex-basis: 32%;
}

.list-video .item-title {
    flex-basis: 100% !important;
    margin-bottom: 15px;
}

.list-video .item-title h2 {
    color: var(--white) !important;
}

.list-video .item:last-child {
    display: none;
}

.list-video .item img {
    border-radius: 4px 4px 0 0;
}

.list-video .item p {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 0 0 4px 4px;
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2em;
    line-height: 1.4em;
    min-height: 75px;
    color: var(--black);
}

.list-video .item a {
    display: inline-block;
    width: 100%;
}

.list-video .item a:hover p {
    color: var(--red);
}

/*giao diện moblie*/
@media only screen and (max-width: 1202px) {
    .list .item .info .car {
        min-height: 45px;
    }
}

@media only screen and (max-width: 1200px) {
    #wrapper {
        padding: 15px;
    }

    .list-video {
        padding: 0 15px;
    }
}


@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: 98%;
        font-size: 0.9em;
    }

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

    #wrapper .list-cars h1 {
        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;
    }

    /*youtube*/
    .list-video .item {
        flex-basis: 49%;
        margin-bottom: 15px;
    }

    .list-video .item:last-child {
        display: block;
    }

    .video-youtube {
        height: 610px;
    }

    .list-video .item p {
        font-size: 14px;
    }
}

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

    .video-youtube {
        height: 530px;
    }
}

@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: 98%;
    }

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

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