/* Bắt đầu css menu trong /admin/add-menus.php chỉ hiển thị với người dùng*/
.menu-item {
    border-bottom: 1px solid #e4e4e4;
}

.menu-heading-title {
    font-weight: bold;
    font-size: 100%;
    text-align: center;
    padding: 4px 0px;
}

/* Kết thúc css menu trong /admin/add-menus.php chỉ hiển thị với người dùng*/

.description-container {
    overflow: hidden;
    position: relative;
}

.description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    /* Fix for transition in Safari */
    -webkit-transition: -webkit-line-clamp 0.6s ease;
    transition: -webkit-line-clamp 0.6s ease;
    /* Fix for transition in browsers other than Safari */
    transition: max-height 0.6s ease;
    max-height: calc(1.5em * 4);
    /* 1.5em is the approximate line height */
    margin-bottom: 20px;
    /* Ensure that text wraps correctly */
    word-wrap: break-word;
}

.fade-overlay {
    width: 100%;
    height: 45px;
    position: absolute;
    bottom: 0px;
    background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
    z-index: 3;
}

.btn-showmore {
    position: absolute;
    z-index: 4;
    text-align: left;
    width: 100%;
    padding: 0px 0px;
    bottom: -10px;
    cursor: pointer;
}

.expanded {
    -webkit-line-clamp: unset !important;
    max-height: none;
}

.fade-out {
    background: none !important;
}


.user-play-button {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    cursor: pointer;
    background-color: #054fcb;
    margin-right: 5px;
    line-height: 16px;
}

