/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Các tùy chỉnh CSS của giao diện nên để vào đây */
.groupnews-loop:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.groupnews-loop {
    padding : 30px;
    margin-bottom: 0px!important;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.groupnews-loop a img {
    border-radius: 6px;
    object-fit: cover;
    width: 250px;
    height: 100%;
    left: 0;
    top: 0;
    margin-right: 30px;
}

.title-groupnews a{
    padding-top: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 140%;
}

.font-size-publtime {
    margin-top: 5px;
    color: #6c757d;
    font-size: 14px;
    line-height: 150%;
}

.font-size-hometext {
    font-weight: 400;
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    line-height: 150%;
    display: block;
    overflow: hidden;
    margin-bottom: 0;
}

.hitstotal-news {
    border-radius: 6px;
    background: #fff3cd;
    padding: 30px 30px 45px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.hitstotal-news .box-content {
        grid-template-columns: 580px repeat(2, 1fr);
}

.hitstotal-news .title:first-letter {
    color: #000;
    text-transform: uppercase;
}

.box-heading .title {
    transition: all .3s;
}

.hitstotal-news .title {
    color: #ec1c24;
    font-size: 26px;
    font-weight: 500;
    line-height: 120%;
    display: block;
}

.hitstotal-news .title a{
    color:  #ec1c24;
    font-size: 26px;
    font-weight: 500;
    line-height: 120%;
    display: block;
}

.hitstotal-news .box-content {
    margin-top: 20px;
    display: grid;
    gap: 30px 40px;
    counter-reset: counter;
    grid-template-columns: 580px repeat(2, 1fr);
    position: relative;
}

.hitstotal-news .box-content::before {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, .1);
    left: 600px;
    top: 0;
}

.hitstotal-news .box-content .story:first-child {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    padding-left: 42px;
}

.hitstotal-news .box-content .story {
    position: relative;
    padding-left: 37px;
}

.hitstotal-news .box-content .story:first-child::before {
    font-size: 40px;
    border-bottom: 1px solid #212529;
}

.hitstotal-news .box-content .story:before {
    counter-increment: counter;
    content: counter(counter);
    position: absolute;
    font-size: 20px;
    font-weight: 500;
    left: 0;
}

.hitstotal-news .box-content .story:first-child .story__thumb {
    float: right;
    margin-left: 20px;
}

.hitstotal-news .box-content .story__thumb {
    width: 300px;
}

.story figure {
    margin: 0;
}

.story__thumb {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.story__thumb::before {
    padding-bottom: 66.667%;
    content: "";
    display: block;
}

.story__thumb a {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}

.story__thumb img {
    position: absolute;
    object-fit: cover;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}

.story__heading {
    display: flex;
}

.hitstotal-news .box-content .story:first-child .story__heading a {
    font-size: 18px;
    font-weight:600;
}

.hitstotal-news .box-content .story__heading a {
    padding-top: 0;
}

.story__heading a {
    display: block;
    transition: .5s;
    color:  #212529;
    font-size: 16px;
    font-weight:500;
    padding-top: 8px;
}

.story::after {
    display: block;
    clear: both;
    content: "";
}

.hitstotal-news .box-content .story {
    position: relative;
    padding-left: 37px;
}

.hitstotal-news .box-content .story:before {
    counter-increment: counter;
    content: counter(counter);
    position: absolute;
    font-size: 20px;
    font-weight: 500;
    left: 0;
}

.hitstotal-news .box-content .story:before {
    counter-increment: counter;
    content: counter(counter);
    position: absolute;
    font-size: 20px;
    font-weight: 500;
    left: 0;
}

.timeline .title {
    color:  #ec1c24;
    font-size: 50px;
    font-weight: 500;
    line-height: 120%;
    display: block;
}

.timeline .title a {
    font-family: "Canela Medium", Arial, Helvetica, sans-serif;
    color:  #ec1c24;
    font-size: 50px;
    font-weight: 500;
    line-height: 120%;
    display: block;
}

.main-col:not(.article)>:last-child {
    margin-bottom: 0;
}

/*.timeline .title:first-letter {
    color: #000;
    text-transform: uppercase;
}
*/
.timeline .box-content {
    margin-top: 20px;
}

.timeline .story:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.timeline .story__thumb {
    width: 250px;
    float: left;
    margin-right: 30px;
}

.story__thumb::before {
    padding-bottom: 66.667%;
    content: "";
    display: block;
}

.timeline .story__heading a {
    padding-top: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 140%;
}

.story__heading+time {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    color: #6c757d;
    margin-top: 5px;
    display: block;
    font-size: 14px;
    line-height: 150%;
}

.timeline .story__summary {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.story__summary {
    display: flex;
    font-weight: 400;
    color:  #6c757d;
    font-size: 14px;
    margin-top: 5px;
    line-height: 150%;
}

.story__summary>* {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    display: block;
    overflow: hidden;
    margin-bottom: 0;
    font-weight:  400;
    font-size: 14px;
    color:  #6c757d;
}

.timeline .story {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid  #e9ecef;
}

.story__heading a:hover {
    color: #ec1c24 !important;
}

.story__thumb a:hover {
    opacity: .85;
}

.multi-news .box-heading {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    gap: 10px;
}

.multi-news .box-heading .title,
.multi-news .box-heading .title a {
    color:  #ec1c24;
    font-size: 24px;
    font-weight: 500;
    line-height: 120%;
    display: block;
    position: relative;
    max-width: 300px;
}

/*.multi-news .box-heading .title:first-letter {
    color: #000;
    text-transform: uppercase;
}*/

.multi-news .box-heading::after {
    position: relative;
    content: "";
    height: 8px;
    width: 100%;
}

.multi-news .box-heading {
    margin-top: 15px;
    margin-bottom: 15px;
}

.multi-news:first-child .box-heading {
    margin-top: 0;
}

@media (min-width: 1218px) {
    .hitstotal-news .box-content::before {
        position:absolute;
        content: "";
        width: 1px;
        height: 100%;
        background: rgba(0,0,0,.1);
        left: 600px;
        top: 0
    }
    .hitstotal-news .box-content::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        background: rgba(0, 0, 0, .1);
        right: 245px;
        top: 0;
    }
    .hitstotal-news .box-content .story:nth-child(5n+4) .story__heading::before,.hitstotal-news .box-content .story:nth-child(5n+5) .story__heading::before {
        position: absolute;
        content: "";
        width: calc(100% + 0px);
        height: 1px;
        background: rgba(0, 0, 0, .1);
        top: -15px;
        left: 10px;
    }
}

@media (max-width: 1148px) {
    .hitstotal-news .box-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .hitstotal-news .box-content .story:first-child {
        grid-row: 1 / 3;
        grid-column: 1 / 3;
    }
    .hitstotal-news .box-content::before {
        display: none;
    }
    .hitstotal-news .box-content::before {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        background: rgba(0, 0, 0, .1);
        left: 600px;
        top: 0;
    }
    .hitstotal-news .box-content::after {
        display: none;
    }
    .hitstotal-news .box-content::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        background: rgba(0, 0, 0, .1);
        right: 245px;
        top: 0;
    }
    .hitstotal-news .box-content::before {
        position:absolute;
        content: "";
        width: 1px;
        height: 100%;
        background: rgba(0,0,0,.1);
        left: 600px;
        top: 0
    }
    .hitstotal-news .box-content::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        background: rgba(0, 0, 0, .1);
        right: 245px;
        top: 0;
    }
    .hitstotal-news .box-content .story:nth-child(5n+4) .story__heading::before,.hitstotal-news .box-content .story:nth-child(5n+5) .story__heading::before {
        position: absolute;
        content: "";
        width: calc(100% + 0px);
        height: 1px;
        background: rgba(0, 0, 0, .1);
        top: -15px;
        left: 10px;
    }
}

@media (max-width: 768px) {
    .timeline {
        margin-bottom: 30px!important;
    }
}

@media (max-width: 610px) {
    .hitstotal-news .box-content {
        grid-template-columns: repeat(1, 1fr);
    }
    .hitstotal-news .box-content .story:first-child {
        grid-row: 1 / 3;
        grid-column: 1 / 2;
    }
}

@media (max-width: 599px) {
    .story__heading {
        display: inline-block;
        margin-top: 10px;
    }
    .timeline .story__thumb {
        width: 100%;
    }
}

@media (max-width: 448px) {
    .hitstotal-news .box-content .story__thumb {
        width: 100%;
    }
}