@font-face {
    font-family: baomoi;
    src: url(../font/Baomoi_gdi.otf);
}

@font-face {
    font-family: baomoi;
    src: url(../font/Baomoi_gdi.otf);
}

:root {
    --xaBlack: #3c3d3c;
    --xaBlackF: #242529;
    --xaWhite: #ffffff;
    --xaBlue: #dfdede;
    --xaBreadcrumb: #999;
    --red: #0f95ea;
    --yellow-color: #ffe900;
    --xaListLink: #293241;
}

html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    line-height: 2.3rem;
    font-size: 1.5rem;
    font-family: 'baomoi', sans-serif;
    text-decoration: none;
}

h1 {
    font-family: 'baomoi', sans-serif;
    font-size: 2.0rem;
    text-transform: uppercase;
    line-height: 2.8rem;
}

h2 {
    font-family: 'baomoi', sans-serif;
    font-size: 2.0rem;
    text-transform: uppercase;
    line-height: 2.8rem;
    color: var(--xaRed);
}

h3 {
    font-family: 'baomoi', sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    text-transform: uppercase;
}
h1 span, h2 span
{
    padding-right: 15px;
    z-index: 1;
    position: relative;
    display: inline-block;
    font-size: 1.1em;
}

.anphudat-title span.news-01
{
    color: #fff;
}
.anphudat-clear-fix {
    clear: both;
}

a {
   cursor: pointer;
}

a:hover {
    color: var(--red);
}

ul li {
    list-style: none;
}

img {
    width: 100%;
    vertical-align: middle;
    object-fit: cover;
}

.anphudat-active-menu-make {
    opacity: 1 !important;
}

select {
    height: 35px;
    border: 1px solid #c7c5c5;
}

.anphudat-box-btn {
    width: 100%;
    text-align: center;
   
}

.anphudat-btn-views {
    display: inline-block;
    background: var(--red);
    color: var(--xaWhite);
    padding: 0.8rem 6rem;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    border-radius: 20px;
}

.anphudat-btn-views:hover {
    
    color: black;
}

.anphudat-container {
    width: 1200px;
    margin: 0 auto;
}

.anphudat-loading-img {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    background: rgba(33,33,33,.5);
    display: none;
}

.anphudat-box-loading {
    background-repeat:no-repeat;
    background-attachment: fixed;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index: 999999;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anphudat-car, .anphudat-car-mb, .anphudat-news {
    font-family: 'baomoi', sans-serif;
    text-transform: capitalize;
    color: black;
    font-size: 2rem;
    line-height: 2.4rem;
    overflow: hidden;
    font-weight: bold;
    margin-top: 8px;
}

.anphudat-price {
    font-family: 'neoSansIntelBold', sans-serif;
    color: var(--xaRed);
    text-transform: capitalize;
    text-align: right;
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 2.5rem;
}

.anphudat-title {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    color: var(--xaRed);
    position: relative;
}


.anphudat-polygon {
    width: 5px;
    height: 15px;
    background: var(--xaRed);
    
    margin-right: 0.5rem;
}

.anphudat-lazy-salon
{
    margin-top: 1em;
}
.anphudat-video
{
    margin-left: 0.5em;
    margin-right: 0.5em;
}

.al-title-video
{
    display: block;
    overflow: hidden;
    height: 70px;
    text-overflow: ellipsis;
    font-size: 0.9em;
    line-height: 1em;
}

.al-title-video a
{
    display: inline;
}

/*quy trình mua xe tại Trần Hùng Auto*/
.quytrinh1
{
    width: 1200px;
    margin: 0 auto;
}
.step {
    padding: 4rem 0;
    
    background-size: cover;
    background-position: bottom;
    position: relative;
    z-index: 0;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
   
    height: 100%;
    display: block;
    z-index: -1;
}

.step h2 {
    text-align: center;
    display: inline-block;
    width: 100%;
}

.step-list {
    
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
}

.step-item {
    counter-increment: step;
    position: relative;
    flex-basis: 22%;
    text-align: center;
}

.step-item::before {
    content: counter(step, decimal-leading-zero);
    font-size: 100px;
    font-weight: 700;
    top: 130px;
    color: darkred;
    position: relative;
    opacity: .3;
}


*, ::after, ::before {
    box-sizing: border-box;
}

.step-title {
    font-size: 2rem;
    line-height: 2.6rem;
    font-weight: 700;
    margin: 2rem 0;
    text-transform: capitalize;
}



/*phân trang*/
.anphudat-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.anphudat-pagination ul li a {
    display: inline-block;
    text-align: center;
    color: var(--xaBlack);
    width: 3.5rem;
    line-height: 3.5rem;
    margin: 0 0.5rem 0 0;
    background: var(--xaWhite);
    
    border: 1px solid var(--xaGrayListCars);
}

.anphudat-pagination ul li a:hover {
    background: var(--xaBlue) !important;
    color: var(--xaWhite);
}

.anphudat-active-pag {
    background: var(--xaBlue) !important;
    color: var(--xaWhite) !important;
    font-weight: 700;
}

/*tin tức và tiktok*/
.tin-tuc
{
    padding: 1em;
    background: linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)), transparent url(../images/trang-chu/bg-news.png) center center/cover no-repeat fixed;
}

