#blog-detail {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: "Public Sans", sans-serif;
    line-height: 1.6;
    color: #333;

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 1rem;
        line-height: 1.3;
        color: #222;
    }
    h1 { font-size: 2.5rem; margin-top: 2rem; }
    h2, h3, h4 { font-size: 24px; margin: 8px 0; }
    h5 { font-size: 1.2rem; margin-top: 1rem; }
    h6 { font-size: 1rem; margin-top: 0.8rem; }

    p {
        margin-bottom: 1.5rem;
    }

    /* Links */
    a {
        color: #2d6da3;
        text-decoration: none;
        transition: color 0.3s;
    }
    a:hover {
        color: #1a4971;
        text-decoration: underline;
    }

    /* Lists - Improved Styling */
    ul, ol {
        margin: 1.5rem 0;
        padding-left: 0;
        list-style-position: outside;
    }
    
    ul {
        list-style: none;
    }
    
    ul li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    ul li:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.6rem;
        width: 6px;
        height: 6px;
        background-color: #2d6da3;
        border-radius: 50%;
    }
    
    ol {
        counter-reset: list-counter;
        list-style: none;
    }
    
    ol li {
        position: relative;
        padding-left: 1.8rem;
        margin-bottom: 0.8rem;
        counter-increment: list-counter;
        display: flex;
        font-family: "Public Sans", sans-serif !important;
    }
    span, p{font-family: "Public Sans", sans-serif !important; line-height: 30px; font-size: 15px;}    
    ol li:before {
        content: counter(list-counter);
        position: absolute;
        left: 0;
        top: 0.2rem;
        font-size: 0.8rem;
        font-weight: bold;
        color: #fff;
        background-color: #2d6da3;
        width: 1.2rem;
        height: 1.2rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        margin: 1.5rem 0;
    }

    /* Blockquotes */
    blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1.5rem;
        border-left: 4px solid #2d6da3;
        background-color: #f5f7f9;
        font-style: italic;
    }

    /* Code blocks */
    pre, code {
        font-family: 'Courier New', monospace;
        background-color: #f5f7f9;
        border-radius: 4px;
    }
    pre {
        padding: 1rem;
        overflow-x: auto;
        margin: 1.5rem 0;
    }
    code {
        padding: 0.2rem 0.4rem;
    }

    /* Tables */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
    }
    th, td {
        padding: 0.75rem;
        border: 1px solid #ddd;
        text-align: left;
    }
    th {
        background-color: #f5f7f9;
    }    /* Responsive adjustments */
    @media (max-width: 768px) {
        padding: 1rem;
        h1 { font-size: 2rem; }
        h2 { font-size: 1.7rem; }
        h3 { font-size: 1.4rem; }
    }
}

/* Comments styling */
.comments-box {
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.comments-title h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #333;
}

.comments-container {
    margin-bottom: 2rem;
}

.comment-item {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment-author-avatar {
    margin-right: 1rem;
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.commenter-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.comment-date {
    font-size: 0.85rem;
    color: #777;
}

.comment-text {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-actions {
    margin-top: 0.5rem;
}

.reply-button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reply-button:hover {
    text-decoration: underline;
}

.comment-replies {
    margin-top: 1.5rem;
    margin-left: 2.5rem;
    border-left: 2px solid #f0f0f0;
    padding-left: 1.5rem;
}

.reply-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #f0f0f0;
}

.reply-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reply-form-container {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.reply-input {
    margin-bottom: 0.5rem;
}

.reply-actions {
    display: flex;
    gap: 10px;
}

.no-comments {
    font-style: italic;
    color: #777;
    text-align: center;
    padding: 2rem 0;
}