nav {
    position: relative;
    border-bottom: 2px solid var(--main-color);
}

.ptdauto-wrapper 
{
    margin-top: 2em;
}
.ptdauto-title {
    padding: 1.3rem 0;
    padding-top: 0;
}

.ptdauto-new {
    font-size: 1.5rem;
}

.ptdauto-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.ptdauto-wrapper .ptdauto-col-l {
    flex-basis: 70%;
}

.ptdauto-wrapper .ptdauto-col-r {
    flex-basis: 28%;
}

.ptdauto-wrapper .ptdauto-col-l .ptdauto-nav-news {
    margin: 1.5rem 0 2rem;
}

.ptdauto-wrapper .ptdauto-col-l .ptdauto-nav-news a {
    color: var(--alBlack);
    text-transform: uppercase;
    font-size: 1.8rem;
    border-right: 1px solid var(--alGrayInfoCars);
    padding: 0 1rem;
}

.ptdauto-wrapper .ptdauto-col-l .ptdauto-nav-news a:first-child {
    padding-left: 0;
}

.ptdauto-wrapper .ptdauto-col-l .ptdauto-nav-news a:last-child {
    padding-right: 0;
    border-right: none;
}

.ptdauto-wrapper .ptdauto-col-l .ptdauto-nav-news a:hover {
    color: var(--alRed);
}

/* Style the tab */
.tab {
    overflow: hidden;
    
  }
  
  /* Style the buttons inside the tab */
  .tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    text-transform: uppercase;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: var(--alyellow);
    border-radius: 4px 4px 0 0;
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: var(--alBlue);
    border-radius: 4px 4px 0 0;
    text-transform: uppercase;
    font-weight: bold;
    
  }
  
  /* Style the tab content */
  .tabcontent {
    display: none;
    
    border-top: none;
}

/*tin nổi bật*/
.ptdauto-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);
}

.ptdauto-hot-news .ptdauto-box-l {
    flex-basis: 68%;
}

.ptdauto-hot-news .ptdauto-box-r {
    flex-basis: 30%;
}

.ptdauto-hot-news a {
    display: inline-block;
    width: 100%;
}

.ptdauto-hot-news .ptdauto-box-l img {
    height: 400px;
}

.ptdauto-hot-news .ptdauto-box-l .ptdauto-title-news {
    margin: 1.5rem 0;
    font-size: 2.4rem !important;
    line-height: 3.2rem;
}

.ptdauto-hot-news .ptdauto-box-r .ptdauto-item {
    margin-bottom: 1.5rem;
}

.ptdauto-hot-news .ptdauto-box-r .ptdauto-item .ptdauto-new {
    margin-top: 1rem;
}

.ptdauto-hot-news .ptdauto-box-r img {
    height: 165px;
}
a:hover
{
    color: var(--alRedHover);
}
/*tin theo danh mục*/
.ptdauto-col-l .ptdauto-box-news {
    margin-top: 1.5rem;
}

.ptdauto-box-news .ptdauto-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ptdauto-box-news .ptdauto-box .ptdauto-item {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
   border: 1px solid #ebebeb;
   border-radius: 5px;
    padding: 0.5em;
}

.ptdauto-box-news .ptdauto-box .ptdauto-item img {
    height: 167px;
}

.ptdauto-box-news .ptdauto-box .ptdauto-item:last-child {
    margin-bottom: 0;
}

.ptdauto-box-news .ptdauto-item .ptdauto-box-img {
    flex-basis: 30%;
}

.ptdauto-box-news .ptdauto-item .ptdauto-box-text {
    flex-basis: 68%;
}

.ptdauto-box-news .ptdauto-item .ptdauto-box-text .ptdauto-new {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    line-height: 2.6rem;
}

.date_news
{
    font-size: .9em;
    color: #9d9d9d;
    margin-bottom: .5em;
    font-style: italic;
}
.date_news i
{
    margin-right: .3em;
    color: #9d9d9d;
}
/*tải thêm tin xe*/
.tai_them_tin
{
    display: block;
    text-align: center;
    margin-top: 2em;
}
.tai_them_tin a
{
    background: var(--main-color);
    padding: .7em 1.5em;
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
}
.tai_them_tin a:hover
{
    color: var(--alRedHover);
}

/*video*/
.ptdauto-box-video {
    margin-top: 2rem;
}

.ptdauto-box-video .ptdauto-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
}

.ptdauto-box-video .ptdauto-box .ptdauto-item {
    flex-basis: 32%;
}

.ptdauto-box-video .ptdauto-box .ptdauto-item a {
    display: inline-block;
    width: 100%;
}

.ptdauto-box-video .ptdauto-box .ptdauto-item a:hover .ptdauto-title-video {
    color: var(--alRed);
}