.col-tin-tuc
{
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.list-news
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1em;
}
.item-list-news
{
    flex-basis: 32%;
    margin-bottom: 2em;
    background: aliceblue;
    padding: .5em;
    border-radius: 6px;
}
.item-list-news a, .item-list-news span
{
    color: black;
    line-height: 0.6em;
}
.item-list-news img
{
    margin-bottom: 0.5em;
    height: 220px;
}
.item-list-news a:hover
{
    color: #0f95ea;
}

.item-list-news strong
{
    text-transform: uppercase;
    height: 42px;
    overflow: hidden;
    display: block;
}
.tiktok-icon
{
    background: var(--xaBlue);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin-left: 0.8em;
    text-align: center;
}
.tiktok-icon img
{
    width: 17px;
    height: 20px;
    object-fit: cover;
    text-align: center;
}

.car-name-home
{
    display: inline-block;
    height: 45px;
    overflow: hidden;
}

.mo-ta-ngan
{
    color: black;
    margin-top: 1em;
    line-height: 22px;
    display: block;
    overflow: hidden;
    height: 65px;
}
/*breadcrumb*/
.anphudat-breadcrumb {
    padding: 1.5rem 0;
    text-transform: capitalize;
}

.anphudat-breadcrumb .fa-angle-right {
    margin: 0 3px;
    color: var(--xaBreadcrumb);
}

.item-list-news span
{
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    -webkit-line-clamp: 3;
    height: 60px;
     display: -webkit-box;
    -webkit-box-orient: vertical;
}
/*quảng cáo*/
.anphudat-qc {
    margin-top: 2rem;
}
.anphudat-qc img{
   
}

/*nút gọi điện*/
.contact-box {
    position: fixed;
    bottom: 20px;
    z-index: 100;
    left: 0;
}

@keyframes img-phone {
    0% {
        transform: rotate(0) scale(1) skew(1deg);
    }
    10% {
        transform: rotate(-25deg) scale(1) skew(1deg);
    }
    20% {
        transform: rotate(25deg) scale(1) skew(1deg);
    }
    30% {
        transform: rotate(-25deg) scale(1) skew(1deg);
    }
    40% {
        transform: rotate(25deg) scale(1) skew(1deg);
    }
    50% {
        transform: rotate(0) scale(1) skew(1deg);
    }
    100% {
        transform: rotate(0) scale(1) skew(1deg);
    }
}

.kh-phone {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    left: 0;
    bottom: 0;
    display: block;
}

@keyframes zoomEffect {
    0% {
        transform: scale(.9)
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent
    }
    100% {
        transform: scale(.9);
        box-shadow: 0 0 0 0 transparent
    }
}

.phone-box {
    width: 65px;
    height: 65px;
    top: 12px;
    left: 12px;
    position: absolute;
    background-color: rgba(255,0,0, .9);
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all .5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: zoomEffect 1.3s infinite;
    animation: zoomEffect 1.3s infinite;
    opacity: .7;
    box-shadow: 0 0 0 0 red;
}

.img-phone {
    background-color: red;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 25px;
    left: 25px;
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    -webkit-animation: img-phone 1s infinite ease-in-out;
    animation: img-phone 1s infinite ease-in-out;
}

.img-phone a {
    display: block;
    line-height: 37px;
}

