nav {
    position: relative;
    border-bottom: 2px solid var(--xaBlue);
}

.xa-wrapper {
    padding: 1.5rem 0;
}

.xa-wrapper .xa-list-news {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--xaGrayListCars);
    margin-bottom: 2rem;
    border-radius: 4px;
}

.xa-list-news .xa-item {
    flex-basis: 33%;
    margin-bottom: 2.5rem;
    
    padding: 1.5rem;
}

.fix-title
{
    display: block;
    overflow: hidden;
    height: 45px;
}

.xa-list-news .xa-item .xa-date {
    padding: 1rem 0;
    color: var(--xaBreadcrumb);
}

.xa-list-news .xa-item .xa-date i {
    color: var(--xaBreadcrumb);
    margin-right: 0.5rem;
}

.xa-list-news .xa-item .xa-des {
    margin-top: 1rem;
}

.xa-list-news .xa-item .xa-img-news img {
    height: 249px;
    border-radius: 4px;
    margin-bottom: .5em;
}

.xa-pagination {
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 1em;
}

.xa-pagination ul {
    margin-bottom: 0;
}

.item-more
{
    display: block;
    position: relative;
   
}
.xa-img-news img
{
    position: relative;
    display: block;
    overflow: hidden;
}
.tieu-de-tin
{
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    width: 100%;
    padding: .5em;
    border-radius: 0 0 4px 4px;
}
.xa-news
{
    color: #fff !important;
    height: 45px;
    display: block;
    overflow: hidden;
}
.xa-news:hover
{
    color: red !important;
}

/*giao diện cho Mobile*/
@media only screen and (max-width: 1230px) {
    .xa-wrapper {
        padding: 1.5rem 1.5rem 3rem;
    }
}

@media only screen and (max-width: 1024px) {
    .xa-list-news .xa-item .xa-img-news img {
        height: 205px;
    }
}

@media only screen and (max-width: 768px) {
    .xa-wrapper {
        padding: 1.5rem;
    }

    .xa-list-news .xa-item {
        flex-basis: 49%;
        margin-bottom: 3rem;
    }

    .xa-list-news .xa-item .xa-img-news img {
        height: 231px;
    }
}

@media only screen and (max-width: 576px) {
    .xa-wrapper {
        padding: 1.5rem 1rem;
    }

    .xa-list-news .xa-item .xa-img-news img {
        height: 168px;
    }

    .xa-wrapper .xa-list-news {
        margin-bottom: 0;
    }
    .xa-pagination
    {
        margin-top: 1.5em;
    }
}

@media only screen and (max-width: 480px) {
    .xa-list-news .xa-item {
        flex-basis: 100%;
        margin-bottom: 1.5rem;
    }

    .xa-list-news .xa-item .xa-img-news img {
        height: 280px;
    }
    .fix-title
    {
        height: auto;
    }
    .tai-them
    {
        display: block;
        flex-basis: 100%;
    }
    .xa-pagination
    {
        margin-left: 1em;
        margin-right: 1em;
    }
}

@media only screen and (max-width: 420px) {
    .xa-list-news .xa-item .xa-img-news img {
        height: 246px;
    }
}

@media only screen and (max-width: 360px) {
    .xa-list-news .xa-item .xa-img-news img {
        height: 206px;
    }
}

@media only screen and (max-width: 320px) {
    .xa-list-news .xa-item .xa-img-news img {
        height: 180px;
    }
}
