﻿body {
    font-family: Tahoma, Helvetica, sans-serif !important;
}

strong {
    font-family: Tahoma, Helvetica, sans-serif !important;
}

h2, h3, h4, h5, 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 {
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.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 {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

    /* --- 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: 40px;
        margin-bottom: 20px;
        font-size: 2.0em;
        color: #214252;
        border-left: 4px solid #C86478;
        padding-left: 10px;
        font-weight: 600;
    }

    /* H3 */
    #blog-content h3 {
        margin-top: 30px;
        margin-bottom: 15px;
        font-size: 1.7em;
        color: #333;
        padding-left: 20px;
        border-left: 3px solid #e3a8b4;
        font-weight: 600;
    }

    /* H4 */
    #blog-content h4 {
        margin-top: 25px;
        margin-bottom: 10px;
        font-size: 1.5em;
        color: #444;
        padding-left: 30px;
        border-left: 2px solid #f0ccd3;
        font-weight: 500;
    }

    /* --- 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 {
        max-width: 100%;
        border-radius: 8px;
        display: block;
        margin: 20px auto;
        box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    }

    /* --- Lists --- */
    #blog-content ul,
    #blog-content ol {
        margin: 15px 0 15px 25px;
    }

    #blog-content li {
        margin-bottom: 8px;
    }

    /* --- Blockquotes --- */
    #blog-content blockquote {
        margin: 25px 0;
        padding: 15px 20px;
        background: #fff;
        font-style: italic;
        color: #555;
        border-radius: 4px;
    }

    /* --- 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 {
        max-width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    #blog-content th,
    #blog-content td {
        border: 1px solid #ddd;
        padding: 10px 12px;
        text-align: left;
    }

    #blog-content th {
        background-color: #f5f5f5;
        color: #333;
    }
