*{
    color: var(--alBlack);
}
nav {
    position: relative;
}

.auto31-wrapper 
{
    margin-top: 2em;
}
.auto31-title {
    padding: 1.3rem 0;
}
.auto31-new {
    font-size: 1.5rem;
}

.auto31-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.auto31-wrapper .auto31-col-l {
    flex-basis: 70%;
}

.auto31-wrapper .auto31-col-r {
    flex-basis: 28%;
}

.auto31-wrapper .auto31-col-l .auto31-nav-news {
    margin: 1.5rem 0 2rem;
}

.auto31-wrapper .auto31-col-l .auto31-nav-news a {
    color: var(--alBlack);
    text-transform: uppercase;
    font-size: 1.8rem;
    border-right: 1px solid var(--alGrayInfoCars);
    padding: 0 1rem;
}

.auto31-wrapper .auto31-col-l .auto31-nav-news a:first-child {
    padding-left: 0;
}

.auto31-wrapper .auto31-col-l .auto31-nav-news a:last-child {
    padding-right: 0;
    border-right: none;
}

.auto31-wrapper .auto31-col-l .auto31-nav-news a:hover {
    color: var(--alRed);
}

/*tin tức cột trái trang tin*/
.news-title-hl
{
    display: block;
    overflow: hidden;
    margin-bottom: .8em;
}

.left-new-box
{
    border-bottom: 1px solid #ece8e8;
    margin-bottom: 2em;
}

.news-item
{
    flex-basis: 32%;
    margin-bottom: 2em;
}
.news-item img
{
    display: block;
    overflow: hidden;
    height: 180px;
}
.news-item h3
{
    display: block;
    overflow: hidden;
    height: 45px;
    margin-top: .5em;
}

.news-item h3 a
{
    color: var(--alBlack);
}

.news-item h3 a:hover
{
    text-decoration: underline;
}

.description
{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 85px;
    margin-top: 1em;
}
/*tin nổi bật*/
.auto31-hot-news {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.5em;
    border-radius: 0 4px 4px 4px;
    background: var(--alBlue);
}

.auto31-hot-news .auto31-box-l {
    flex-basis: 68%;
}

.auto31-hot-news .auto31-box-r {
    flex-basis: 30%;
}

.auto31-hot-news a {
    display: inline-block;
    width: 100%;
}

.auto31-hot-news .auto31-box-l img {
    height: 400px;
}

.auto31-hot-news .auto31-box-l .auto31-title-news {
    margin: 1.5rem 0;
    font-size: 2.4rem !important;
    line-height: 3.2rem;
}

.auto31-hot-news .auto31-box-r .auto31-item {
    margin-bottom: 1.5rem;
}

.auto31-hot-news .auto31-box-r .auto31-item .auto31-new {
    margin-top: 1rem;
}

.auto31-hot-news .auto31-box-r img {
    height: 165px;
}

/*tin theo danh mục*/
.auto31-col-l .auto31-box-news {
    margin-top: 1.5rem;
}

.auto31-box-news .auto31-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.auto31-box-news .auto31-box .auto31-item {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.auto31-box-news .auto31-box .auto31-item img {
    height: 167px;
}

.auto31-box-news .auto31-box .auto31-item:last-child {
    margin-bottom: 0;
}

.auto31-box-news .auto31-item .auto31-box-img {
    flex-basis: 30%;
}

.auto31-box-news .auto31-item .auto31-box-text {
    flex-basis: 68%;
}

.auto31-box-news .auto31-item .auto31-box-text .auto31-new {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    line-height: 2.6rem;
}

/*video*/

.auto31-box-video {
    margin-top: 1.5rem;
}

.auto31-box-video .auto31-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--alBlue);
    padding: 1rem;
    border-radius: 4px;
}

.auto31-box-video .auto31-box .auto31-item {
    flex-basis: 32%;
}

.auto31-box-video .auto31-box .auto31-item a {
    display: inline-block;
    width: 100%;
}

.auto31-box-video .auto31-box .auto31-item a:hover .auto31-title-video {
    color: var(--alRed);
}

