
.article-content {
    --article-text: #3f4652;
    --article-heading: #182230;
    --article-muted: #84909f;
    --article-accent: #2563eb;
    --article-line: #e9edf2;

    color: var(--article-text);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}

/* Paragraph */
.article-content p {
    margin: 0 0 22px;
}

/* Heading */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--article-heading);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.article-content h1 {
    font-size: 36px;
    margin: 48px 0 24px;
}

.article-content h2 {
    font-size: 29px;
    margin: 48px 0 20px;
}

.article-content h3 {
    font-size: 23px;
    margin: 36px 0 16px;
}

.article-content h4 {
    font-size: 19px;
    margin: 28px 0 14px;
}

.article-content h5,
.article-content h6 {
    font-size: 17px;
    margin: 24px 0 12px;
}

/* Heading đầu tiên không cần khoảng cách lớn */
.article-content > h1:first-child,
.article-content > h2:first-child,
.article-content > h3:first-child {
    margin-top: 0;
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Image from CKEditor */
.article-content figure {
    max-width: 100%;
    margin: 38px 0;
}

.article-content figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

/* Full-width images */
.article-content figure.image.image_resized {
    max-width: 100%;
}

/* Image caption */
.article-content figcaption {
    margin-top: 13px;
    color: var(--article-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

/* Links */
.article-content a {
    color: var(--article-accent);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, .3);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: .2s ease;
}

.article-content a:hover {
    color: #1d4ed8;
    text-decoration-color: currentColor;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 0 0 26px;
    padding-left: 28px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    padding-left: 5px;
    margin-bottom: 9px;
}

.article-content li::marker {
    color: #a0aab7;
}

.article-content li p {
    margin-bottom: 8px;
}

/* Blockquote */
.article-content blockquote {
    margin: 34px 0;
    padding: 22px 28px;
    border-left: 3px solid var(--article-accent);
    background: #f7f9fc;
    color: #536174;
    font-size: 18px;
    line-height: 1.75;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Table */
.article-content table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    border: 0;
    font-size: 15px;
    line-height: 1.65;
}

.article-content th,
.article-content td {
    padding: 14px 16px;
    border: 1px solid var(--article-line);
    text-align: left;
}

.article-content th {
    background: #f7f9fc;
    color: var(--article-heading);
    font-weight: 650;
}

.article-content tr:nth-child(even) td {
    background: #fbfcfe;
}

/* Inline code */
.article-content code {
    padding: 3px 6px;
    border-radius: 4px;
    background: #f1f3f6;
    color: #c0265c;
    font-size: .88em;
}

/* Code block */
.article-content pre {
    margin: 30px 0;
    padding: 22px 24px;
    overflow-x: auto;
    border: 1px solid #283447;
    border-radius: 8px;
    background: #172033;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.75;
}

.article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

/* Horizontal line */
.article-content hr {
    margin: 42px 0;
    border: 0;
    border-top: 1px solid var(--article-line);
}

/* Bold */
.article-content strong,
.article-content b {
    color: var(--article-heading);
    font-weight: 700;
}

/* Video / iframe */
.article-content iframe {
    display: block;
    max-width: 100%;
    margin: 30px auto;
    border: 0;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .article-content h1 {
        font-size: 29px;
        margin-top: 36px;
    }

    .article-content h2 {
        font-size: 25px;
        margin-top: 36px;
    }

    .article-content h3 {
        font-size: 21px;
        margin-top: 28px;
    }

    .article-content figure {
        margin: 26px 0;
    }

    .article-content figure img {
        border-radius: 6px;
    }

    .article-content blockquote {
        padding: 17px 20px;
        font-size: 16px;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-content pre {
        padding: 16px;
        font-size: 13px;
    }
}
