/* ===== CSS bổ sung ngoài Tailwind ===== */

html {
    scroll-behavior: smooth;
}

/* ===== Định dạng nội dung bài viết (HTML render từ ArticleService) ===== */

.article-content {
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0f172a;
}

.article-content h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.article-content p {
    margin: 1rem 0;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin: 0.5rem 0;
}

.article-content li::marker {
    color: #1b6ef5;
}

.article-content a {
    color: #1b6ef5;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #1457e1;
}

.article-content strong {
    color: #0f172a;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid #1b6ef5;
    background: #eef7ff;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

::selection {
    background-color: #1b6ef5;
    color: #fff;
}

/* Thanh cuộn gọn gàng trên desktop */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    ::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}
