/*
Created on : May 30, 2019, 16:15:00 PM
Author     : Mega Team
*/

:root {
    --white: #fff;
    --gray: #c3c3c3;
    --gray-dark: #343a40;
    --primary: #8cb630;
    --secondary: #2cceb0;
    --tertiary: #e600a0;
    --success: #28a745;
    --info: #5bc0de;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #e3e3e3;
    --dark: #34b0dd
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-thumb {
    width: 8px;
    border-radius: 4px;
    background-color: #c1c1c1
}

::-webkit-scrollbar-thumb {
    width: 6px;
    border-radius: 4px;
    background-color: #c1c1c1
}

::-webkit-scrollbar-track {
    padding: 6px
}

img {
    max-width: 100%;
    object-fit: contain;
}

.News-detail img {
    max-width: 100%;
    height: auto;
    object-fit: contain
}

.is-blogpage {
    display: block;
    position: relative
}

.is-blogpage li {
    margin-left: auto
}

.is-blogpage::after,
.is-blogpage::before {
    content: "";
    display: block;
    clear: both
}

.blogpage-menu {
    position: relative;
    display: block;
    margin: 15px 0
}

.blogpage-menu.blogpage-menu-fixed {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    padding: 10px 0;
    border-bottom: 1px solid #eee
}

.blogpage-menu.blogpage-menu-fixed ul {
    margin: 0 auto;
    max-width: 1280px;
    padding-left: 15px;
    padding-right: 15px
}

.blogpage-menu::after,
.blogpage-menu::before {
    content: "";
    display: block;
    clear: both
}

.submenu-children {
    list-style: none;
    margin: 0;
    padding: 0
}

.submenu-children .menu-item-main {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0
}

.submenu-children .menu-item-main.active {
    background-color: var(--primary);
    border-radius: 3px
}

.submenu-children .child-link {
    padding: 10px 15px;
    display: block
}

.submenu-children .menu-item-main.active .child-link {
    color: var(--white);
    cursor: default
}

.news-slider a .latest-title {
    color: #333
}

.news-slider a:hover .latest-title {
    color: var(--dark)
}

.blogpage-slider {
    max-width: 700px;
    display: block;
    position: relative;
    text-align: left
}

.blogpage-slider .item {
    outline: 0!important;
    border: none;
    text-align: left!important
}

.blogpage-slider:not(.slick-slider) .blogpage-slider-item:nth-child(n+2) {
    display: none
}

.latest-image-box {
    height: 330px;
    overflow: hidden
}

.slick-dots {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    bottom: 145px;
    margin: 0;
    background: rgba(255, 255, 255, 0);
    text-align: right;
    padding: 10px
}

#main-contents .slick-dots li {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    padding: 0;
    margin: 2px 4px;
    cursor: pointer;
    background: var(--tertiary);
    opacity: .7
}

.slick-dots li.slick-active {
    opacity: 1;
    height: 12px;
    width: 12px
}

#blogpage {
    padding: 0 25px 0 0
}

.blogpage-content-wrap {
    display: grid;
    grid-template-columns: auto 250px;
    justify-content: space-between;
    align-items: flex-start
}

.blogpage-newslist {
    display: grid;
    grid-template-columns: calc(100% - 260px) 260px;
    justify-content: space-between;
    align-items: flex-start
}

.latest-image {
    width: 100%;
    height: auto;
    object-fit: contain
}

.news-list {
    padding-left: 15px
}

.author-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.author-header-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.author-header-title {
    margin-bottom: 15px;
}

.author-header-title-wrapper {
    width: calc(100% - 120px);
    padding-left: 25px;
}

.author-header-author-title {
    color: var(--gray);
}

.author-header-name {
    margin-bottom: 0;
}

.author-header-shares {
    display: flex;
    align-items: center;
    line-height: 24px;
}

.author-header-shares a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5px;
}

.news-list li,
.news-list ul {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0
}

.news-list .newslist-feature img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px
}

.news-list-heading {
    color: #313131;
    font-size: 16px;
    line-height: 1.2em;
    margin: 0;
    padding: 0
}

.newslist-feature .news-list-heading {
    font-size: 20px;
    font-weight: 600
}

.news-list a:hover .news-list-heading {
    color: var(--dark)
}

.pagination .current a {
    color: #000;
    background-color: #f8f8f8;
}

.widget-title {
    margin: 0 0 15px;
    padding-bottom: 7px;
    color: var(--tertiary);
    position: relative
}

.widget-title::after {
    content: "";
    width: 150px;
    height: 2px;
    background-color: var(--tertiary);
    position: absolute;
    bottom: 0;
    left: 0
}

