﻿body {
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.aoe-detail-content-card strong,
.aoe-detail-sidebar strong {
    font-family: inherit !important;
}

.aoe-detail-content-card h2,
.aoe-detail-content-card h3,
.aoe-detail-content-card h4,
.aoe-detail-content-card h5,
.aoe-detail-content-card h6 {
    color: #214252 !important;
}

.main-content a {
    color: #C86478;
    text-decoration: none;
}

    .main-content a:hover {
        text-decoration: underline;
    }

.post-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
    color: #000;
}

.post-content-body th,
.post-content-body td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    background-color: #fff;
}

.post-content-body th {
    background-color: #f5f5f5;
    font-weight: bold;
}


.ads-container {
    width: 100%;
}

.toc-container {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 4px solid #C86478;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .toc-container h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #214252;
    }

#toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    #toc-list li {
        margin: 6px 0;
        line-height: 1.4;
    }

    #toc-list a {
        color: #C86478;
        text-decoration: none;
        font-size: 15px;
    }

        #toc-list a:hover {
            text-decoration: underline;
        }

        #toc-list a.h3-link {
            margin-left: 15px;
            font-size: 14px;
        }

html {
    scroll-behavior: smooth;
}

.toc-title {
    font-weight: bold;
}

#blog-content {
    color: #2f3f48;
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 17px;
    line-height: 1.85;
    margin: 0 auto;
    max-width: 70ch;
}

    #blog-content :not(pre):not(code):not(kbd):not(samp) {
        font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    }

    #blog-content h1,
    #blog-content h2,
    #blog-content h3,
    #blog-content h4,
    #blog-content h5,
    #blog-content h6,
    #blog-content strong,
    #blog-content b {
        font-weight: 700;
    }

    /* --- Heading --- */
    #blog-content h2,
    #blog-content h3,
    #blog-content h4 {
        scroll-margin-top: 90px; /* Khi click TOC không bị che mất */
    }

    /* H2 */
    #blog-content h2 {
        margin-top: 38px;
        margin-bottom: 18px;
        font-size: 1.72em;
        color: #214252;
        border-left: 4px solid #C86478;
        padding-left: 14px;
        font-weight: 800;
        line-height: 1.3;
    }

    /* H3 */
    #blog-content h3 {
        margin-top: 30px;
        margin-bottom: 15px;
        font-size: 1.38em;
        color: #333;
        padding-left: 14px;
        border-left: 3px solid #e3a8b4;
        font-weight: 750;
        line-height: 1.35;
    }

    /* H4 */
    #blog-content h4 {
        margin-top: 25px;
        margin-bottom: 10px;
        font-size: 1.18em;
        color: #444;
        padding-left: 12px;
        border-left: 2px solid #f0ccd3;
        font-weight: 700;
        line-height: 1.4;
    }

    /* --- Paragraphs --- */
    #blog-content p {
        margin-bottom: 1.1em;
    }

    /* --- Strong text --- */
    #blog-content strong {
        color: #222;
    }

    /* --- Links --- */
    #blog-content a {
        color: #C86478;
        text-decoration: none;
        border-bottom: 1px solid #C86478;
        transition: color 0.2s, border-color 0.2s;
    }

        #blog-content a:hover {
            color: #a65064;
            border-bottom-color: #a65064;
        }

    /* --- Images --- */
    #blog-content img {
        height: auto;
        max-width: 100%;
        border-radius: 8px;
        display: block;
        margin: 26px auto;
        box-shadow: 0 12px 28px rgba(33, 66, 82, 0.12);
    }

    /* --- Lists --- */
    #blog-content ul,
    #blog-content ol {
        margin: 15px 0 15px 25px;
    }

    #blog-content li {
        margin-bottom: 8px;
        padding-left: 2px;
    }

    #blog-content li::marker {
        color: #C86478;
        font-weight: 700;
    }

    /* --- Blockquotes --- */
    #blog-content blockquote {
        margin: 25px 0;
        padding: 18px 22px;
        background: #fff6f8;
        font-style: italic;
        color: #555;
        border-left: 4px solid #C86478;
        border-radius: 8px;
    }

    /* --- Code blocks --- */
    #blog-content pre {
        background: #f3f3f3;
        padding: 12px;
        border-radius: 6px;
        overflow-x: auto;
        font-size: 0.95em;
        color: #333;
    }

    /* --- Tables --- */
    #blog-content table {
        display: block;
        max-width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        overflow-x: auto;
        white-space: nowrap;
    }

    #blog-content th,
    #blog-content td {
        border: 1px solid #ddd;
        padding: 10px 12px;
        text-align: left;
    }

    #blog-content th {
        background-color: #f5f5f5;
        color: #333;
    }

    #blog-content iframe,
    #blog-content video {
        aspect-ratio: 16 / 9;
        border: 0;
        border-radius: 8px;
        display: block;
        height: auto;
        margin: 26px auto;
        max-width: 100%;
        width: 100%;
    }

    #blog-content hr {
        border: 0;
        border-top: 1px solid #e8eef2;
        margin: 34px 0;
    }

@media (max-width: 575.98px) {
    #blog-content {
        font-size: 16px;
        line-height: 1.75;
    }

    #blog-content h2 {
        font-size: 1.42em;
    }

    #blog-content h3 {
        font-size: 1.22em;
    }
}
