﻿/**
 * 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
 */

.box-large-thumb{
    position: relative;
    height: auto;
    overflow: hidden;
    padding-top: 250px;
}

.box-large-thumb img{
    right: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    position: absolute;
    object-position: 50% 50%;
    object-fit: cover;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
}

.listcat-box-large p{
    margin-top: 5px;
}

.listcat-box-large h3{
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    margin: 10px 0 4px;
}

.listcat-box-large p{
    color: #444;
    min-height: 63px;
}

.related{
    margin: 0;
    padding: 0;
}

.related li{
    display: flex;
    width: 100%;
    margin-bottom: 15px;
}

.related li:last-child{
    margin-bottom: 0;
}

.related img{
    margin-right: 10px;
}

.related .related-meta a{
    font-weight: 500;
}

.related .post-time{
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #555;
}

.post-info{
    display: flex;
    font-size: 13px;
}

.post-info > div{
    margin: 0 4px;
}

.news-groups-type1{
    position: relative;
    margin-bottom: 20px;
}

.news-groups-type1 img{
    width: 100%;
}

.news-groups-type1 a{
    color: #fff;
}

.news-groups-type1 .box-first{
    position: relative;
    height: auto;
    overflow: hidden;
    padding-top: 450px;
}

.news-groups-type1 .box-second{
    position: relative;
    height: auto;
    overflow: hidden;
    padding-top: 260px;
    margin-bottom: 10px;
}

.news-groups-type1 .box-loop{
    position: relative;
    height: auto;
    overflow: hidden;
    padding-top: 180px;
}

.news-groups-type1 .box-first img,
.news-groups-type1 .box-second img,
.news-groups-type1 .box-loop img{
    right: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    position: absolute;
    object-position: 50% 50%;
    object-fit: cover;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
}

.news-groups-type1 .box-first:hover img,
.news-groups-type1 .box-second:hover img,
.news-groups-type1 .box-loop:hover img{
    transform: scale(1.1);
    -webkit-filter: grayscale(0);
}

.news-groups-type1 .box-first > a:before,
.news-groups-type1 .box-second > a:before,
.news-groups-type1 .box-loop > a:before{
    position: absolute;
    content: '';
    background: -webkit-linear-gradient(0deg,rgba(0,0,0,0.7),rgba(0,0,0,0) 60%,rgba(0,0,0,0));
    background: linear-gradient(0deg,rgba(0,0,0,0.7),rgba(0,0,0,0) 60%,rgba(0,0,0,0));
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.news-groups-type1 .meta-info{
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 20px;
    color: #fff;
    z-index: 999;
}

.news-groups-type1 .box-loop .meta-info{
    padding: 10px 20px;
}

.news-groups-type1 .meta-info-cat{
    transition: background-color 0.2s ease;
    -webkit-transition: background-color 0.2s ease;
    padding: 3px 7px;
    background-color: rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    font-size: 12px;
}

.news-groups-type1 .box-first:hover .meta-info-cat,
.news-groups-type1 .box-second:hover .meta-info-cat,
.news-groups-type1 .box-loop:hover .meta-info-cat{
    background-color: #4db2ec;
}

.news-groups-type1 .meta-info h3{
    font-size: 27px;
    font-weight: 500;
    line-height: 34px;
    margin: 6px 0;
}

.news-groups-type1 .box-second .meta-info h3{
    font-size:22px;
    line-height: 24px;
}

.news-groups-type1 .box-loop .meta-info h3{
    font-size: 16px;
    line-height: 21px;
}

.news-groups-type1 .meta-info-author{
    display: flex;
}

.news-groups-type1 .meta-info-author > div{
    margin: 0 4px;
}

#news-cat-type0 .owl-nav{
    position: absolute;
    top: -42px;
    right: 0;
}

#news-cat-type0 .owl-nav .owl-prev,
#news-cat-type0 .owl-nav .owl-next {
    background-color: #fff !important;
    border: 1px solid #dcdcdc!important;
    color: #dcdcdc !important;
    width: 25px;
    height: 25px;
    margin: 0 2px;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

.main-listcat.cat-yellow #news-cat-type0 .owl-nav .owl-prev:hover,
.main-listcat.cat-yellow #news-cat-type0 .owl-nav .owl-next:hover{
    background-color: #f9c100!important;
}

.cat-type0-item .box-thumb{
    position: relative;
    height: auto;
    overflow: hidden;
    padding-top: 70%;
}

.cat-type0-item .box-thumb img{
    right: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    position: absolute;
    object-position: 50% 50%;
    object-fit: cover;
}

.cat-type0-item h3{
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
    margin-top: 8px;
}

.cat-type0-item h3 a{
    color: #000;
}

.cat-type0-item h3:hover a{
    color: #f9c100;
}

#news-cat-type1 .box-large-thumb{
    padding-top: 55%;
}

#news-cat-type1.main-listcat .heading h2 a{
    color: #fff;
}

#news-cat-type1.cat-green a{
    color: #333;
}

#news-cat-type1.cat-green a:hover{
    color: #39863e;
}

#news-cat-type1 .listcat-loop{
    min-height: 72px;
}

.listcat-loop{
    display: flex;
    margin-bottom: 10px;
}

.listcat-loop img {
    margin-right: 10px;
}

.listcat-loop h3{
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.viewcatpage-item{
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.viewcatpage-item img{
    width: 240px;
    margin-right: 12px;
}

.viewcatpage-item h2,
.viewcatpage-item h3{
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.detail-related li{
    font-size: 16px;
    align-items: center;
}

.detail-related .fa{
    font-size: 14px;
}

.other-news .h3{
    font-size: 16px;
    margin: 5px 0;
}

/* Responsive news */

@media (max-width: 767.98px) {
    .news-groups-type1 .box-first{
        padding-top: 350px;
        margin-bottom: 12px;
    }
}

@media (max-width: 499px) {
    .viewcatpage-item img{
        width: 100%;
        margin: 0 0 10px 0;
    }
}