
/* General Blog Styling */
.blog-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    align-items: flex-start; /* Align items to the top */
}

/* Blog Menu (Sidebar) */
.blog-menu {
    flex: 1;
    min-width: 250px; /* Slightly wider menu */
    max-width: 300px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky; /* Make menu sticky */
    top: 20px; /* Distance from top */
}

.blog-menu h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a237e;
    font-size: 1.8em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.blog-menu ul {
    list-style: none;
    padding: 0;
}

.blog-menu ul li {
    margin-bottom: 12px;
}

.blog-menu ul li a {
    text-decoration: none;
    color: #3f51b5; /* A nice blue */
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    padding: 5px 0;
}

.blog-menu ul li a:hover {
    color: #007bff;
    transform: translateX(5px); /* Slight slide effect on hover */
}

/* Blog Post Display Area */
.blog-post-display {
    flex: 3;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.blog-post-display h1 {
    color: #1a237e;
    margin-top: 0;
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.blog-post-display h2 {
    color: #3f51b5;
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.blog-post-display p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.blog-post-display ul, .blog-post-display ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #555;
}

.blog-post-display li {
    margin-bottom: 8px;
}

.blog-post-display pre {
    background-color: #eef;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    border: 1px solid #ddd;
}

.blog-post-display code {
    background-color: #eef;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
        gap: 20px;
    }

    .blog-menu {
        position: static; /* Remove sticky on mobile */
        min-width: unset;
        max-width: unset;
        width: 100%;
    }

    .blog-post-display {
        width: 100%;
        padding: 20px;
    }

    .blog-menu h2 {
        font-size: 1.5em;
    }

    .blog-post-display h1 {
        font-size: 2em;
    }

    .blog-post-display h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .blog-menu, .blog-post-display {
        padding: 15px;
    }

    .blog-menu h2 {
        font-size: 1.3em;
    }

    .blog-post-display h1 {
        font-size: 1.8em;
    }

    .blog-post-display h2 {
        font-size: 1.3em;
    }
}
