* {
    --scroll-behavior: smooth !important;
    scroll-behavior: smooth !important
}
*, :after, :before, html {
    box-sizing: border-box;
}
:root {
    --body-color: #efefef;
    --nav-color: #1876f2;
    --bg-color: #fff;
}

.mb-20 {
	 margin-bottom: 20px;
}

hr {
    border-width: 0;
    border-top: 1px solid;
    margin: 15px 0;
    opacity: .1
}

.row {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
	margin-left: -15px;
    margin-right: -15px;
}
.row {
	margin-left: auto;
    margin-right: auto;
}
.col {
    margin: 0;
    padding: 0 15px 30px;
    position: relative;
    width: 100%;
}

.sm-1 {
    flex-basis: 8.3333333333%;
    max-width: 8.3333333333%
}

.sm-2 {
    flex-basis: 16.6666666667%;
    max-width: 16.6666666667%
}

.sm-3 {
    flex-basis: 25%;
    max-width: 25%
}

.sm-4 {
    flex-basis: 33.3333333333%;
    max-width: 33.3333333333%
}

.sm-5 {
    flex-basis: 41.6666666667%;
    max-width: 41.6666666667%
}

.sm-6 {
    flex-basis: 50%;
    max-width: 50%
}

.sm-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%
}

.sm-8 {
    flex-basis: 66.6666666667%;
    max-width: 66.6666666667%
}

.sm-9 {
    flex-basis: 75%;
    max-width: 75%
}

.sm-10 {
    flex-basis: 83.3333333333%;
    max-width: 83.3333333333%
}

.sm-11 {
    flex-basis: 91.6666666667%;
    max-width: 91.6666666667%
}

.sm-12 {
    flex-basis: 100%;
    max-width: 100%
}

@media screen and (min-width: 550px) {
    .md-1 {
        flex-basis: 8.3333333333%;
        max-width: 8.3333333333%
    }

    .md-2 {
        flex-basis: 16.6666666667%;
        max-width: 16.6666666667%
    }

    .md-3 {
        flex-basis: 25%;
        max-width: 25%
    }

    .md-4 {
        flex-basis: 33.3333333333%;
        max-width: 33.3333333333%
    }

    .md-5 {
        flex-basis: 41.6666666667%;
        max-width: 41.6666666667%
    }

    .md-6 {
        flex-basis: 50%;
        max-width: 50%
    }

    .md-7 {
        flex-basis: 58.3333333333%;
        max-width: 58.3333333333%
    }

    .md-8 {
        flex-basis: 66.6666666667%;
        max-width: 66.6666666667%
    }

    .md-9 {
        flex-basis: 75%;
        max-width: 75%
    }

    .md-10 {
        flex-basis: 83.3333333333%;
        max-width: 83.3333333333%
    }

    .md-11 {
        flex-basis: 91.6666666667%;
        max-width: 91.6666666667%
    }

    .md-12 {
        flex-basis: 100%;
        max-width: 100%
    }

}

@media screen and (min-width: 850px) {
    .lg-1 {
        flex-basis: 8.3333333333%;
        max-width: 8.3333333333%
    }

    .lg-2 {
        flex-basis: 16.6666666667%;
        max-width: 16.6666666667%
    }

    .lg-3 {
        flex-basis: 25%;
        max-width: 25%
    }

    .lg-4 {
        flex-basis: 33.3333333333%;
        max-width: 33.3333333333%
    }

    .lg-5 {
        flex-basis: 41.6666666667%;
        max-width: 41.6666666667%
    }

    .lg-6 {
        flex-basis: 50%;
        max-width: 50%
    }

    .lg-7 {
        flex-basis: 58.3333333333%;
        max-width: 58.3333333333%
    }

    .lg-8 {
        flex-basis: 66.6666666667%;
        max-width: 66.6666666667%
    }

    .lg-9 {
        flex-basis: 75%;
        max-width: 75%
    }

    .lg-10 {
        flex-basis: 83.3333333333%;
        max-width: 83.3333333333%
    }

    .lg-11 {
        flex-basis: 91.6666666667%;
        max-width: 91.6666666667%
    }

    .lg-12 {
        flex-basis: 100%;
        max-width: 100%
    }

}

.truyen-options.md-12 {
    justify-content: flex-end;
    display: flex;
}

.btn {
    background: #f79922;
    border-radius: 8px;
    color: #fff;
    font-weight: 300;
    padding: 10px 20px
}

img {
    display: inline-block;
    height: auto;
    max-width: 100%;
    vertical-align: middle
}

img {
    border-style: none
}

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

a {
    -webkit-text-decoration: none;
    text-decoration: none
}


a,
button,
input {
    touch-action: manipulation
}