.btn-theme {
    background-color: var(--primary);
    color: var(--white);
    outline: 0;
    border: 1px solid var(--primary)
}

.btn-theme:hover {
    background-color: var(--dark)
}

.widget+.widget {
    margin-top: 35px
}

.widget img {
    max-width: 100%;
    height: auto;
    object-fit: contain
}

.sidebar-feature,
.sidebar-feature li {
    margin: 0;
    padding: 0;
    list-style: none
}

.sidebar-feature a {
    display: flex;
    align-items: flex-start;
    color: #333
}

.sidebar-feature a:hover {
    color: var(--dark)
}

.sidebar-feature a img {
    width: 80px;
    height: auto;
    display: inline-block;
    object-fit: contain;
    margin-right: 10px;
    font-size: 0
}

.blogpage-bottom {
    margin-top: 25px;
    margin-bottom: 25px
}

.writtens-bottom,
.writtens-bottom li {
    list-style: none;
    display: block;
    margin: 0;
    padding: 0
}

.writtens-bottom li {
    border-bottom: 1px solid #d1d1d1;
    padding-top: 15px;
    padding-bottom: 15px
}

.writtens-bottom li+li {
    margin-top: 15px
}

.post-image {
    height: 140px;
    width: 250px;
    display: block;
    position: relative;
    overflow: hidden
}

.post-content {
    width: calc(100% - 250px);
    padding-left: 20px
}

.writtens-bottom li {
    display: flex;
    align-items: flex-start;
    color: #313131
}

.writtens-bottom .headline {
    display: block;
    line-height: 28px;
    font-size: 22px;
    font-weight: 500;
    margin: 0
}

.writtens-bottom .headline a {
    color: #333
}

.writtens-bottom a:hover {
    color: var(--dark)
}

.writtens-bottom .description {
    display: block;
    font-size: 14px;
    color: #333;
    line-height: 22px;
    padding: 10px 0
}

.writtens-bottom .timepost {
    color: #999
}

.timepost .namecate {
    color: var(--primary)
}

.News-detail .list-tags i {
    margin-right: 10px;
}
.News-detail .list-tags i:after {
    content: ":";
    padding-left: 2px;
}
.News-detail .tags,
.News-detail .tags li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
    margin-bottom: 10px;
}
.News-detail .tags::before {
    content: "Tags:";
    float: left;
    margin-right: 15px;
}
.News-detail .tags li,
.News-detail .tags a {
    float: left;
    height: 20px;
    line-height: 22px;
    position: relative;
    font-size: 12px;
}
.News-detail .tags a {
    margin-right: 20px;
    padding: 0 10px 0 12px;
    background: #68b106;
    color: #fff;
    text-decoration: none;
    -moz-border-radius-bottomright: 4px;
    -webkit-border-bottom-right-radius: 4px;
    border-bottom-right-radius: 4px;
    -moz-border-radius-topright: 4px;
    -webkit-border-top-right-radius: 4px;
    border-top-right-radius: 4px;
}
.News-detail .tags a:before {
    content: "";
    float: left;
    position: absolute;
    top: 0;
    left: -12px;
    width: 0;
    height: 0;
    border-color: transparent #68b106 transparent transparent;
    border-style: solid;
    border-width: 10px 12px 10px 0;
}
.News-detail .tags a:after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    float: left;
    width: 4px;
    height: 4px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    background: #fff;
    -moz-box-shadow: -1px -1px 2px #004977;
    -webkit-box-shadow: -1px -1px 2px #004977;
    box-shadow: -1px -1px 2px #004977;
}
.News-detail .tags a:hover {
    background: #555;
}
.News-detail .tags a:hover:before {
    border-color: transparent #555 transparent transparent;
}

.author-content .timepost .namecate {
    margin-right: 15px;
    color: var(--gray-dark);
}

.pagination-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #d1d1d1;
    margin-top: 25px
}

.subscribe-box small {
    font-size: 85%;
    color: gray;
    display: block;
    line-height: 15px;
    margin-bottom: 10px
}

.list-product,
.list-product-item {
    list-style: none;
    padding: 0;
    margin: 0
}

.list-product-image {
    width: 80px
}

.list-product-image img {
    width: 100%;
    height: 70px;
    object-fit: contain
}

.list-product-content {
    width: calc(100% - 80px);
    padding-left: 15px
}

.list-product-title {
    font-size: 15px;
    margin-top: 0
}

.list-product-title a {
    color: #333
}

.list-product-image a {
    display: flex;
    justify-content: center;
    align-items: center
}

