.splash_preview {
    width: 100%;
    height: 500px;
    position: relative;
    border: 4px solid black;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.dark .mode.light-img {
    display: none
}

.dark .mode.dark-img {
    display: block
}


@media (max-width: 991px) {
    .welcome-content {
        display: flex !important
    }
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    border: 2px solid #4CAF50;
    border-radius: 25px;
    /* Bo tròn */
    background-color: #fff;
    color: #4CAF50;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.custom-file-upload input[type="file"] {
    display: none;
    /* Ẩn input gốc */
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    /* mm-bg-danger */
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    transition: all .3s ease;
}

.back-to-top:hover {
    background: #c82333;
    transform: translateY(-3px);
}

/* Responsive images in doc content */
.doc-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Giữ ảnh không sát lề */
.doc-content img {
    margin: 10px auto;
}

/* Related docs slider */
.related-slider {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.related-slider::-webkit-scrollbar {
    height: 6px;
}

.related-slider::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 10px;
}

.related-item {
    min-width: 240px;
    max-width: 240px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    scroll-snap-align: start;
    transition: transform .2s ease;
}

.related-item:hover {
    transform: translateY(-4px);
}

.related-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
}

.related-category {
    font-size: 13px;
    color: #dc3545;
}

.search-result-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-box a {
    display: block;
    padding: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.search-result-box a:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.search-cat {
    font-size: 12px;
    color: #888;
}

.mm-search-bar {
    flex-grow: 1;
    max-width: 720px;
}

.mm-search-bar .searchbox {
    width: 100% !important;
    position: relative;
}

.mm-search-bar .search-input {
    width: 100%;
    padding-left: 40px;
}
.adsbygoogle {
    margin-top: 20px;
}

.ads-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    text-align: center;
    padding: 10px 0;
}