a:active,
a:hover {
    outline-width: 0
}

a:hover {
    color: #f79922
}

.uppercase {
    text-transform: uppercase
}

footer {
    background: var(--bg-color);
    padding: 10px 0 !important;
    text-align: center;
}

b,
strong {
    font-weight: inherit;
    font-weight: bolder
}

input,
select,
textarea {
    border: 1px solid #ededed;
    border-radius: 4px;
    min-height: 40px;
    padding: 10px;
    width: 100%;
	outline:none;
}

input:focus {
    outline: none
}

.info-check-login input {
    height: 13px;
    margin: 0;
    min-height: 0;
    padding: 0;
    position: relative;
    top: 2px;
    width: 15px
}

img.logo {
    height: 44px;
    width: auto
}

header {
    display: block
}

header div#top-menu {
    background: #fff;
    border-bottom: 1px solid #ededed;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

header {
    padding-top: 65px;
}


.top-menu .nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0
}

.top-menu .nav li {
    margin-left: 20px
}

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

.nav a {
    text-decoration: none
}

#bwtshowr {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease
}

#bwtshowr.show-content {
    max-height: 1000px
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s
}

#truyen-options-panel {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    position: absolute;
    z-index: 99;
    width: 250px
}

.option-group {
    margin-bottom: 10px
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700
}

.content_main_section,
.bwt-editor.chapter-content {
    width: 100%;
    border-radius: 4px;
}

.bwt-editor.chapter-content p {
    padding: 10px;
}

/*Home page 2*/

body {
    background: var(--body-color);
    transition: background 0.3s;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-color);
    padding: 5px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    width: 160px;
    margin-right: 45px;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left ul li {
    list-style: none;
    display: inline-block;
}

.nav-left ul li img {
    width: 28px;
    margin: 0 15px;
}

.nav-user-icon img {
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.nav-user-icon {
    margin-left: 30px;
}

.search-box {
    background: #efefef;
    width: 350px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-box img {
    width: 18px;
}

.search-box input {
    width: 100%;
    background: transparent;
    padding: 10px;
    outline: none;
    border: 0;
}

.online {
    position: relative;
}

.online::after {
    content: '';
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #41db51;
    position: absolute;
    top: 0;
    right: 0;
}

.left-sidebar {
    position: sticky;
    top: 70px;
    align-self: flex-start;
}

.right-sidebar {
	max-width: 360px;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    background: var(--bg-color);
    color: #626262;
}

.sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.right-sidebar h4 {
    font-weight: 600;
    font-size: 16px;
}

.sidebar-title a {
    text-decoration: none;
    color: #1876f2;
    font-size: 12px;

}

.event {
    display: flex;
    font-size: 14px;
    margin-bottom: 20px;
}

.left-event {
    border-radius: 10px;
    height: 65px;
    width: 65px;
    margin-right: 15px;
    padding-top: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.event p {
    font-size: 12px;
}

.event a {
    font-size: 12px;
    text-decoration: none;
    color: #1876f2;
}

.left-event span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1876f2;
    color: var(--bg-color);
    font-size: 10px;
    padding: 4px 0;
}

.sidebar-ads {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;

}

.online-list {
    display: flex;
    align-items: center;
    margin-bottom: 20px;

}

.online-list .online img {
    width: 40px;
    border-radius: 50%;

}

.online-list .online {
    width: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.online-list .online::after {
    top: unset;
    bottom: 5px;

}

/* Reset owl-item */
.owl-item {
    padding: 0 !important;
    position: relative !important;
}


/* Bao ngoài slider để nó không bị co */
.story-slider-wrap {
    flex: 1;
}

.story {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.story img {
    display: block;
    width: 100%;
    height: auto;
}

.story p {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: #fff;
    /* trắng cho dễ thấy */
    font-size: 14px;
    z-index: 2;
}

.story::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.write-post-container {
    margin: 20px 0;
    width: 100%;
    background: var(--bg-color);
    border-radius: 6px;
    color: #626262;
}

.post-input-container textarea {
    width: 100%;
    border: 0;
    outline: 0;
    border-bottom: 1px solid #ccc;
    background: transparent;
    resize: none;
}

.settings-menu {
    position: absolute;
    width: 90%;
    max-width: 350px;
    background: var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    top: 108%;
    right: 5%;
    max-height: 0;
    transition: max-height 0.3s;
}

.settings-menu-height {
    max-height: 450px;
}

.settings-menu-inner {
    padding: 20px;
}

.settings-menu hr {
    border: 0;
    height: 1px;
    background: #9a9a9a;
    margin: 15px 0;
}

.settings-link {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.settings-link .settings-icon {
    width: 38px;
    margin-right: 10px;
    border-radius: 50%;
}

.settings-link a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #626262;
}

#dark-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ccc;
    width: 45px;
    border-radius: 15px;
    padding: 2px 3px;
    cursor: pointer;
    display: flex;
    transition: padding-left 0.5s, background 0.5s;
}

#dark-btn span {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
}

#dark-btn.dark-btn-on {
    padding-left: 23px;
    background: #0a0a0a;
}


/* Bên trong thẻ a */

.story.item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    text-decoration: none;
    padding-bottom: 10px;
}

