
nav {
    position: relative;
}

.otobacgiang-title h2{
    font-size: 1.3em;
    padding-bottom: 0;
    display: block;
    
    line-height: 35px;
    margin-top: 6px;
}

.otobacgiang-new {
    font-size: 1.5rem;
    color: var(--vtwhite);
    overflow: hidden;
    display: block;
}

a:hover
{
    text-decoration: none;
}
.otobacgiang-col-r .otobacgiang-item .otobacgiang-info-car a:hover {
    color: var(--red-color);
  }
.otobacgiang-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    flex-direction: row-reverse;
   
}

.otobacgiang-wrapper .otobacgiang-col-l {
    flex-basis: 70%;
}

.otobacgiang-wrapper .otobacgiang-col-r {
    flex-basis: 28%;
}

.otobacgiang-wrapper .otobacgiang-col-l .otobacgiang-nav-news {
    margin: 1.5rem 0 2rem;
}

.otobacgiang-wrapper .otobacgiang-col-l .otobacgiang-nav-news a {
    color: var(--kccolorlink);
    text-transform: uppercase;
    font-size: 1.8rem;
    border-right: 1px solid var(--alGrayInfoCars);
    padding: 0 1rem;
}

.otobacgiang-wrapper .otobacgiang-col-l .otobacgiang-nav-news a:first-child {
    padding-left: 0;
}

.otobacgiang-wrapper .otobacgiang-col-l .otobacgiang-nav-news a:last-child {
    padding-right: 0;
    border-right: none;
}

.otobacgiang-wrapper .otobacgiang-col-l .otobacgiang-nav-news a:hover {
    color: var(--kccolorlink);
}
.otobacgiang-car:hover
{
    color: #000;
}
/*nút tải thêm tin*/


