        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Collapsible table of contents */
        .table-of-contents {
            margin-bottom: 30px;
            padding: 20px;
            background: #0b0e13;
            border: 1px solid #161619;
            border-radius: 3px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
            color: #fff;
        }

        .table-of-contents h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            text-align: center;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px 10px;
            font-weight: bold;
            text-transform: uppercase;
            color: #fff;
        }

        .table-of-contents h3 i {
            font-size: 1rem;
            transition: transform 0.3s ease;
        }

        .table-of-contents.collapsed h3 i {
            transform: rotate(-90deg);
        }

        .table-of-contents ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: block; /* Hide initially */
            max-height: 500px;
            overflow-y: scroll;
        }

        .table-of-contents ul li {
            display: flex;
            align-items: center;
            padding: 10px;
            background-color: #161619;
            border-radius: 5px;
            margin: 5px;
            font-size: 15px;
            cursor: pointer;
            color: #fff;
            transition: background-color 0.3s ease;
        }

        .table-of-contents ul li:hover {
            background-color: #f9f9f9;
            color: #000; /* Ensures text remains visible */
        }

        .table-of-contents ul li a {
            text-decoration: none;
            color: inherit; /* Inherits color to ensure visibility on hover */
            display: block;
        }

        .table-of-contents ul li a:hover {
            text-decoration: underline;
        }

        /* Custom scrollbar for TOC */
        .table-of-contents ul::-webkit-scrollbar {
            width: 8px;
        }

        .table-of-contents ul::-webkit-scrollbar-track {
            background: #0b0e13;
            border-radius: 3px;
        }

        .table-of-contents ul::-webkit-scrollbar-thumb {
            background: #e51515;
            border-radius: 3px;
        }

        .table-of-contents ul::-webkit-scrollbar-thumb:hover {
            background: #b31212;
        }

        /* Update for the blog post content styling */
        .blog-post {
            max-width: 800px;
            margin: 40px auto;
            padding: 30px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        }

        .blog-post h2 {
            font-size: 2.5rem;
            margin-bottom: 25px;
            text-align: center;
                font-weight: bold;
    color: #cd1b1b;
        }

        .blog-post h3 {
            font-size: 2rem;
            margin-top: 35px;
            margin-bottom: 20px;
            padding-top: 80px; /* Padding to avoid hiding under header */
            margin-top: -80px; /* Negative margin to compensate for padding */
        }

        .blog-post h4 {
            font-size: 1.75rem;
            margin-top: 25px;
            margin-bottom: 15px;
            padding-top: 80px; /* Padding to avoid hiding under header */
            margin-top: -80px; /* Negative margin to compensate for padding */
        }

        .blog-post p {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .blog-post pre {
            background: #f4f4f4;
            padding: 20px;
            border-radius: 8px;
            overflow-x: auto;
            font-size: 1rem;
        }

        .blog-post code {
            font-family: 'Courier New', Courier, monospace;
            font-size: 1.1rem;
        }

        #title0 {
            margin-top: 0px;
            margin-bottom: 0px;
            padding-top: 0px;
        }