:root {
    --bl-border-color: #eeeeee;
    --bl-primary: #0d6efd;
    --bl-secondary: rgba(33, 37, 41, 0.75);
}

/**
 * Global
 */
.margin-bottom {
    margin-bottom: 10px;
}

.bl-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
}

.highlighter {
    padding: 2px 6px;
    margin: 0 6px;
    border-radius: 2px;
    color: #fff;
    background: #FD7F67;
    vertical-align: baseline;
}

.highlight {
    color: #fff;
    background: #FD7F67;
}

/**
 * Heading
 */
h1.upper,
h2.upper,
h3.upper,
h4.upper,
h5.upper,
h6.upper {
    text-transform: uppercase;
}

.post-detail h1 {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 18px;
    line-height: 26px;
}

.text-right {
    text-align: right;
}

/**
 * List blog type
 */
.post-list .post-title {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.post-list .post-title i {
    color: #000;
}

.post-list .post-item {
    border-bottom: 1px solid var(--bl-border-color);
    box-shadow: 0 1px rgba(255, 255, 255, 0.75);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.post-list .post-item .item-hometext {
    word-break: break-word;
    word-wrap: break-word;
}

.post-list .post-item .media-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.post-list .post-item .media-iframe {
    padding: 0;
    margin: 0;
    border: 0;
    width: 100%;
    margin-bottom: 10px;
}

.post-list .meta {
    margin-left: -5px;
    margin-right: -5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.post-list .meta > span {
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.post-list .post-item-html {
    margin-bottom: 15px;
    word-break: break-word;
    word-wrap: break-word;
}

.post-list .post-item-html img {
    max-width: 100% !important;
}

/**
 * News type
 */
.news-list .news-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.news-list .news-item {
    border-bottom: 1px solid var(--bl-border-color);
    box-shadow: 0 1px rgba(255, 255, 255, 0.75);
    padding-bottom: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: nowrap;
}

.news-list .news-item .news-image {
    flex: 0 0 220px;
    max-width: 220px;
    margin-right: 16px;
}

.news-list .news-item .news-image a {
    width: 100%;
    height: 145px;
    overflow: hidden;
    display: block;
    border-radius: 4px;
}

@media (max-width: 575.98px) {
    .news-list .news-item .news-image {
        flex-basis: 120px;
        max-width: 120px;
        margin-right: 10px;
    }

    .news-list .news-item .news-image a {
        height: 80px;
    }
}

.news-list .news-item .news-image a img {
    object-position: center;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.news-list .news-item .news-content {
    flex: 1 1 auto;
}

.news-list .news-item .news-content .summarytext {
    word-wrap: break-word;
    word-break: break-word;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    max-height: 72px;
}

.news-list .news-item .news-content .summarytext:after {
    content: "";
    position: absolute;
    left: 0;
    height: 16px;
    width: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    top: 56px;
}

.news-list .meta {
    margin-left: -5px;
    margin-right: -5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.news-list .meta > span {
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.news-list .meta > span i {
    color: var(--bl-primary);
}

/**
 * Generate page
 */
ul.pagination.bl-pagination {
    display: block;
}

ul.pagination.bl-pagination li.pages {
    float: right;
}

ul.pagination.bl-pagination li.pages span {
    border-radius: 0;
    border-color: transparent;
    color: inherit;
    background-color: transparent;
    padding-right: 0;
    margin-right: 0;
}

ul.pagination.bl-pagination li.pages span:hover {
    background-color: transparent;
}

ul.pagination.bl-pagination li:nth-last-child(2) a,
ul.pagination.bl-pagination li:nth-last-child(2) span {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

/**
 * Tags list
 */
.bl-tags-list-row {
    padding: 3px 0;
}

.bl-tags-list-count {
    float: right;
    width: 35px;
    margin-left: 5px;
    color: var(--bl-secondary);
}

/*
 * Detail blog
 */
.post-detail-media-data {
    padding-bottom: 20px;
}

.post-detail-media-data .media-image {
    width: 100%;
}

.post-detail-media-data .media-iframe {
    padding: 0;
    margin: 0;
    border: 0;
    width: 100%;
}

.post-detail-content {
    margin-bottom: 30px;
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.post-detail-content img {
    padding: 0 !important;
}

.post-detail-content figure.image {
    margin: 10px 0;
    padding: 0;
    float: none;
}

.post-detail-content figure.image figcaption {
    margin-top: 10px;
}

/* Fix NukeViet default css */
.post-detail-content ul {
    list-style-type: disc;
}

/* Fix NukeViet default css */
.post-detail-content ol {
    list-style-type: decimal;
}

.post-detail-tags {
    margin-bottom: 30px;
}

.post-detail-tags a {
    display: inline-block;
    margin-left: 5px;
}

.post-detail-tags a:after {
    display: inline-block;
    content: ",";
}

.post-detail-tags a:last-child:after {
    display: none;
}

.post-detail-meta {
    float: left;
}

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

.post-detail-next-post {
    float: right;
    width: 45%;
    text-align: right;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    padding-right: 25px;
}

.post-detail-next-post i {
    position: absolute;
    right: 0;
    top: 0;
}

.post-detail-prev-post {
    float: left;
    width: 45%;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    padding-left: 25px;
}

.post-detail-prev-post i {
    position: absolute;
    left: 0;
    top: 0;
}

.post-detail-share {
    margin-bottom: 10px;
    text-align: right;
}

/*
 * Block tags
 */
.bl-block-tags-list a {
    border-width: 1px;
    border-style: solid;
    font-size: 11px;
    padding: 4px 10px;
    margin: 0 0px 4px 0;
    display: inline-block;
    border-radius: 2px;
    white-space: nowrap;
    transition: all .2s ease;
    border-color: var(--bl-border-color);
    color: var(--bl-secondary);
}

.bl-block-tags-list a:hover {
    text-decoration: none;
    transition: all .2s ease;
    border-color: var(--bl-primary);
    color: var(--bl-primary);
}

.bl-block-tags-list a i {
    margin-right: 4px;
}

.bl-block-tags-list a:hover i {
    transition: all .2s ease;
}

/**
 * Newsletters
 */
.bl-newsletters button {
    position: absolute;
    line-height: 20px;
    padding: 0;
    margin: -10px 0 0 0;
    top: 50%;
    right: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: 0;
    color: var(--bl-secondary);
}

.bl-newsletters form {
    position: relative;
}