/* Ảnh icon hoặc thumbnail */
.story.item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chữ tiêu đề / đăng bài */
.story.item a p {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin: 0;
    padding: 0 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

/* CSS comment */

/*Comment style*/
span.title_comment {
    font-size: 20px;
    color: #606664;
    line-height: 1.3em;
    font-weight: 700;
    margin: 0 0 15px;
    display: inline-block;
}
.comment-author.vcard {
    width: 25px;
}
#formcmmaxweb {
	overflow: hidden;
	position:relative;
	margin-bottom: 20px;
}
#formcmmaxweb .nameuser {
	text-align: left;
}
#formcmmaxweb .avatarmw img {
    float: left;
    margin: 5px 10px 0 0;
    border: 1px solid #ccc;
    padding: 5px;
}
.comments-title-maxweb {
	margin: 30px 0;
	font-weight: normal;
}
.commentlist {
margin-top: 10px;
}
.comment-author.vcard {
	float: left;
	clear: both;
	z-index: 2;
	position: relative;
	text-align: center;
}
.commentlist li {
    overflow: hidden;
    clear: both;
	margin-bottom: 10px;
}
.commentlist .children {
	margin-top: 10px;
}
.commentBody em {
	color: red;
}
.commentBody {
	position: relative;
	margin-left: 35px;
	overflow: hidden;
}
.comment-meta.commentmetadata {
	position: relative;
	padding: 0;
	margin: 0 0 5px;
}
.noidungcomment {
    font-size: 16px;
    line-height: 24px;
}
.cancel-comment-reply a {
    font-size: 14px;
    text-decoration: none;
    color: #a9883f;
}
.nocomments {
	border-color: #D98D8D;
	background-color: #FFCECE;
	background-position: left -792px;
	color: #665252;
	padding: 10px;
}
.comment-meta.commentmetadata .ngaythang {
	position: absolute;
    top: 0;
    right: 0;
    color: #337ab7;
    opacity: 0.3;
    font-size: 12px;
}
.commentBody:hover .comment-meta.commentmetadata .ngaythang{
	opacity: 1;
}
.commentBody .reply {
    float: right;
    margin: 0;
    position: absolute;
    bottom: 0;
    right: 0;
}
.comment-meta.commentmetadata .fn {
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: capitalize;
    font-size: 17px;
    line-height: 22px;
    margin-top: 2px;
}

ol.commentlist_mw,
ol.commentlist_mw ul.children {
  list-style: none;
}
ol.commentlist_mw li{
	margin-bottom: 10px;
}
ol.commentlist_mw > ul.children{
	margin: 10px 0 15px 35px;
    background: #f1f1f1;
    padding: 10px;
    position: relative;
}
ol.commentlist_mw > ul.children:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 14px;
    width: 0;
    height: 0;
    border-bottom: 10px solid #f1f1f1;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}