.auto31-box-video .auto31-item img {
    height: 179px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.auto31-box-video .auto31-item .auto31-title-video {
    margin-bottom: 1rem;
    font-weight: bold;
}

/*xe mói về*/

.auto31-col-r .auto31-new-car {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2em;
}

.auto31-col-r .auto31-new-car .auto31-item {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1em;
      
}
.auto31-col-r .auto31-new-car .auto31-item img
{
    border-radius: 4px;
}

.auto31-col-r .auto31-new-car .auto31-item:last-child {
    border-bottom: none;
}

.auto31-col-r .auto31-item .auto31-img {
    flex-basis: 35%;
}

.auto31-col-r .auto31-item .auto31-info-car {
    flex-basis: 61%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    
}

.auto31-col-r .auto31-item .auto31-info-car .auto31-price {
    color: var(--alRed);
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

.auto31-col-r .auto31-item .auto31-img img {
    height: 78px;
}
.auto31-active-news-menu {
    color: var(--alRed) !important;
    font-weight: 700;
}

/*style màu sắc footer trang tin tức*/
.danh-muc1 li, .hl-container-bottom
{
    color: #fff;
}

/*giao diện cho mobile*/
@media only screen and (max-width: 1230px) {
    .auto31-wrapper {
        padding: 0 1.5rem 3rem;
        margin-bottom: 0;
    }

    /*tin nổi bật*/
    .auto31-hot-news .auto31-box-l img {
        height: 330px;
    }

    .auto31-hot-news .auto31-box-r img {
        height: 170px;
    }
}

@media only screen and (max-width: 1024px) {
    .auto31-wrapper .auto31-col-l {
        flex-basis: 100%;
    }

    .auto31-wrapper .auto31-col-r {
        flex-basis: 100%;
        margin-top: 1em;
    }

    /*tin nổi bật*/
    .auto31-hot-news .auto31-box-l img {
        height: 400px;
    }

    .auto31-hot-news .auto31-box-r img {
        height: 165px;
    }

    /*tin theo danh mục*/
    .auto31-box-news .auto31-item .auto31-box-img {
        flex-basis: 25%;
    }

    .auto31-box-news .auto31-item .auto31-box-text {
        flex-basis: 73%;
    }

    .auto31-box-news .auto31-box .auto31-item img {
        height: 160px;
    }

    /*video*/
    .auto31-box-video .auto31-item img {
        height: 207px;
    }

    /*xe mới về*/
    .auto31-col-r .auto31-item .auto31-img {
        flex-basis: 25%;
    }

    .auto31-col-r .auto31-item .auto31-info-car {
        flex-basis: 73%;
    }

    .auto31-col-r .auto31-item .auto31-img img {
        height: 160px;
    }
}

@media only screen and (max-width: 768px) {
    .auto31-wrapper {
        padding: 0 1rem 3rem;
    }

    /*tin nổi bật*/
    .auto31-hot-news .auto31-box-l {
        flex-basis: 100%;
        margin-bottom: 1.5rem;
    }

    .auto31-hot-news .auto31-box-l img {
        height: 460px;
    }

    .auto31-hot-news .auto31-box-r {
        flex-basis: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .auto31-hot-news .auto31-box-r .auto31-item {
        flex-basis: 49%;
    }

    .auto31-hot-news .auto31-box-r img {
        height: 240px;
    }

    .auto31-hot-news .auto31-box-l .auto31-title-news {
        font-size: 2.1rem !important;
        line-height: 3rem;
    }

    
    .auto31-box-news .auto31-box .auto31-item img {
        height: 123px;
    }

    .auto31-box-text .auto31-des {
        display: none;
    }

    .auto31-box-news .auto31-item .auto31-box-text .auto31-new {
        font-size: 1.5rem;
        line-height: 2.3rem;
    }

    
    .auto31-box-video .auto31-item img {
        height: 153px;
    }

    /*xe mới về*/
    .auto31-col-r .auto31-item .auto31-img img {
        height: 123px;
    }
}

@media only screen and (max-width: 640px) {
    /*tin nổi bật*/
    .auto31-hot-news .auto31-box-l img {
        height: 400px;
    }

    .auto31-hot-news .auto31-box-r img {
        height: 199px;
    }

    /*tin theo danh mục*/
    .auto31-box-news .auto31-box .auto31-item img {
        height: 102px;
    }

    /*video*/
    .auto31-box-video .auto31-item img {
        height: 126px;
    }

    /*xe mới về*/
    .auto31-col-r .auto31-item .auto31-img img {
        height: 102px;
    }
    /*tin tức*/
    .news-item
    {
        flex-basis: 49%;
    }
    .news-item img
    {
        height: 180px;
    }
}

@media only screen and (max-width: 576px) {
    /*menu tin tức*/
    .auto31-wrapper .auto31-col-l .auto31-nav-news a {
        font-size: 1.6rem;
        margin: 1.5rem 0;
    }

    /*tin nổi bật*/
    .auto31-hot-news .auto31-box-l img {
        height: 363px;
    }

    .auto31-hot-news .auto31-box-l .auto31-title-news {
        font-size: 2rem !important;
        line-height: 2.8rem;
    }

    .auto31-hot-news .auto31-box-r img {
        height: 178px;
    }

    /*tin theo danh mục*/
    .auto31-box-news .auto31-item .auto31-box-img {
        flex-basis: 30%;
    }

    .auto31-box-news .auto31-item .auto31-box-text {
        flex-basis: 68%;
    }

    .auto31-box-news .auto31-box .auto31-item img {
        height: 109px;
    }

    /*video*/
    .auto31-box-video .auto31-box .auto31-item {
        flex-basis: 49%;
    }

    .auto31-box-video .auto31-item img {
        height: 171px;
    }

    .auto31-box-video .auto31-box .auto31-item:last-child {
        margin-top: 1rem;
    }

    /*xe mới về*/
    .auto31-col-r .auto31-item .auto31-img {
        flex-basis: 30%;
    }

    .auto31-col-r .auto31-item .auto31-info-car {
        flex-basis: 68%;
    }

    .auto31-col-r .auto31-item .auto31-img img {
        height: 109px;
    }
}

@media only screen and (max-width: 480px) {
    .auto31-wrapper .auto31-col-l .auto31-nav-news a {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    /*tin nổi bật*/
    .auto31-hot-news .auto31-box-l img {
        height: 299px;
    }

    .auto31-hot-news .auto31-box-r img {
        height: 147px;
    }

    /*tin theo danh mục*/
    .auto31-box-news .auto31-box .auto31-item img {
        height: 90px;
    }

    /*video*/
    .auto31-box-video .auto31-item img {
        height: 140px;
    }

    /*xe mới về*/
    .auto31-col-r .auto31-item .auto31-img img {
        height: 90px;
    }
    /*tab tin*/
    .tab button.active, .tab button
    {
        font-size: 1em;
    }
}

@media only screen and (max-width: 420px) {
    /*tin nổi bật*/
    .auto31-hot-news .auto31-box-l img {
        height: 259px;
    }

    .auto31-hot-news .auto31-box-r img {
        height: 127px;
    }

    /*tin theo danh mục*/
    .auto31-box-news .auto31-item .auto31-box-img {
        flex-basis: 35%;
    }

    .auto31-box-news .auto31-item .auto31-box-text {
        flex-basis: 63%;
    }

    .auto31-box-news .auto31-box .auto31-item img {
        height: 91px;
    }

    .auto31-box-news .auto31-item .auto31-box-text .auto31-new {
        font-size: 1.4rem;
        line-height: 2.2rem;
    }

    /*video*/
    .auto31-box-video .auto31-item img {
        height: 120px;
    }

    /*xe mới về*/
    .auto31-col-r .auto31-item .auto31-img {
        flex-basis: 35%;
    }

    .auto31-col-r .auto31-item .auto31-info-car {
        flex-basis: 63%;
    }

    .auto31-col-r .auto31-item .auto31-img img {
        height: 91px;
    }
    /*tin tức*/
    .news-item
    {
        flex-basis: 100%;
    }
    .news-item img
    {
        height: 200px;
    }
    .news-item h3, .description
    {
        height: auto;
    }
}
@media only screen and (max-width: 380px)
{
    /*tab tin*/
    .tab button.active, .tab button
    {
        font-size: 0.9em;
        padding: 8px;
    }
}

@media only screen and (max-width: 360px) {
    /*menu tin tức*/
    .auto31-wrapper .auto31-col-l .auto31-nav-news a {
        font-size: 1.4rem;
    }

    /*tin nổi bật*/
    .auto31-hot-news .auto31-box-l img {
        height: 226px;
    }

    .auto31-hot-news .auto31-box-r img {
        height: 110px;
    }

    /*video*/
    .auto31-box-video .auto31-item img {
        height: 104px;
    }

    /*xe mới về*/
    .auto31-col-r .auto31-item .auto31-img img {
        height: 79px;
    }
    .auto31-box-video .auto31-box .auto31-item
    {
        flex-basis: 100%;
        margin-bottom: 1em;
    }
    .auto31-box-video .auto31-box .auto31-item img, .news-item img
    {
        height: 170px;
    }
    
}