.subscribe-box .subcriber-form {
    position: relative;
    width: 100%;
    padding-right: 0
}

.subscribe-box .subcriber-form .btn-theme {
    position: absolute;
    width: 60px;
    padding-left: 0;
    padding-right: 0;
    top: 0;
    right: 0;
    border-radius: 0 4px 4px 0
}

.subscribe-box .form-inline .form-control {
    width: calc(100% - 60px);
    border-radius: 4px 0 0 4px;
    border-right: none;
    padding: 0 7px
}

.product-price {
    color: var(--tertiary);
    font-size: 17px;
    margin-bottom: 0
}

.img-top {
    text-align: center
}

@media (min-width:997px) {
    
    .content-sidebar .bestsales-product {
        width: 25%;
    }

    .img-show-mobile-srceen.img-responsive {
        display: none;
    }
    .show-tablet {
        display: none ! important;
    }
    .sidebar-feature li+li {
        border-top: 1px solid #e1e1e1;
        margin-top: 15px;
        padding-top: 15px
    }
    .post-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        top: 50%;
        position: relative;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%)
    }
    .news-list li+li {
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid #d1d1d1
    }
    .related-news ul {
        margin-left: -10px;
        margin-right: -10px
    }
    .related-news ul::after {
        content: "";
        display: block;
        clear: both
    }
    .related-news ul li {
        display: block;
        width: calc(100% / 3);
        float: left;
        padding: 0 10px;
        border: none;
        margin-top: 0;
        margin-bottom: 25px
    }
    .related-news ul li:nth-child(3n+1) {
        clear: left
    }
    .related-news .post-image {
        width: 100%
    }
    .related-news .post-content {
        width: auto;
        margin: 10px auto;
        padding: 0
    }
    .related-news .headline {
        font-size: 19px;
        line-height: 23px
    }
    .list-product-item {
        margin-top: 25px;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start
    }
    .list-product-item+.list-product-item {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e1e1e1
    }
}

@media (max-width:997px) and (min-width:740px) {
    #blogpage {
        padding: 0
    }
    .blogpage-content-wrap {
        display: block
    }
    .news-list li+li {
        padding-top: 10px;
        margin-top: 10px
    }
    .sidebar-feature::after {
        content: "";
        display: block;
        clear: both
    }
    .sidebar-feature li:nth-child(3n+1) {
        clear: left
    }
    .sidebar-feature li {
        width: calc(100% / 3);
        display: inline-block;
        float: left;
        margin-bottom: 25px;
        padding-right: 7px
    }
    .sponsor {
        display: none
    }
    .submenu-children {
        white-space: nowrap
    }
    .blogpage-menu {
        overflow-x: auto
    }
    .post-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        top: 50%;
        position: relative;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%)
    }
    .news-list li+li {
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid #d1d1d1
    }
    .related-news ul {
        margin-left: -10px;
        margin-right: -10px
    }
    .related-news ul::after {
        content: "";
        display: block;
        clear: both
    }
    .related-news ul li {
        display: block;
        width: calc(100% / 3);
        float: left;
        padding: 0 10px;
        border: none;
        margin-top: 0;
        margin-bottom: 25px
    }
    .related-news ul li:nth-child(3n+1) {
        clear: left
    }
    .related-news .post-image {
        width: 100%
    }
    .related-news .post-content {
        width: auto;
        margin: 10px auto;
        padding: 0
    }
    .related-news .headline {
        font-size: 19px;
        line-height: 23px
    }
    .list-product-item {
        margin: 10px 0;
        width: calc(100% / 3);
        display: block;
        float: left
    }
    .list-product-item:nth-child(3n+1) {
        clear: left
    }
    .list-product-item a {
        color: #313131;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start
    }
}

