.blog-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

.blog-sidebar {
    flex: 0 0 150px;
}

.blog-topics-headline {
    margin-top: 0;
}

.blog-topics {
    margin: 0;
}

.mobile-dropdown-trigger {
    display: none;
    /* Hidden by default, shown on mobile */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
}

.dropdown-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin: 0;
    padding: 10px 10px;
    transition: transform 0.3s ease;
    line-height: 0;
    letter-spacing: 0;
}

.dropdown-button.open {
    transform: rotate(180deg);
}

.divider {
    width: 1px;
    background-color: #e0e0e0;
    position: absolute;
    left: 180px;
    top: 20px;
    bottom: 20px;
}

.blog-content {
    flex: 1;
    padding: 20px 0 20px 20px;
}

#topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: max-height 0.3s ease-out;
}

#topic-list li {
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

#topic-list li:hover {
    color: hsla(36, 72%, 70%, 1);
}

#post-content {
    line-height: 1.6;
}

/* Markdown content styles */
#post-content h1 {
    margin-top: 0;
    font-size: 2em;
    margin-bottom: 0.5em;
}

#post-content h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

#post-content h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

#post-content p {
    margin-bottom: 1em;
}

#post-content p+p em {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: hsla(36, 72%, 70%, 1);
    margin-top: 0.5em;
}

#post-content code {
    background: grey;
    padding: 2px 4px;
    border-radius: 4px;
}

#post-content pre {
    background: grey;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}

#post-content blockquote {
    border-left: 4px solid #ddd;
    margin: 0;
    padding-left: 1em;
}

#post-content img {
    padding-bottom: 10px;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

/* Special handling for mobile screenshots */
#post-content img[alt*="screenshot"],
#post-content img[alt*="mobile"],
#post-content img[src*="screenshot"],
#post-content img[src*="mobile"] {
    max-width: 275px;
    /* Common mobile width */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


#post-content ul,
#post-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

/* Responsive styles */
@media (max-width: 768px) {

    #post-content img {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .blog-container {
        flex-direction: column;
        padding: 15px;
    }

    .blog-sidebar {
        flex: none;
        width: 100%;
    }

    .blog-topics-headline {
        display: none;
    }

    .mobile-dropdown-trigger {
        display: flex;
    }

    .dropdown-button {
        display: block;
    }

    #topic-list {
        max-height: 0;
        overflow: hidden;
    }

    #topic-list.open {
        max-height: 500px;
        overflow-y: auto;
        /* Adjust based on your needs */
    }

    .blog-content {
        padding: 15px 0;
    }

    .divider {
        width: 100%;
        height: 1px;
        position: static;
        margin: 10px 0;
    }

    #topic-list li {
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

    #topic-list li:last-child {
        border-bottom: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .blog-container {
        padding: 10px;
    }

    #post-content h1 {
        font-size: 1.75em;
    }

    #post-content h2 {
        font-size: 1.25em;
    }

    #post-content h3 {
        font-size: 1.1em;
    }
}

.comments-section {
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #2C2C2D;
    border-radius: 5px;
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: bold;
    color: white;
    font-size: 2em;
}

.comment-date {
    color: white;
}

.comment-content {
    line-height: 1.5;
    white-space: pre-line;
    color: #ffffff;
    font-style: italic;
}

.comment-form-container {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: hsla(36, 72%, 70%, 1);
    color: #333;
}

.error-message {
    color: #e74c3c;
}

.no-comments {
    font-style: italic;
    color: #777;
}

.delete-comment-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 5px;
}

.delete-comment-btn:hover {
    color: #e74c3c;
}

/* Responsive styles */
@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
    }

    .comment-date {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
}