﻿/* #region video-box */
@media (max-width: 991.98px) {
    .video-box {
        height: inherit !important;
    }

        .video-box .video-box__list {
            padding: 0 !important;
            height: 300px !important;
            overflow: auto;
            margin-top: 10px;
        }
}

.video-box {
    height: 310px;
}

    .video-box .video-box__player > div {
        height: 100% !important;
    }

    .video-box .video-box__list {
        padding: 0 5px;
        height: 100%;
        overflow: auto;
    }

        .video-box .video-box__list ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            .video-box .video-box__list ul li:not(:last-child) {
                margin-bottom: 6px;
            }

        .video-box .video-box__list .video-box__list-clicker {
            display: flex;
            align-items: flex-start;
            flex-direction: row;
        }

            .video-box .video-box__list .video-box__list-clicker.active {
                font-weight: bold;
            }

            .video-box .video-box__list .video-box__list-clicker .video-box__list-clicker_thumbnail {
                width: 50%;
                min-width: 132px;
            }

            .video-box .video-box__list .video-box__list-clicker .video-box__list-clicker_title {
                padding: 5px;
                width: 50%;
            }
/* #endregion */

/* #region audio-box */
.audio-box__list-clicker.active {
    font-weight: bold;
}
/* #endregion */

/* #region hdld-box */
.hdld-box .owl-carousel .owl-item img {
    height: 176px;
}
/* #endregion */

/* Widget RIGHT - ép ảnh full khung */
[data-box="widget"][data-position="RIGHT"] a {
    display: block;
    width: 100%;
    overflow: hidden;
}

/* Ảnh widget */
[data-box="widget"][data-position="RIGHT"] img {
    width: 100% !important;
    height: 120px; /* chỉnh tùy ý: 100–150px */
    object-fit: contain; /* CỰC QUAN TRỌNG */
    display: block;
    background-color: #f5f5f5;
}

/* CSS cho danh sách Audio */
.audio-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.audio-item.active {
    background-color: #e7f1ff;
    border-left: 3px solid #007bff;
}

.audio-list-wrapper::-webkit-scrollbar {
    width: 4px;
}

.audio-list-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 15px;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

    .document-item:hover {
        background-color: #f8f9fa;
        padding-left: 20px; /* Hiệu ứng đẩy nhẹ sang phải */
    }

.document-title {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Cắt dòng chuyên nghiệp hơn */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.document-item:hover .document-title {
    color: #0056b3;
}

.document-date {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    white-space: nowrap; /* Không cho ngày xuống dòng */
}

.doc-icon {
    color: #dc3545; /* Màu đỏ cho văn bản/pdf */
    margin-right: 10px;
    margin-top: 3px;
}

.ebook-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 15px;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

    .ebook-item:hover {
        background-color: #f8f9fa;
        padding-left: 20px; /* Hiệu ứng đẩy nhẹ sang phải */
    }

.ebook-title {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Cắt dòng chuyên nghiệp hơn */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.ebook-item:hover .ebook-title {
    color: #0056b3;
}

.ebook-date {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    white-space: nowrap; /* Không cho ngày xuống dòng */
}

.ebook-icon {
    color: #4a99ed; /* Màu đỏ cho văn bản/pdf */
    margin-right: 10px;
    margin-top: 3px;
}

.mm-toggle-item {
    color: #333;
    transition: all 0.2s;
    border: 1px solid transparent;
}

    .mm-toggle-item:hover, .mm-toggle-item.active {
        background-color: #f8f9fa;
        color: #007bff;
        border-color: #dee2e6;
        text-decoration: none;
    }

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.multimedia-toggle-list::-webkit-scrollbar {
    width: 4px;
}

.multimedia-toggle-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Đảm bảo khung bao video luôn có màu nền đen để không bị hở trắng */
.video-wrapper {
    background-color: #000;
    overflow: hidden;
    border-radius: 4px;
}

    /* Ép Plyr tuân thủ chiều cao 350px */
    .video-wrapper .plyr {
        height: 350px;
    }

    /* Xử lý iframe Youtube để không có khoảng trắng */
    .video-wrapper .plyr__video-embed iframe {
        top: 50%;
        transform: translateY(-50%) scale(1.01);
    }