.user-icon-play {
    background-image: url(../images/play-button-white.png);
    width: 10px;
    height: 10px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Bắt đầu css phần list play dưới trình phát audio */
.playlist-related-posts {
    background-color: #fff;
    padding-bottom: 10px;
    /* margin: 5px -10px; */
}

.playlist-related-posts a:hover {
    color: blue !important;
    text-decoration: none !important;
}

.playlist-related-posts ul,
.audio-related-posts-list ul,
.audio-post-list ul {
    padding: 0px !important;
    margin: 0px !important;
    list-style: none !important;
}

.audio-related-posts-list,
.audio-post-list {
    background-color: #fff;
    margin-bottom: 10px;
}

.playlist-related-posts .post-item,
.audio-related-posts-list .post-item,
.audio-post-list .post-item {
    display: flex;
    padding: 5px 12px 5px 12px;
    line-height: 1.3;
    position: relative;
    border-bottom: 1px solid #f3f3f3;
}

.playlist-related-posts .post-item:last-child,
.audio-related-posts-list .post-item:last-child,
.audio-post-list .post-item:last-child {
    border: 0;
}

.playlist-related-posts .post-item a,
.audio-related-posts-list .post-item a,
.audio-post-list .post-item a {
    display: flex;
}

.playlist-related-posts .post-item .title-link,
.audio-related-posts-list .post-item .title-link,
.audio-post-list .post-item .title-link {
    flex: 1;
    align-self: center;
}

.playlist-related-posts .post-item .play,
.playlist-related-posts .post-item .audio-player-preview,
.audio-related-posts-list .post-item .play,
.audio-related-posts-list .post-item .audio-player-preview,
.audio-post-list .post-item .play,
.audio-post-list .post-item .audio-player-preview {
    flex-grow: 0;
    align-self: center;
    text-align: left;
}

.playlist-related-posts .post-item .title,
.audio-related-posts-list .post-item .title,
.audio-post-list .post-item .title {
    flex-grow: 0;
    flex-basis: 100%;
    min-width: 50px;
    align-self: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
}

.playlist-related-posts .post-item .title h3,
.audio-related-posts-list .post-item .title h3,
.audio-post-list .post-item .title h3 {
    display: inline;
    font-size: 100%;
    font-weight: normal;
    word-break: break-all;
}

.playlist-related-posts .post-item .icon-downl-svg,
.audio-related-posts-list .post-item .icon-downl-svg,
.audio-post-list .post-item .icon-downl-svg {
    opacity: 0;
    flex-grow: 0;
    align-self: center;
    text-align: left;
    margin: 0px 0px;
    transition: opacity 0.3s ease-in-out;
}

.playlist-related-posts .post-item:hover .icon-downl-svg,
.audio-related-posts-list .post-item:hover .icon-downl-svg,
.audio-post-list .post-item:hover .icon-downl-svg {
    opacity: 1 !important;
}

.playlist-related-posts .post-item .duration,
.audio-related-posts-list .duration,
.audio-post-list .duration {
    flex-grow: 0;
    color: #616a7b;
    font-size: 80%;
    flex-basis: 36px;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 5px;
    text-align: right;
    align-self: center;
}

.playlist-related-posts .post-item .error-file,
.audio-post-list .error-file,
.audio-related-posts-list .error-file {
    color: #bbbbbb;
}

/* Kết thúc css phần list play dưới trình phát audio */

/* Bắt đầu css các nhóm class bài viết audio-post-list, audio-related-posts-list, playlist-related-posts */
.audio-post-list .section-title {
    color: #404e66;
    font-size: 99%;
    font-weight: bold;
    padding: 0px;
}

.audio-post-list .post-item .text-standard,
.playlist-related-posts .post-item .text-standard {
    background: linear-gradient(141deg, #ffbd02 4%, #f4f4f4);
    color: #000001;
    font-size: 59%;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 4px;
    margin-right: 2px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Kết thúc css các nhóm class bài viết audio-post-list, audio-related-posts-list, playlist-related-posts */

.standard-post-list .post-item .thumbnail {
    position: relative;
}

.standard-post-list .post-item .thumbnail .new-icon-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(141deg, #ffbd02 4%, #f4f4f4);
    color: #f83921;
    font-size: 45%;
    font-weight: 600;
    padding: 0px 4px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    content: "New";
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Bắt đầu css xem thêm description */
.description.shortened {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.description-container .btn-showmore {
    margin: 2px 0 12px 0;
}

.description-container .btn-showmore button {
    color: #054fcb;
    font-size: 100%;
    cursor: pointer;
    background: #fff;
}

/* Kết thúc css xem thêm description */

/* Bắt đầu pagination-related-posts */
.pagination-related-posts {
    background: #f6f6f7;
    border-bottom: 1px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pagination-related-posts .next-related-post,
.pagination-related-posts .prev-related-post {
    max-width: 50%;
    flex-grow: 1;
}


.pagination-related-posts a {
    text-decoration: none;
    padding: 5px 2px;
    display: block;
    position: relative;
    white-space: nowrap;
}

.pagination-related-posts .text {
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 85%;
}

.pagination-related-posts .icon-svg {
    fill: black;
    color: black;
    background: #ffbd02;
    vertical-align: baseline;
    border-radius: 3px;
    display: inline-block;
    padding: 2px 2px;
    margin: 3px;
}

.pagination-related-posts a:hover {
    text-decoration: none !important;
}

.pagination-related-posts .next-related-post a {
    background-color: #f6f6f7;
    border-right: 1px solid #ddd;
    border-left: 0;
    background-position: left;
}

.pagination-related-posts .prev-related-post a {
    background-color: #f6f6f7;
    border-left: 1px solid #fff;
    border-right: 0;
    text-align: right;
    background-position: right;
}

/* Kết thúc pagination-related-posts */

/* Bắt đầu css standard-post-list của bài viết tiêu chuẩn */
.standard-post-list {
    background: #fff;
    /* border-radius: 15px; */
    margin-bottom: 10px;
    clear: both;
}

.standard-post-list a {
    /*display: block;*/
}

.standard-post-list .post-item-title {
    padding: 5px 12px 5px 12px;
    border-bottom: 1px solid #f3f3f3;
    clear: both;
}

.standard-post-list .post-item {
    height: 55px;
    padding: 10px 12px;
    clear: both;
    border-bottom: 1px solid #f3f3f3;
}

.standard-post-list .post-item .thumbnail {
    border-radius: 5px;
    border: 3px solid #dee1e6;
    float: left;
    margin: 0 10px 0 0;
}

.standard-post-list .post-item .thumbnail .img-thumbnail {
    width: 100px;
    height: 50px;
    border-radius: 3px;
}

.standard-post-list .post-item .title {
    padding-top: 2px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.standard-post-list .post-item .title h3 {
    font-size: 15px;
    font-weight: normal;
}

.standard-post-list .post-item .date {
    padding: 5px 0px;
    margin: 0px;
    font-size: 80%;
    color: #616a7b;
}

.load-more-standard-posts {
    text-align: center;
    padding: 5px 10px;
}

/* Kết thúc css standard-post-list của bài viết tiêu chuẩn */


/* Bắt đầu css standard của bài viết tiêu chuẩn */

.post-standard .content {
    line-height: 22px;
}

.post-standard .content ol,
.post-standard .content ul {
    padding: 5px 20px;
}

.post-standard .content ol {
    list-style-type: auto;
}

.post-standard .content ul {
    list-style-type: unset;
}

.post-standard .content p {
    margin: 8px 0;
}

.post-standard .tags {
    padding: 5px 0px 2px 0px;
}

.post-standard .categorys {
    padding: 2px 0px;
}

.post-standard .standard-related-posts-list {
    padding: 5px;
    margin: 0px;
}

.post-standard .standard-related-posts-list ol,
.post-standard .standard-related-posts-list ul {
    list-style-type: disc !important;
    padding: 0px !important;
}

.post-standard .standard-related-posts-list .post-item {
    margin: 5px 30px;
}

.post-standard .standard-related-posts-list .title h3 {
    display: inline;
    font-size: 100%;
    font-weight: normal;
}

/* Kết thúc css standard của bài viết tiêu chuẩn */


/* Bắt đầu css Play audio */

.soundwave-icon,
.audio-play-icon,
.button-play,
.button-play-error {
    margin-right: 8px;
}

.group-play-link {
    margin: 5px 10px;
}

.button-play,
.button-play-error {
    position: relative;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    cursor: pointer;
    background-color: #ffb000;
    text-align: center;
}

.button-play {}

.button-play-error {
    /*background-color: blue;*/
}

.button-play-error-404 {
    background-color: #f00;
}

.post-item:hover .button-play,
.post-item:hover .button-play-error {
    background-color: #ff9701 !important;
}

.icon-play,
.icon-pause {
    width: 10px;
    height: 10px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    transform: translate(-50%, -50%);
}

.icon-play {
    font-weight: bold;
}

/* in đậm tiêu đề */
.icon-play {
    background-image: url(../images/play-button.png);
}

.icon-pause {
    background-image: url(../images/pause-button.png);
}


/* In đậm nội dung phát khi play */
.playing-font-bold .playing-bold h3,
.playing-font-bold .playing-bold {
    font-weight: bold !important;
    color: #064ecc !important;
}

/* Kết thúc css Play audio */



#container .search-box,
#sidebar .search-box {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 10px;
}

#container .search-form,
#sidebar .search-form {
    width: 100%;
    height: 36px;
    position: relative;
    display: flex;

    background-color: #f6f6f7;
    border-radius: 15px;
}

#container .search-input,
#sidebar .search-input {
    color: #024fca;
    caret-color: #024fca;
    font-size: 100%;
    border-radius: 15px 0px 0px 15px;
    background-color: transparent;
    width: 100%;
    padding: 3px 3px 3px 5px;
    margin-right: 5px;
}

#container .search-form input::-moz-placeholder,
#sidebar .search-form input::-moz-placeholder {
    color: #044fcc;
    /* Màu cho placeholder Firefox */
    font-style: italic;
}

#container .search-form input::-webkit-input-placeholder,
#sidebar .search-form input::-webkit-input-placeholder {
    color: #044fcc;
    /* Màu cho placeholder Chrome, Safari, Opera */
    font-style: italic;
}

#container .search-button,
#sidebar .search-button {
    justify-content: center;
    align-items: center;
    display: flex;
    color: #054fcb;
    font-size: 80%;
    font-weight: bold;
    background-color: transparent;
    border-radius: 0px 15px 15px 0px;
    border-left: 3px solid #ffffff;
    padding: 10px 5px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    /* Ẩn nút mặc định trên Safari */
    appearance: none;
    /* Ẩn nút mặc định trên các trình duyệt khác */

}

#container .search-button .title-search-button,
#sidebar .search-button .title-search-button {
    padding-left: 3px;
}