.ptdauto-box-video .ptdauto-item img {
    height: 179px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.ptdauto-box-video .ptdauto-item .ptdauto-title-video {
    margin-bottom: 1rem;
    font-weight: bold;
}

/*xe mói về*/
.ptdauto-col-r .ptdauto-new-car {
    display: flex;
    align-items: flex-start;
   
    flex-wrap: wrap;
    margin-bottom: 1.5em;
   
}

.ptdauto-col-r .ptdauto-new-car .ptdauto-item {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2em;
   
}
.ptdauto-col-r .ptdauto-new-car .ptdauto-item img
{
    border-radius: 0;
}

.ptdauto-col-r .ptdauto-new-car .ptdauto-item:last-child {
    border-bottom: none;
}

.ptdauto-col-r .ptdauto-item .ptdauto-img {
    flex-basis: 35%;
    margin-right: .4em;
}

.ptdauto-col-r .ptdauto-item .ptdauto-info-car {
    flex-basis: 61%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.ptdauto-col-r .ptdauto-item .ptdauto-info-car .ptdauto-price {
    color: var(--alRedHover);
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

.ptdauto-col-r .ptdauto-item .ptdauto-img img {
    height: 78px;
    border-radius: 4px;
}
.ptdauto-active-news-menu {
    color: var(--alRed) !important;
    font-weight: 700;
}

@media only screen and (max-width: 1230px) {
    .ptdauto-wrapper {
        padding: 0 1.5rem 3rem;
        margin-bottom: 0;
    }

    /*tin nổi bật*/
    .ptdauto-hot-news .ptdauto-box-l img {
        height: 330px;
    }

    .ptdauto-hot-news .ptdauto-box-r img {
        height: 170px;
    }
}

@media only screen and (max-width: 1024px) {
    .ptdauto-wrapper .ptdauto-col-l {
        flex-basis: 100%;
    }

    .ptdauto-wrapper .ptdauto-col-r {
        flex-basis: 100%;
        margin-top: 1em;
    }

    /*tin nổi bật*/
    .ptdauto-hot-news .ptdauto-box-l img {
        height: 400px;
    }

    .ptdauto-hot-news .ptdauto-box-r img {
        height: 165px;
    }

    /*tin theo danh mục*/
    .ptdauto-box-news .ptdauto-item .ptdauto-box-img {
        flex-basis: 25%;
    }

    .ptdauto-box-news .ptdauto-item .ptdauto-box-text {
        flex-basis: 73%;
    }

    .ptdauto-box-news .ptdauto-box .ptdauto-item img {
        height: 160px;
    }

    /*video*/
    .ptdauto-box-video .ptdauto-item img {
        height: 207px;
    }

    /*xe mới về*/
    .ptdauto-col-r .ptdauto-item .ptdauto-img {
        flex-basis: 25%;
    }

    .ptdauto-col-r .ptdauto-item .ptdauto-info-car {
        flex-basis: 73%;
    }

    .ptdauto-col-r .ptdauto-item .ptdauto-img img {
        height: 160px;
    }
}

@media only screen and (max-width: 768px) {
    .ptdauto-wrapper {
        padding: 0 1rem 3rem;
    }

    /*tin nổi bật*/
    .ptdauto-hot-news .ptdauto-box-l {
        flex-basis: 100%;
        margin-bottom: 1.5rem;
    }

    .ptdauto-hot-news .ptdauto-box-l img {
        height: 460px;
    }

    .ptdauto-hot-news .ptdauto-box-r {
        flex-basis: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .ptdauto-hot-news .ptdauto-box-r .ptdauto-item {
        flex-basis: 49%;
    }

    .ptdauto-hot-news .ptdauto-box-r img {
        height: 240px;
    }

    .ptdauto-hot-news .ptdauto-box-l .ptdauto-title-news {
        font-size: 2.1rem !important;
        line-height: 3rem;
    }

    
    .ptdauto-box-news .ptdauto-box .ptdauto-item img {
        height: 123px;
    }

    .ptdauto-box-text .ptdauto-des {
        display: none;
    }

    .ptdauto-box-news .ptdauto-item .ptdauto-box-text .ptdauto-new {
        font-size: 1.5rem;
        line-height: 2.3rem;
    }

    
    .ptdauto-box-video .ptdauto-item img {
        height: 153px;
    }

    /*xe mới về*/
    .ptdauto-col-r .ptdauto-item .ptdauto-img img {
        height: 123px;
    }
}

@media only screen and (max-width: 640px) {
    /*tin nổi bật*/
    .ptdauto-hot-news .ptdauto-box-l img {
        height: 400px;
    }

    .ptdauto-hot-news .ptdauto-box-r img {
        height: 199px;
    }

    /*tin theo danh mục*/
    .ptdauto-box-news .ptdauto-box .ptdauto-item img {
        height: 102px;
    }

    /*video*/
    .ptdauto-box-video .ptdauto-item img {
        height: 126px;
    }

    /*xe mới về*/
    .ptdauto-col-r .ptdauto-item .ptdauto-img img {
        height: 102px;
    }
}

@media only screen and (max-width: 576px) {
    /*menu tin tức*/
    .ptdauto-wrapper .ptdauto-col-l .ptdauto-nav-news a {
        font-size: 1.6rem;
        margin: 1.5rem 0;
    }

    /*tin nổi bật*/
    .ptdauto-hot-news .ptdauto-box-l img {
        height: 363px;
    }

    .ptdauto-hot-news .ptdauto-box-l .ptdauto-title-news {
        font-size: 2rem !important;
        line-height: 2.8rem;
    }

    .ptdauto-hot-news .ptdauto-box-r img {
        height: 178px;
    }

    /*tin theo danh mục*/
    .ptdauto-box-news .ptdauto-item .ptdauto-box-img {
        flex-basis: 30%;
    }

    .ptdauto-box-news .ptdauto-item .ptdauto-box-text {
        flex-basis: 68%;
    }

    .ptdauto-box-news .ptdauto-box .ptdauto-item img {
        height: 109px;
    }

    /*video*/
    .ptdauto-box-video .ptdauto-box .ptdauto-item {
        flex-basis: 49%;
    }

    .ptdauto-box-video .ptdauto-item img {
        height: 171px;
    }

    .ptdauto-box-video .ptdauto-box .ptdauto-item:last-child {
        margin-top: 1rem;
    }

    .xe-so-3
    {
        display: none;
    }

    /*xe mới về*/
    .ptdauto-col-r .ptdauto-item .ptdauto-img {
        flex-basis: 30%;
    }

    .ptdauto-col-r .ptdauto-item .ptdauto-info-car {
        flex-basis: 68%;
    }

    .ptdauto-col-r .ptdauto-item .ptdauto-img img {
        height: 109px;
    }
}

@media only screen and (max-width: 480px) {
    .ptdauto-wrapper .ptdauto-col-l .ptdauto-nav-news a {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    /*tin nổi bật*/
    .ptdauto-hot-news .ptdauto-box-l img {
        height: 299px;
    }

    .ptdauto-hot-news .ptdauto-box-r img {
        height: 147px;
    }

    /*tin theo danh mục*/
    .ptdauto-box-news .ptdauto-box .ptdauto-item img {
        height: 90px;
    }

    /*video*/
    .ptdauto-box-video .ptdauto-item img {
        height: 140px;
    }

    /*xe mới về*/
    .ptdauto-col-r .ptdauto-item .ptdauto-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*/
    .ptdauto-hot-news .ptdauto-box-l img {
        height: 259px;
    }

    .ptdauto-hot-news .ptdauto-box-r img {
        height: 127px;
    }

    /*tin theo danh mục*/
    .ptdauto-box-news .ptdauto-item .ptdauto-box-img {
        flex-basis: 35%;
    }

    .ptdauto-box-news .ptdauto-item .ptdauto-box-text {
        flex-basis: 63%;
    }

    .ptdauto-box-news .ptdauto-box .ptdauto-item img {
        height: 91px;
    }

    .ptdauto-box-news .ptdauto-item .ptdauto-box-text .ptdauto-new {
        font-size: 1.4rem;
        line-height: 2.2rem;
    }

    /*video*/
    .ptdauto-box-video .ptdauto-item img {
        height: 120px;
    }

    /*xe mới về*/
    .ptdauto-col-r .ptdauto-item .ptdauto-img {
        flex-basis: 35%;
    }

    .ptdauto-col-r .ptdauto-item .ptdauto-info-car {
        flex-basis: 63%;
    }

    .ptdauto-col-r .ptdauto-item .ptdauto-img img {
        height: 91px;
    }
}
@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*/
    .ptdauto-wrapper .ptdauto-col-l .ptdauto-nav-news a {
        font-size: 1.4rem;
    }

    /*tin nổi bật*/
    .ptdauto-hot-news .ptdauto-box-l img {
        height: 226px;
    }

    .ptdauto-hot-news .ptdauto-box-r img {
        height: 110px;
    }

    /*video*/
    .ptdauto-box-video .ptdauto-item img {
        height: 104px;
    }

    /*xe mới về*/
    .ptdauto-col-r .ptdauto-item .ptdauto-img img {
        height: 79px;
    }
    .ptdauto-box-video .ptdauto-box .ptdauto-item
    {
        flex-basis: 100%;
        margin-bottom: 1em;
    }
    .ptdauto-box-video .ptdauto-box .ptdauto-item img
    {
        height: 170px;
    }
    .xe-so-3
    {
        display: block;
    }

}

