@import url('//fonts.googleapis.com/css?family=Battambang|Khmer|Siemreap');

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Battambang', sans-serif !important;
    background-color: #f3f3f3;
    width: 100%;
}

.rm-padding {
    padding-left: 0;
    padding-right: 0;
}

.p5 {
    padding-left: 5px;
    padding-right: 5px;
}

.web {
    display: block;
}

ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shade {
    border-bottom: 3px solid #333;
}

/* Navigation */

.brand-logo {
    width: 110px;
}

section.top nav {
    background-color: #f0932b;
}

.menu-main {
    font-size: 14px;
    display: flex;
    justify-content: space-around;
    width: 40%;
}

.menu-main li {
    list-style: none;
}

.menu-main li a:link,
.menu-main li a:visited {
    text-decoration: none;
    color: white;
}

.menu-main li:hover a,
.menu-main li.current-menu-item a,
.menu-main li.current-menu-ancestor a,
.menu-main li.current-category-parent a,
.menu-main li.current-post-ancestor a {
    border-bottom: 2px solid white;
}

.menu-main li ul.sub-menu {
    display: none;
    opacity: 0;
}

.menu-main li:hover ul.sub-menu {
    display: block;
    opacity: 1;
    position: absolute;
    padding: 15px;
    padding-bottom: 0;
    background: white;
    box-shadow: 0 3px 3px #333;
    margin-top: 17px;
    animation: opacity 0.5s ease-in-out;
    z-index: 999;
}

@keyframes opacity {
    0% { opacity: 0; transform: translateY(-5px)}
    100% { opacity: 1; transform: translateY(0px)}
}

ul.sub-menu:before {
    content: '\25B2';
    width: 100%;
    color: white;
    position: absolute;
    top: -18px;
    left: 0;
}

ul.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-main li:hover ul.sub-menu li a {
    font-size: 12px;
    color: #333 ;
    display: block;
    margin-bottom: 15px;
    border-bottom: none;
}

ul.sub-menu li a:hover {
    text-decoration: underline;
}

.searchbox input,
.searchbox .btn {
    font-size: 14px;
}

.content {
    min-height: 80vh;
}

.cat-children-wrapper {
    display: block;
    background: #e4e4e4;
    color: white;
    font-size: 13px;
    margin-bottom: 15px;
}

.cat-children {
    display: flex;
    min-width: 350px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-top: 8px;
    padding-bottom: 10px;
    overflow-x: auto;
}

.cat-children li {
    flex: 0 0 auto;
    margin-right: 10px;
}

.cat-children li a {
    color: #333;
    text-decoration: none;
}

.cat-children li a:hover,
.cat-children li.current-cat a,
.cat-children li.cat-active a
 {
    border-bottom: 2px solid #333;
}

.cat-children li.cat-parent {
    margin-right: 30px;
    font-weight: 600;
}

/* Featured posts - Homepage */

.featured-posts {
    margin-top: 5px;
    margin-bottom: 15px;
}

.highlight-post {
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;
    box-sizing: border-box;
}

.text-block, .text-bg {
    font-size: 14px;
    position: absolute;
    bottom: 0;
    height: 35%;
    width: 100%;
    padding: 10px 15px;
    overflow: hidden;
}

.text-meta {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 11px;
}

.text-meta span,
.popular-meta span {
    margin-right: 5px;
}

.text-meta a {
    font-size: 11px;
    color: white;
}

.text-title a {
    text-decoration: none;
    color: white;
    font-size: 20px;
}

.text-title a:hover,
.text-meta a:hover {
    text-decoration: underline;
}

.text-title a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 33px;     /* fallback */
    max-height: 66px;      /* fallback */
    -webkit-line-clamp: 2; /* number of lines to show */
    -webkit-box-orient: vertical;
}

.text-bg {
    background: black;
    opacity: .6;
}

.popular-posts {
    margin: 0;
}

.popular-wrapper {
    display: block;
    background: white;
    padding: 10px;
}

.popular-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.popular-list {
    display: flex;
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.popular-list:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-list:first-child {
    padding-top: 0;
}

.popular-image {
    flex: 33%;
}

.popular-text {
    flex: 65%;
    font-size: 12px;
    padding: 0 10px;
    color: #333;
}

.popular-heading {
    display: block;
    color: #333;
}

.popular-heading {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 20px;     /* fallback */
    max-height: 58px;      /* fallback */
    -webkit-line-clamp: 3; /* number of lines to show */
    -webkit-box-orient: vertical;
}

.popular-meta {
    font-size: 10px;
    margin-bottom: 5px;
}

.btn {
    margin-top: 10px;
}

/* Thumbnail Image */

.large {
    height: 350px;
}

.medium {
    height: 200px;
}

.half-medium {
    height: 120px;
}

.small {
    height: 76px;
}

.image-block {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.img-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #161616;
    background-position: center;
    background-repeat: no-repeat;
    background-size: calc(100%) auto;
}

/* Post content - homepage */

.latest-news {
    margin-bottom: 10px;
}

.cat-title, .widgettitle {
    display: block;
    font-size: 18px;
    color: white;
    font-weight: bold;
    background: #e58e26;
    padding: 10px;
    margin-left: -5px;
    margin-right: -5px;
    margin-bottom: 10px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.widgettitle {
    margin-left: 0;
    margin-right: 0;
}

.card {
    margin-bottom: 10px;
}

.card img {
    height: 210px;
}

.card-text {
    color: #333;
    font-size: 16px;
}

.card-meta {
    display: block;
    font-size: 10px;
    margin-bottom: 10px;
}

.card-meta span {
    margin-right: 5px;
}

.flex {
    margin-bottom: 10px;
}

.text-side {
    padding: 10px;
    background: white;
    height: 110px;
}

.text-side p {
    font-size: 14px;
}

.card .card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 26px;     /* fallback */
    max-height: 52px;      /* fallback */
    -webkit-line-clamp: 2; /* number of lines to show */
    -webkit-box-orient: vertical;
}

.flex .card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 22px;     /* fallback */
    max-height: 65px;      /* fallback */
    -webkit-line-clamp: 3; /* number of lines to show */
    -webkit-box-orient: vertical;
}