#container .clear-search-button,
#sidebar .clear-search-button {
    fill: #054fcb;
    color: #054fcb;
    background-color: unset;
    border-radius: 0px 10px 10px 0px;
    padding: 5px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;

}

#container .search-box .clear-search-button:hover,
#sidebar .search-box .clear-search-button:hover {
    fill: #f00;
    color: #f00;
}


#sidebar .post-item-title .section-title,
#sidebar .menu-item-title .section-title {
    color: #404e66;
    font-size: 99%;
    display: inline;
    padding: 0px;
}

#container,
#sidebar {
    /* margin-left:10px;
    margin-right:10px; */
    margin-bottom: 10px;
}

#container ul,
#sidebar ul {
    list-style-type: none;
}

.content {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

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

.content .audio-player-box {
    background: #f6f6f7;
}

.content .audio-player-box .error-audio-player {
    color: #f00;
    text-align: center;
    background: #282c33;
    display: block;
    padding: 10px;
}

.content .error-file {
    color: #f00;
}

/* Bắt đầu css nút download share */
.download-share-box {
    text-align: center;
    margin-left: 10px;
    padding-bottom: 5px;
}

.download-share-box .adownload-btn {
    display: inline-flex;
    font-size: 100%;
    margin: 6px 0px;
    padding: 2px 12px;
    margin-right: 10px;
    width: 220px;
    background-color: #f6f6f7;
    font-weight: 400;
    line-height: 1.4;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-shadow: 2px 1.5px 0 0 rgb(116 126 141 / 17%);
    -webkit-box-shadow: 2px 1.5px 0 0 rgb(116 126 141 / 17%);
}

.download-share-box .adownload-btn {
    transform: scale(1);
    transition: transform 0.5s ease;
}

.download-share-box .button-item {
    display: inline;
}

.download-share-box .button-item:hover .adownload-btn {
    transform: scale(1.03) !important;
    transition: transform 0.5s ease !important;
}

.download-share-box .button-item a:active {
    transform: translateY(0.5px);
    box-shadow: 2px 1.5px 0 0 rgb(1 50 124 / 73%) !important;
    -webkit-box-shadow: 2px 1.5px 0 0 rgb(1 50 124 / 73%) !important;
}

.download-share-box .button-item a:hover {
    text-decoration: none;
    color: #fff;
    background: #0000ff;
}

.download-share-box .icon-svg {
    fill: unset !important;
    color: unset !important;
    vertical-align: middle;
    display: inline-block;
    padding: 0px 4px;
}

.download-share-box .adownload-report {
    color: revert !important;
}

.download-share-box .adownload-text {
    font-weight: 700;
}

/* Kết thúc css nút download share */

.search-input:not(:valid)~.clear-search-button {
    display: none;
    /* Ẩn nút search cancel button */
}

.icon-svg {
    fill: #404e66;
    color: #404e66;
    vertical-align: middle;
    display: inline-block;
}

.icon-svg-error {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 0px 20px 0px;
}

.section-title {
    color: #404e66;
    font-size: 99%;
    padding: 10px 0px;
}

.post-title {
    color: #3f4e65;
    line-height: 30px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-bottom: 10px;
    padding: 0 10px 10px 10px;
}

.content .file-info .author-info-wrapper {
    position: relative;
}

.content .file-info .author-info {
    padding: 0px 10px 0px 0px;
}

.content .file-info .author-info-tooltip {
    width: 246px;
    display: none;
    position: absolute;
    top: -227%;
    left: 48%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 85%;
    white-space: nowrap;
    background-color: #222;
    text-align: center;
    padding: 4px 5px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 10px rgb(245 244 244 / 70%);
    z-index: 500;
}

.content .file-info .author-info-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 40%;
    white-space: nowrap;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.content .file-info .author-info-wrapper:hover .author-info-tooltip,
.content .file-info .author-info-tooltip:hover .author-info-tooltip {
    display: block;
}

.content .file-info {
    font-size: 92%;
}

.content .file-info .file-detail .icon-svg {
    fill: unset;
    color: unset;
    vertical-align: unset;
    display: inline-block;
    padding: 0;
    margin: 0;
}

.content .file-info .file-detail {
    border-spacing: 0px;
    line-height: 21px;
}

.content .file-info .description-container {
    line-height: 21px;
}

.content .file-info .file-label {
    white-space: nowrap;
}

.content .file-info .categorys a,
.content .file-info .tags a {
    background: #f6f6f7;
    padding: 0px 6px;
    border-radius: 5px;
}


#container .author-posted-on-date {
    font-size: 99%;
    font-style: italic;
    padding: 0 10px 10px 12px;

}

