.doc-section {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    color: #2d2d2d;
    background: #fff;
    padding: 20px;
}

.doc-section h1,
.doc-section h2,
.doc-section h3,
.doc-section h4,
.doc-section h5,
.doc-section h6 {
    margin-bottom: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.doc-section p {
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 16px;
    color: #444;
}

.doc-section img {
    max-width: 100%;
    margin-bottom: 16px;
    display: block;
}

.doc-section .doc-section-title {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 800;
    color: #111;
}

.doc-section pre {
    background: #2d2d2d;
    color: #e0e0e0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.doc-section code {
    font-family: 'Courier New', monospace;
}

.doc-section a {
    color: #1a73e8;
    text-decoration: none;
}

.doc-section a:hover {
    text-decoration: underline;
}
.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-block code {
    color: #f8f8f2;
}

.code-block .run-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.code-block .run-btn:hover {
    background: #555;
}
.code-block pre {
    white-space: pre-wrap;  /* Preserve line breaks */
    word-wrap: break-word;
    margin: 0;
}

/* Optional: Syntax colors */
.syntax-keyword { color: #c678dd; }   /* e.g., print */
.syntax-string  { color: #98c379; }   /* e.g., 'Python is powerful' */
.syntax-comment { color: #999999; font-style: italic; }  /* e.g., # Output: */