/* Style thẻ tab */
.nav-tabs
{
    border-bottom: none !important;
    margin-left: -1em;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover
{
    border: none !important;
    text-transform: uppercase;
    color: #000 !important;
}

.active a
{
    font-size: 1.2em;font-weight: bold;
}

/*tin nổi bật*/
.otobacgiang-hot-news {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.otobacgiang-hot-news .otobacgiang-box-l {
    flex-basis: 68%;
}

.otobacgiang-hot-news .otobacgiang-box-r {
    flex-basis: 30%;
}

.otobacgiang-hot-news a {
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

.otobacgiang-hot-news .otobacgiang-box-l img {
    height: 400px;
}

.otobacgiang-hot-news .otobacgiang-box-l .otobacgiang-title-news {
    margin: 1.5rem 0;
    font-size: 2.4rem !important;
    line-height: 3.2rem;
}

.otobacgiang-hot-news .otobacgiang-box-r .otobacgiang-item {
    margin-bottom: 1.5rem;
}

.otobacgiang-hot-news .otobacgiang-box-r .otobacgiang-item .otobacgiang-new {
    margin-top: 1rem;
}

.otobacgiang-hot-news .otobacgiang-box-r img {
    height: 165px;
}

.otobacgiang-hot-news
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news-vt
{
    flex-basis: 49%;
    margin-bottom: 2em;
    background: #f0eeee;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
}

.news-vt img
{
    overflow: hidden;
    object-fit: cover;
    vertical-align: middle;
    height: 230px;
    transform: scale(1);
    transition: .3s ease;
    border-radius: 5px 5px 0 0;
}
.news-vt img:hover
{
    transform: scale(1.1);
}

.item-newsb
{
    flex-basis: 63%;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 1em;
}

.otobacgiang-des
{
    margin-top: 0.8em;
    height: 66px;
    overflow: hidden;
}

.otobacgiang-car, .otobacgiang-new
{
    height: 44px;
}

.item-newsb a
{
    height: 50px;
    overflow: hidden;
    display: block;
    color: #000;
    padding-top: .6em;
}

.item-newsb a:hover
{
    text-decoration: none;
}

.otobacgiang-title
{
    padding-bottom: 0.8em;
}

/*nút tải thêm xe*/
.nut-tai-them a {
    color: var(--white);

    font-weight: bold;

}

.btn-grad {
    margin: 0 auto;
    padding: 10px 25px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    width: 40%;
    display: block;
    cursor: pointer;
    background: var(--red-color);
    border-radius: 20px;
}

.btn-grad:hover {
    background: red;
    text-decoration: none;
}

/*tin theo danh mục*/
.otobacgiang-col-l .otobacgiang-box-news {
    margin-top: 1.5rem;
}

.otobacgiang-box-news .otobacgiang-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.otobacgiang-box-news .otobacgiang-box .otobacgiang-item {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.otobacgiang-box-news .otobacgiang-box .otobacgiang-item img {
    height: 167px;
}

.otobacgiang-box-news .otobacgiang-box .otobacgiang-item:last-child {
    margin-bottom: 0;
}

.otobacgiang-box-news .otobacgiang-item .otobacgiang-box-img {
    flex-basis: 30%;
}

.otobacgiang-box-news .otobacgiang-item .otobacgiang-box-text {
    flex-basis: 68%;
}

.otobacgiang-box-news .otobacgiang-item .otobacgiang-box-text .otobacgiang-new {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    line-height: 2.6rem;
}

/*video*/

.otobacgiang-box-video {
    margin-top: 1.5rem;
}

.otobacgiang-box-video .otobacgiang-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--alBlue);
    padding: 1rem;
    border-radius: 4px;
}

.otobacgiang-box-video .otobacgiang-box .otobacgiang-item {
    flex-basis: 32%;
}

.otobacgiang-box-video .otobacgiang-box .otobacgiang-item a {
    display: inline-block;
    width: 100%;
}

.otobacgiang-box-video .otobacgiang-box .otobacgiang-item a:hover .otobacgiang-title-video {
    color: var(--alRed);
}

.otobacgiang-box-video .otobacgiang-item img {
    height: 179px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.otobacgiang-box-video .otobacgiang-item .otobacgiang-title-video {
    margin-bottom: 1rem;
    font-weight: bold;
}

/*xe mói về*/

.otobacgiang-col-r .otobacgiang-new-car {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    
}

.otobacgiang-col-r .otobacgiang-new-car .otobacgiang-item {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 0.5em;
    padding-top: 1em;
    flex-direction: row-reverse;
}

.otobacgiang-col-r .otobacgiang-new-car .otobacgiang-item:first-child {
    padding-top: 0;
}

.otobacgiang-col-r .otobacgiang-new-car .otobacgiang-item:last-child {
    border-bottom: none;
}

.otobacgiang-col-r .otobacgiang-item .otobacgiang-img {
    flex-basis: 35%;
}

.otobacgiang-col-r .otobacgiang-item .otobacgiang-info-car {
    flex-basis: 61%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.otobacgiang-col-r .otobacgiang-item .otobacgiang-info-car .otobacgiang-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--red-color);
}

.otobacgiang-col-r .otobacgiang-item .otobacgiang-img img {
    height: 78px;
    border-radius: 4px;
}

.otobacgiang-active-news-menu {
    color: var(--alRed) !important;
    font-weight: 700;
}

.item-newsa a
{
    display: block;
}


/*giao diện cho Mobile*/
@media only screen and (max-width: 1230px) {
    .otobacgiang-wrapper {
        padding: 0 1.5rem 3rem;
        margin-bottom: 0;
    }

    /*tin nổi bật*/
    .otobacgiang-hot-news .otobacgiang-box-l img {
        height: 350px;
    }

    .otobacgiang-hot-news .otobacgiang-box-r img {
        height: 140px;
    }
}

@media only screen and (max-width: 1024px) {
    .otobacgiang-wrapper .otobacgiang-col-l {
        flex-basis: 100%;
    }

    .otobacgiang-wrapper .otobacgiang-col-r {
        flex-basis: 100%;
    }

    /*tin nổi bật*/
    .otobacgiang-hot-news .otobacgiang-box-l img {
        height: 400px;
    }

    .otobacgiang-hot-news .otobacgiang-box-r img {
        height: 165px;
    }

    /*tin theo danh mục*/
    .otobacgiang-box-news .otobacgiang-item .otobacgiang-box-img {
        flex-basis: 25%;
    }

    .otobacgiang-box-news .otobacgiang-item .otobacgiang-box-text {
        flex-basis: 73%;
    }

    .otobacgiang-box-news .otobacgiang-box .otobacgiang-item img {
        height: 160px;
    }

    /*video*/
    .otobacgiang-box-video .otobacgiang-item img {
        height: 207px;
    }

    /*xe mới về*/
    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img {
        flex-basis: 25%;
    }

    .otobacgiang-col-r .otobacgiang-item .otobacgiang-info-car {
        flex-basis: 73%;
    }

    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img img {
        height: 160px;
    }
    .otobacgiang-col-r .otobacgiang-new-car .otobacgiang-item:first-child
    {
        padding-bottom: 1em;
    }
}

@media only screen and (max-width: 768px) {
    .otobacgiang-wrapper {
        padding: 0 1rem 3rem;
    }

    /*tin nổi bật*/
    .otobacgiang-hot-news .otobacgiang-box-l {
        flex-basis: 100%;
        margin-bottom: 1.5rem;
    }

    .otobacgiang-hot-news .otobacgiang-box-l img {
        height: 460px;
    }

    .otobacgiang-hot-news .otobacgiang-box-r {
        flex-basis: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .otobacgiang-hot-news .otobacgiang-box-r .otobacgiang-item {
        flex-basis: 49%;
    }

    .otobacgiang-hot-news .otobacgiang-box-r img {
        height: 240px;
    }

    .otobacgiang-hot-news .otobacgiang-box-l .otobacgiang-title-news {
        font-size: 2.1rem !important;
        line-height: 3rem;
    }

    /*tin theo danh mục*/
    .otobacgiang-col-l .otobacgiang-box-news {
        margin-top: 0;
    }

    .otobacgiang-box-news .otobacgiang-box .otobacgiang-item img {
        height: 123px;
    }

    .otobacgiang-box-text .otobacgiang-des {
        display: none;
    }

    .otobacgiang-box-news .otobacgiang-item .otobacgiang-box-text .otobacgiang-new {
        font-size: 1.5rem;
        line-height: 2.3rem;
    }

    .otobacgiang-new
    {
        height: 44px;
    }
    .otobacgiang-des
    {
        height: 66px;
        overflow: hidden;
    }

    /*xe mới về*/
    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img img {
        height: 123px;
    }
    
}

@media only screen and (max-width: 640px) {
    /*tin nổi bật*/
    .otobacgiang-hot-news .otobacgiang-box-l img {
        height: 400px;
    }

    .otobacgiang-hot-news .otobacgiang-box-r img {
        height: 199px;
    }

    /*tin theo danh mục*/
    .otobacgiang-box-news .otobacgiang-box .otobacgiang-item img {
        height: 102px;
    }

    /*video*/
    .otobacgiang-box-video .otobacgiang-item img {
        height: 126px;
    }

    /*xe mới về*/
    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img img {
        height: 102px;
    }
    .news-vt
    {
        flex-basis: 49%;
    }
}

@media only screen and (max-width: 576px) {
    /*menu tin tức*/
    .otobacgiang-wrapper .otobacgiang-col-l .otobacgiang-nav-news a {
        font-size: 1.6rem;
        margin: 1.5rem 0;
    }

    /*tin nổi bật*/
    .otobacgiang-hot-news .otobacgiang-box-l img {
        height: 363px;
    }

    .otobacgiang-hot-news .otobacgiang-box-l .otobacgiang-title-news {
        font-size: 2rem !important;
        line-height: 2.8rem;
    }

    .otobacgiang-hot-news .otobacgiang-box-r img {
        height: 178px;
    }

    /*tin theo danh mục*/
    .otobacgiang-box-news .otobacgiang-item .otobacgiang-box-img {
        flex-basis: 30%;
    }

    .otobacgiang-box-news .otobacgiang-item .otobacgiang-box-text {
        flex-basis: 68%;
    }

    .otobacgiang-box-news .otobacgiang-box .otobacgiang-item img {
        height: 109px;
    }

    /*video*/
    .otobacgiang-box-video .otobacgiang-box .otobacgiang-item {
        flex-basis: 49%;
    }

    .otobacgiang-box-video .otobacgiang-item img {
        height: 171px;
    }

    .otobacgiang-box-video .otobacgiang-box .otobacgiang-item:last-child {
        margin-top: 1rem;
    }

    /*xe mới về*/
    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img {
        flex-basis: 30%;
    }

    .otobacgiang-col-r .otobacgiang-item .otobacgiang-info-car {
        flex-basis: 68%;
    }

    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img img {
        height: 109px;
    }
    .news-vt img
    {
        height: 250px;
    }
    .news-vt
    {
        flex-basis: 100%;
    }
    .otobacgiang-des
    {
        height: auto;
    }
    .item-newsb a
    {
        height: auto;
    }
}

@media only screen and (max-width: 480px) {
    .otobacgiang-wrapper .otobacgiang-col-l .otobacgiang-nav-news a {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    /*tin nổi bật*/
    .otobacgiang-hot-news .otobacgiang-box-l img {
        height: 299px;
    }

    .otobacgiang-hot-news .otobacgiang-box-r img {
        height: 147px;
    }

    /*tin theo danh mục*/
    .otobacgiang-box-news .otobacgiang-box .otobacgiang-item img {
        height: 90px;
    }

    /*video*/
    .otobacgiang-box-video .otobacgiang-item img {
        height: 140px;
    }

    /*xe mới về*/
    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img img {
        height: 90px;
    }
}

@media only screen and (max-width: 420px) {
    /*tin nổi bật*/
    .otobacgiang-hot-news .otobacgiang-box-l img {
        height: 259px;
    }

    .otobacgiang-hot-news .otobacgiang-box-r img {
        height: 127px;
    }

    /*tin theo danh mục*/
    .otobacgiang-box-news .otobacgiang-item .otobacgiang-box-img {
        flex-basis: 35%;
    }

    .otobacgiang-box-news .otobacgiang-item .otobacgiang-box-text {
        flex-basis: 63%;
    }

    .otobacgiang-box-news .otobacgiang-box .otobacgiang-item img {
        height: 91px;
    }

    .otobacgiang-box-news .otobacgiang-item .otobacgiang-box-text .otobacgiang-new {
        font-size: 1.4rem;
        line-height: 2.2rem;
    }

    /*video*/
    .otobacgiang-box-video .otobacgiang-item img {
        height: 120px;
    }

    /*xe mới về*/
    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img {
        flex-basis: 35%;
    }

    .otobacgiang-col-r .otobacgiang-item .otobacgiang-info-car {
        flex-basis: 63%;
    }

    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img img {
        height: 91px;
    }
    .news-vt
    {
        flex-basis: 100%;
    }
    .otobacgiang-new, .otobacgiang-des
    {
        height: auto;
    }
    .btn-grad
    {
        width: 100%;
    }
    .otobacgiang-wrapper .otobacgiang-col-r
    {
        margin-top: 2em;
    }
}

@media only screen and (max-width: 360px) {
    /*menu tin tức*/
    .otobacgiang-wrapper .otobacgiang-col-l .otobacgiang-nav-news a {
        font-size: 1.4rem;
    }

    /*tin nổi bật*/
    .otobacgiang-hot-news .otobacgiang-box-l img {
        height: 226px;
    }

    .otobacgiang-hot-news .otobacgiang-box-r img {
        height: 110px;
    }

    /*video*/
    .otobacgiang-box-video .otobacgiang-item img {
        height: 104px;
    }

    /*xe mới về*/
    .otobacgiang-col-r .otobacgiang-item .otobacgiang-img img {
        height: 79px;
    }
    .item-newsa, .item-newsb
    {
        flex-basis: 100%;
    }
    .item-newsb a
    {
        height: auto;
    }
    .news-vt img
    {
        height: 180px;
    }

}

