﻿
#feature-news {
    padding-left: 10%;
}

#most-view {
    padding-right: 10%;
}

#home #feature-news .feature-news-name {
    font-size: 22px;
    color: #232323;
    font-weight: 600;
    font-family: "Lora";
}

#home #feature-news .feature-news-name {
    border-bottom: 3px solid #e2e2e2;
    position: relative;
}

#home #feature-news .feature-news-name:before {
    position: absolute;
    background: #0072bc;
    height: 3px;
    content: '';
    width: 10%;
    bottom: -3px;
    left: 0;
}

#home .image-container img {
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

#home .feature-news-big {
    margin-top: 2rem;
}

#home .feature-news-big img {
    object-fit: cover;
    width: 100%;
    height: 310px;
    object-position: 0 0;
}

#feature-news .feature-news-big .cate-name {
    position: relative
}

#feature-news .feature-news-big .cate-name:before {
    position: absolute;
    height: 4px;
    background: #0072bc;
    content: "";
    width: 8%;
    top: 43%;
    display: block;
}

#feature-news .feature-news-big .cate-name a {
    padding-left: 10%;
    font-size: 16px;
    color: #0072bc;
    font-weight: 400;
    font-family: "Roboto";
    text-decoration: none;
}

#feature-news .feature-news-big .cate-title a {
    line-height: 1.3;
    font-size: 24px;
    color: #121212;
    font-weight: 600;
    font-family: "Lora";
}

#feature-news .feature-news-big .cate-title a.sapo {
    -webkit-line-clamp: 8;
}

#home #feature-news hr.feature-news-separate {
    margin-top: 2rem;
    margin-bottom: 0;
    border-top: 2px solid #e2e2e2;
}

#feature-news .feature-news-small {
    margin-top: -1rem;
}

#home .feature-news-small img {
    object-fit: cover;
    width: 100%;
    height: 80px;
    object-position: 0 0;
}

#home .feature-news-small .cate-title {
    line-height: 1.3;
    -webkit-line-clamp: 3;
    font-size: 16px;
    color: #121212;
    font-weight: 600;
    font-family: "Lora";
}

#home .feature-news-small .cate-link {
    font-size: 16px;
    color: #0072bc;
    font-weight: 400;
    font-family: "Roboto";
}

#home .feature-news-small .row {
    margin-top: 3rem;
}

#feature-news .cate-title a {
    text-decoration: none;
}

#feature-news .feature-news-small .cate-title {
    text-decoration: none;
}

#feature-news .feature-news-small .cate-link {
    text-decoration: none;
}

#feature-news .feature-news-big .cate-title.hover a {
    color: #0072bc;
}

#feature-news .feature-news-small .cate-title.hover {
    color: #0072bc;
}

.banner-relate {
    width:100%;
}
@media screen and (max-width: 1023px) {
    #feature-news, #most-view {
        padding: 0 5%;
    }
}

@media screen and (max-width: 813px) {
    #home .feature-news-big img {
        height: unset;
    }

    #home .feature-news-small img {
        height: unset;
    }

    #feature-news .feature-news-small div:last-child hr {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .pc-only {
        display: none;
    }

    #feature-news .feature-news-big .cate-title .cate-link {
        font-size: 16px;
        color: #0072bc;
        font-weight: 400;
        font-family: "Roboto";
    }

    #home #feature-news .feature-news-name:before {
        width: 20%;
    }
}

@media screen and (max-width: 769px) {
    #home .feature-news-small img {
        height: 130px;
    }

    #home .feature-news-small .cate-title {
        -webkit-line-clamp: 4;
    }

    #feature-news .feature-news-small hr {
        margin-top: 2rem;
    }

    #feature-news .feature-news-small .row {
        margin-top: 0rem;
    }

    #feature-news .feature-news-small .title-container:first-child .row {
        margin-top: 2.5rem;
    }

    /* Sắp xếp lại thứ tự*/
    #feature-news {
        order: 1;
    }

    #most-view {
        margin-top: 2rem;
        order: 4;
    }

    #big-banner-slide {
        order: 2;
        margin-top: 3rem;
    }

    #service {
        order: 3;
    }
}

@media screen and (max-width: 654px) {
    #home .feature-news-small .cate-title {
        -webkit-line-clamp: 4;
    }

    #home .feature-news-small img {
        height: 110px;
    }

    #home #feature-news hr.feature-news-separate {
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    #feature-news .feature-news-small hr {
        margin-top: 2rem;
        margin-bottom: 0;
    }

    #home .feature-news-small .row {
        margin-top: 1rem;
    }

    #feature-news .feature-news-small .title-container:first-child .row {
        margin-top: 3rem;
    }

    #home .feature-news-big {
        margin-top: 1.5rem;
    }

    #feature-news .feature-news-big .cate-title a {
        font-size: 22px;
        color: #121212;
        font-weight: 600;
        font-family: "Lora";
    }
}

@media screen and (max-width: 415px) {
    #feature-news .feature-news-small hr {
        margin-top: 1.75rem;
    }

    #home #feature-news .feature-news-name:before {
        width: 25%;
    }

    #p-menu .home-icon {
        display: none;
    }
    #my-navbar .home-icon {
        font-size: 20px;
    }
}

@media screen and (max-width: 376px) {
    #feature-news .feature-news-small .title-container:first-child .row {
        margin-top: 2.5rem;
    }

    #home .feature-news-small .cate-title {
        -webkit-line-clamp: 3;
    }

    #home .feature-news-small img {
        height: 70px;
    }

    #feature-news .feature-news-small .col-8 {
        padding-right: 10px;
    }

    #feature-news .feature-news-small .col-4 {
        padding-left: 10px;
    }

    #home #feature-news .feature-news-name:before {
        width: 25%;
    }
}

@media screen and (max-width: 320px) {
    #home .feature-news-small .cate-title {
        -webkit-line-clamp: 2;
    }

    #home #feature-news .feature-news-name:before {
        width: 25%;
    }
}

@media screen and (max-width: 281px) {
    #home #feature-news .feature-news-name {
        font-size: 14px;
    }

    #feature-news .feature-news-big .cate-title a {
        font-size: 13px;
    }

    #home .feature-news-small .cate-title {
        font-size: 13px;
    }

    #home .feature-news-small .cate-link {
        font-size: 12px;
    }

    #home .feature-news-small .cate-title {
        -webkit-line-clamp: 3;
    }

    #feature-news .feature-news-big .cate-title .cate-link {
        font-size: 12px;
    }
}