div.error {
    color: red;
    font-size: 12px;
    text-align: left;
    line-height: 16px;
    margin: 3px 0 0;
}
.tools_comment a {
    color: #4a90e2;
    font-size: 14px;
    position: relative;
    padding: 0 15px 0 0;
    margin: 0 7px 0 0;
    line-height: 14px;
}
.tools_comment a:after {
    content: "";
    width: 4px;
    height: 4px;
    top: 50%;
    margin-top: -2px;
    background: #999;
    position: absolute;
    right: 0;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
}
.tools_comment a:last-child:after{
	display: none;
}
.tools_comment a:last-child{
	padding: 0;
	margin: 0;
}
.noidungcomment p {
    margin: 0 0 5px;
}
#formcmmaxweb  input[type="submit"],
#formcmmaxweb input[type="button"],
#formcmmaxweb input[type="reset"],
#formcmmaxweb article.post-password-required input[type=submit],
#formcmmaxweb li.bypostauthor cite span {
	padding: 6px 10px;
	padding: 0.428571429rem 0.714285714rem;
	font-size: 11px;
	font-size: 0.785714286rem;
	line-height: 1.428571429;
	font-weight: normal;
	color: #7c7c7c;
	background-color: #e6e6e6;
	background-repeat: repeat-x;
	background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
	background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
	background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
	background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
	background-image: linear-gradient(top, #f4f4f4, #e6e6e6);
	border: 1px solid #d2d2d2;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);
}
#formcmmaxweb button, #formcmmaxweb input, #formcmmaxweb textarea {
	border: 1px solid #ccc;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	font-family: inherit;
	padding: 6px;
	padding: 0.428571429rem;
}
#formcmmaxweb button,
#formcmmaxweb input[type="submit"],
#formcmmaxweb input[type="button"],
#formcmmaxweb input[type="reset"] {
	cursor: pointer;
}
.reply a.comment-reply-link {
    color: #337ab7;
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
}
.reply a.comment-reply-link:hover {
	color: #c7a611;
}
#formcmmaxweb p,
#formcmmaxweb input,
#formcmmaxweb textarea{
	width: 100%;
	background: transparent;
	outline: none;
	font-size: 14px;
}
#formcmmaxweb input,
#formcmmaxweb textarea{
	border: 1px solid #d7d7d7;
	color: #2e2e2e;
	display: block;
}
#formcmmaxweb input:focus,
#formcmmaxweb textarea:focus{
	border-color: #337ab7;
}
#formcmmaxweb p{
	margin-bottom: 10px;
	text-align: center;
}
#formcmmaxweb #commentform p{	
	overflow: hidden;
}
#formcmmaxweb .name-email p{
	width: 50%;
	float: left;
}
#formcmmaxweb .name-email p:first-child{
	padding-right: 5px;
}
#formcmmaxweb .name-email p:last-child{
	padding-left: 5px;
}
#formcmmaxweb input#submit {
    width: auto;
    font-weight: 400;
    color: #fff;
    background: #337ab7;
    padding: 6px 20px;
    border: none;
    float: left;
    font-size: 16px;
    outline: none;
}
#formcmmaxweb input#submit:hover {
	background: #c7a611;
}
#formcmmaxweb  ::-webkit-input-placeholder {
   color: #999999;
}

#formcmmaxweb ::-moz-placeholder { /* Firefox 18- */
   color: #999999;  
}

#formcmmaxweb ::-moz-placeholder {  /* Firefox 19+ */
   color: #999999;  
}

#formcmmaxweb ::-ms-input-placeholder {  
   color: #999999;  
}
/*#comment style*/
.post-card {
    border: 1px solid #ddd;
    overflow: hidden;
}
.post-thumb img {
    width: auto;
    height: 200px;
    display: block;
}
.post-content {
    padding: 15px;
}
.post-title {
    margin: 0 0 10px;
    font-size: 18px;
}
.post-title a {
    text-decoration: none;
    color: #222;
}
.post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.post-excerpt {
    font-size: 14px;
    color: #444;
}
.post-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.btn-action {
    background: none;
    border: none;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-action:hover {
    background: #f0f0f0;
}

@media(max-width: 849px) {
	.container {
		padding:10px;
		flex-direction: column;
	}
	.main-content {
		margin:5px
	}
    .hide-for-medium {
        display: none !important
    }
	.right-sidebar{
		flex-basis:100%;
		max-width: 100%;
		box-sizing: border-box;
	}
    .pull-right {
        float: none
    }
	.nav-left ul li img {
    width: 20px;
    margin: 0 8px;
}

	.post-thumb img {
    width: auto;
    height: 180px;
	}.post-content,.post-actions {padding:5px}
	    .post-thumb {
        display: flex;
        justify-content: center;
    }
	
}
.left-sidebar {
        max-width: 280px;
    }

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

    .sidebar-menu ul.menu li {
        position: relative;
    }

    .sidebar-menu ul.menu li a {
        display: block;
        padding: 10px 15px;
        color: #050505;
        text-decoration: none;
        font-weight: 500;
        border-radius: 6px;
        transition: background 0.2s;
    }

    /* Hover giống Facebook */
    .sidebar-menu ul.menu li a:hover {
        background: #f0f2f5;
    }

    /* Active */
    .sidebar-menu ul.menu li.current-menu-item>a {
        background: #e7f3ff;
        color: #1877f2;
        font-weight: 600;
    }

    /* Submenu */
    .sidebar-menu ul.menu li ul.sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        padding-left: 15px;
        display: block;
    }

    .sidebar-menu ul.menu li.menu-item-has-children>a::after {
        content: "›";
        position: absolute;
        right: 15px;
        font-size: 12px;
        transform: rotate(90deg);
        color: #65676b;
    }

    .sidebar-menu ul.menu li.menu-item-has-children>a::after {
        content: none;
    }

    /* Submenu item */
    .sidebar-menu ul.menu li ul.sub-menu li a {
        padding: 8px 15px;
        font-size: 14px;
        color: #050505;
    }

    .sidebar-menu ul.menu li ul.sub-menu li a:hover {
        background: #f0f2f5;
    }