.cat-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/* footer */

section.bottom {
    background: #e58e26;
    color: white;
    padding: 25px 0;
}

.footer-left {
    display: block;
    width: 100%;
}

.bottom a {
    text-decoration: none;
    color: white;
}

.bottom a:hover {
    text-decoration: underline;
}

.bottom ul,
.bottom li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-logo {
    display: block;
    margin-bottom: 15px;
}

.footer-flex {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
    font-size: 14px;
}

.flex70 {
    width: 70% !important;
}

.flexend {
    justify-content: flex-end !important;
}

.flex50 {
    flex-basis: 50% !important;
}

.footer-flex-item {
    flex-basis: 25%;
}

.footer-flex-item-main {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-flex-item-body li {
    font-size: 12px;
    margin-bottom: 5px;
}

.copyright {
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    background: black;
    color: white;
    font-size: 11px;
    text-align: center;
}

.widget {
    background: white;
    color: #333;
    margin-right: -5px;
    margin-left: -5px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.pagination ul {
    display: flex;
    justify-content: flex-start;
}

.pagination ul li {
    margin-right: 5px;
    margin-bottom: 10px;
}

.pagination ul li span,
.pagination ul li a {
    display: block;
    color: white;
    background: #20b2aa;
    padding: 10px 15px;
    font-size: 14px;
}

.pagination ul li .current,
.pagination ul li a:hover {
    background: #1b7873;
}

/* post content */

article {
    display: block;
    width: 100%;
    background: white;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 12px;
    margin: 10px 0;
}

.post-meta span {
    margin-right: 10px;
    margin-bottom: 5px;
}

.post-title {
    font-size: 24px;
    color: #333;
    margin: 10px 0;
}

.post-content {
    overflow: hidden;
}

.post-content p {
    font-size: 15px;
    line-height: 30px;
    color: #333;
}

.post-content img {
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.post-content iframe {
    max-width: 100%;
    /* height: auto; */
}

.tag-title {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.tag-link {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px;
    background: #20b2aa;
    font-size: 15px;
    color: white;
}

.tag-link:hover {
    background: #1b7873;
    color: white;
    text-decoration: none;
}

.post-relate {
    display: block;
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.ad {
    display: block;
    width: 100%;
    margin: 10px 0;
}

.ad .widget {
    background: transparent;
    margin-bottom: 10px;
}

@media (max-width: 767px) {

    .web {
        display: none;
    }

    .menu-main {
        margin-top: 25px;
        width: 100%;
    }

    .menu-main li {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #ccc;
    }

    .menu-main li.menu-item-has-children:hover ul.sub-menu {
        display: block;
        position: relative;
        opacity: 1;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding-right: 0;
        margin-top: 5px;
    }

    ul.sub-menu:before {
        content: '';
    }

    ul.sub-menu li {
        padding-bottom: 0;
        color: white;
    }

    ul.sub-menu li:last-child {
        border-bottom: none;
    }

    ul.sub-menu li a {
        color: white !important;
    }

    .highlight-post, .large {
        height: 300px;
    }

    .text-title a {
        font-size: 18px;
    }

    .p5 {
        margin-top: 5px;
    }

    .flex {
        display: flex;
        justify-content: space-between;
        flex-flow: row wrap;
        width: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .image-side {
        flex: 30%;
    }
    
    .text-side {
        flex: 68%;
        height: 80px;
        overflow: hidden;
    }

    .half-medium {
        height: 80px;
    }

    .card, .flex {
        margin-bottom: 5px;
    }

    .card-meta {
        margin-bottom: 5px;
    }

    .flex .card-text {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-height: 23px;     /* fallback */
        max-height: 46px;      /* fallback */
        -webkit-line-clamp: 2; /* number of lines to show */
        -webkit-box-orient: vertical;
    }

    .footer-flex {
        flex-flow: wrap;
    }

    .flex50 {
        flex-basis: 100% !important;
        text-align: center;
    }

    .footer-flex-item-body li {
        display: inline-block;
        padding-right: 10px;
        border-right: 1px solid white;
    }

    .footer-flex-item-body li:last-child {
        padding-left: 10px;
        border: none;
    }

    .footer-logo {
        text-align: center;
    }

}