.button-load-more {
    background: #fff;
    padding: 10px;
    text-align: center;
    list-style-type: none;
}

.button-load-more button {
    color: #0645ad;
    font-size: 100%;
    cursor: pointer;
    background: #fff;
}

.load-more-related-posts {
    text-align: center;
    list-style-type: none;
}

.load-more-related-posts-notice {
    text-align: center;
    margin: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background: #f2f4f7;
}

.load-more-related-posts button {
    color: #0645ad;
    font-size: 100%;
    cursor: pointer;
    text-align: center;
    margin: 0px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background: #ffffff;
}

.button-load-more .icon-svg,
.load-more-standard-posts .icon-svg,
.load-more-related-posts .icon-svg {
    fill: #0745ad;
    color: #0745ad;
    vertical-align: middle;
    display: inline-block;
    padding-left: 0px;
}


.ads-player {
    text-align: center;
    background: #fbfbfb;
    /* border-radius: 15px 15px 0 0; */
    margin: 0px auto;
    padding: 10px 0px;
    min-height: 250px;

    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Kết thúc css dùng chung */


/* Bắt đầu css post list dùng chung */

#container .all-post-list ul,
#sidebar .all-post-list ul,
.search-box .all-post-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#container .all-post-list .section-title,
#sidebar .all-post-list .section-title,
.search-box .all-post-list .section-title {
    color: #404e66;
    font-size: 99%;
    font-weight: bold;
    padding: 4px 0px;
}

#container .all-post-list,
#sidebar .all-post-list,
.search-box .all-post-list {
    background-color: #fff;
    /* border-radius: 15px; */
    margin-bottom: 10px;
}

#container .all-post-list .archive-description p {
    display: inline;
}

#container .item,
#sidebar .item,
.search-box .item {
    padding: 5px 12px 5px 12px;
    position: relative;
    border-bottom: 1px solid #f3f3f3;
}

#container .item:last-child,
#sidebar .item:last-child,
.search-box .item:last-child {
    border: 0;
}

#sidebar .all-tags-toggle {
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    background-color: #f3f3f3;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 1px 8px;
    margin-right: 4px;
    margin-bottom: 4px;
    color: #054fcb;
    font-size: 12px;
    line-height: 1.3;
    vertical-align: baseline;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease, box-shadow 0.3s ease-in-out;
}

#sidebar .all-tags-toggle:hover {
    background-color: #054fcb;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#sidebar .all-tags-list {
    margin-top: 8px;
}

#sidebar .all-tags-list a {
    font-size: 14px !important;
    line-height: 1.6;
}

#sidebar .all-tags-empty {
    display: block;
    color: #616a7b;
    font-size: 14px;
}

#sidebar .all-tags-manage {
    display: block;
    margin-top: 8px;
    color: #054fcb;
    font-size: 14px !important;
}

/* Kết thúc css post list dùng chung */