.img-phone img {
    max-height: 25px;
    max-width: 27px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

/*chat zalo*/
.kh-zalo {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    left: 0;
    bottom: 0;
    display: block;
}

.kh-zalo .phone-box {
    box-shadow: 0 0 0 0 #0091ff;
    background-color: rgba(0,145,255,.9);
}

.kh-zalo .img-phone {
    background-color: #0091ff;
}

/*chat messenger fb*/
.kh-fbm {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    left: 0;
    bottom: 0;
    display: block;
}

.kh-fbm .phone-box {
    box-shadow: 0 0 0 0 #126bd1;
    background-color: rgba(18,107,209,.9);
}

.kh-fbm .img-phone {
    background-color: #126bd1;
}

.kh-fbm .img-phone img {
    max-height: 45px;
    max-width: 40px;
}

/*nút lên đầu trangr*/
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 14px;
    border: none;
    outline: none;
    background: #c7c5c5;
    text-align: center;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--red);
}
#myBtn i
{
    color: red;
}
#myBtn:hover {
    background-color: #e5c231;
}

/*giao diện cho phiên bản mobile*/
@media only screen and (max-width: 1230px) {
    .anphudat-container {
        width: 100%;
    }
    .quytrinh1
    {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /*breadcrumb*/
    .anphudat-breadcrumb {
        padding: 1.5rem 1.5rem 0.5rem;
    }
}
@media only screen and (max-width: 1200px)
{
    .tin-tuc
    {
        width: 100%;
        display: inline-flex;
    }
    .tin-cay-col, .title-tin-cay
    {
        width: 100%;
        padding-left: 0.6em;
        padding-right: 0.6em;
    }
    .col-s h3
    {
        height: 48px;
    }
    .col-s p
    {
        height: 69px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}
@media only screen and (max-width: 1024px) {
    * {
        font-size: 1.4rem;
        line-height: 2.2rem;
    }

    .anphudat-title {
        margin-bottom: 1.5rem;
    }
    .col-tin-tuc
    {
        width: 100%;
    }
    .title-dang-ban
    {
        display: block;
        overflow: hidden;
        height: 48px;
        text-overflow: ellipsis;
    }
}

@media only screen and (max-width: 990px)
{
    .anphudat-list-cars .anphudat-item
    {
        flex-basis: 100% !important;
    }
}
@media only screen and (max-width: 870px)
{
    .item-list-news img
    {
        height: 171px;
    }
}
@media only screen and (max-width: 789px)
{
    .item-list-news img
    {
        height: 131px;
    }
    .col-s
    {
        flex-basis: 49%;
        margin-bottom: 1em;
    }
}

@media only screen and (max-width: 768px) {
    /*breadcrumb*/
    .anphudat-breadcrumb {
        padding: 1.5rem 1.5rem 0;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 2.8rem;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 2.8rem;
    }

    .anphudat-title h2 {
        font-size: 1.8rem;
        line-height: 2.8rem;
    }

    .anphudat-car, .anphudat-news {
        font-size: 1.5rem;
        line-height: 2.3rem;
    }

    .anphudat-price {
        font-size: 1.5rem;
        line-height: 2.3rem;
    }

    select {
        height: 35px;
    }

    .anphudat-polygon {
        width: 5px;
        height: 13px;
    }
    
    /*tin tức & tiktok*/
    .tin, .tiktok, .anphudat-list-cars .anphudat-item
    {
        flex-basis: 100% !important;
    }
    /*ảnh tin tức*/
    .item-list-news img
    {
        height: 200px;
    }
    .step-item
    {
        flex-basis: 49%;
       
    }
}

@media only screen and (max-width: 576px) {
    /*breadcrumb*/
    .anphudat-breadcrumb {
        padding: 1.5rem 1rem 0;
    }
    /*bỏ chiều cao Tên xe*/
    .anphudat-car
    {
        height: auto;
        font-size: 1.3em;
    }
}

@media only screen and (max-width: 480px)
{
    .item-list-news img
    {
        height: 131px;
    }
    .anphudat-box-btn
    {
        margin-top: 0;
        margin-bottom: 0;
    }
    .news-list-2
    {
        margin-bottom: 0 !important;
    }
    .anphudat-btn-views
    {
        width: 100%;
    }
}
@media only screen and (max-width: 420px)
{
    .item-list-news img
    {
        height: 190px;
    }
    .anphudat-car
    {
        font-size: 1.2em;
    }
    .col-s
    {
        flex-basis: 100%;
       
    }
    .title-tin-cay h2
    {
        font-size: 1.1em;
    }
}

@media only screen and (max-width: 360px)
{
    .title-dang-ban
    {
        display: inline;
        height: auto;
    }
}