@media (max-width:740px) and (orientation:portrait) {
    #blogpage {
        padding: 0
    }
    .submenu-children {
        white-space: nowrap
    }
    .blogpage-menu {
        overflow-x: auto
    }
    .blogpage-content-wrap,
    .blogpage-newslist {
        display: block;
        padding: 0 0 25px
    }
    .blogpage-slider {
        max-width: 470px;
        display: block;
        position: relative
    }
    .blogpage-slider:not(.slick-slider) .blogpage-slider-item:nth-child(n+2) {
        display: none
    }
    .latest-image-box {
        height: 190px;
        overflow: hidden
    }
    .blogpage-slider .slick-dots {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        bottom: 145px;
        margin: 0;
        background: rgba(255, 255, 255, 0);
        text-align: right;
        padding: 10px
    }
    .blogpage-slider .slick-dots li {
        position: relative;
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        padding: 0;
        margin: 2px 7px;
        cursor: pointer;
        background: var(--tertiary);
        opacity: .7
    }
    .blogpage-slider .slick-dots li.slick-active {
        opacity: 1;
        height: 12px;
        width: 12px
    }
    .blogpage-slider .slick-dots li button:before {
        display: none
    }
    .blogpage-slider .slick-next,
    .blogpage-slider .slick-prev {
        display: block!important;
        top: calc(190px / 2)
    }
    .blogpage-slider .slick-next {
        right: 0;
        padding: 10px;
        background: rgba(0, 154, 169, .85)!important;
        height: auto;
        width: auto
    }
    .blogpage-slider .slick-prev {
        padding: 10px;
        background: rgba(0, 154, 169, .85)!important;
        height: auto;
        width: auto
    }
    .news-list {
        padding: 0
    }
    .news-list img {
        display: none
    }
    .news-list-heading {
        color: #313131;
        font-size: 15px;
        line-height: 1.2em;
        margin: 0;
        padding: 0
    }
    .newslist-feature .news-list-heading {
        font-size: 15px;
        line-height: 1.2em;
        font-weight: 500
    }
    .news-list li {
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid #d1d1d1
    }
    .writtens-bottom li {
        align-items: flex-start
    }
    .post-image {
        width: 80px;
        height: auto
    }
    .post-image img {
        width: 100%;
        height: auto;
        object-fit: contain
    }
    .post-content {
        width: calc(100% - 80px)
    }
    .writtens-bottom .description {
        display: none
    }
    .writtens-bottom .headline {
        font-size: 17px;
        line-height: 21px;
        margin-bottom: 10px
    }
    .sidebar-feature li+li {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #d1d1d1
    }
    #main-contents .navbar-header {
        min-height: 1px;
        margin-bottom: 15px;
        padding: 7px 0
    }
    #main-contents .page-title .back {
        font-size: 80%;
        display: flex;
        justify-content: center;
        align-items: center
    }
    .page-title {
        padding-left: 15px
    }
    .list-product-item {
        margin-top: 25px;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start
    }
    .list-product-item+.list-product-item {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e1e1e1
    }
    .pagination-box .readmore {
        padding: 15px 0;
        border: none
    }
    .readmore a {
        background-color: #f8f8f8;
        border: 1px solid #d1d1d1;
        border-radius: 4px;
        text-transform: inherit;
        font-size: 13px;
        padding: 0 25px;
        line-height: 32px
    }
    #blogpage .blogpage-article ol,
    #blogpage .blogpage-article ul {
        margin-left: 25px
    }

    .author-content .writtens-bottom{
        margin-left: 0!important;
    }

    .author-content .writtens-bottom .post-content{
        padding-left: 0!important;
    }

    .author-header-image {
        width: 75px;
        height: 75px;
    }
}

@media (max-width:997px) and (orientation:landscape) {
    .blogpage-content-wrap {
        display: block
    }
    .latest-image-box {
        height: 195px;
        overflow: hidden
    }
    .newslist-feature .news-list-heading {
        font-size: 15px;
        line-height: 1.2em;
        font-weight: 500
    }
    .news-list li+li {
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid #d1d1d1
    }
    .newslist-feature img {
        display: none
    }
    .submenu-children {
        white-space: nowrap
    }
    .blogpage-menu {
        overflow-x: auto
    }
    .list-product-item {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start
    }
    .related-news ul {
        margin-left: -10px;
        margin-right: -10px
    }
    .related-news ul::after {
        content: "";
        display: block;
        clear: both
    }
    .related-news ul li {
        display: block;
        width: calc(100% / 3);
        float: left;
        padding: 0 10px;
        border: none;
        margin-top: 0;
        margin-bottom: 25px
    }
    .related-news ul li:nth-child(3n+1) {
        clear: left
    }
    .related-news .post-image {
        width: 100%
    }
    .related-news .post-content {
        width: auto;
        margin: 10px auto;
        padding: 0
    }
    .related-news .headline {
        font-size: 19px;
        line-height: 23px
    }
    .list-product-item:nth-child(3n+1) {
        clear: left
    }
    .list-product-item a {
        color: #313131;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start
    }
    .sidebar-feature::after {
        content: "";
        display: block;
        clear: both
    }
    .sidebar-feature li:nth-child(3n+1) {
        clear: left
    }
    .sidebar-feature li {
        width: calc(100% / 3);
        display: inline-block;
        float: left;
        margin-bottom: 25px;
        padding-right: 7px
    }
}
