/* Article Block Styles */

/* WYSIWYG Block - Quill Content Display */
.ql-editor-content {
    font-size: 1rem;
    line-height: 1.6;
}

.ql-editor-content h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 0.67em 0;
}

.ql-editor-content h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0.75em 0;
}

.ql-editor-content h3 {
    font-size: 1.17em;
    font-weight: bold;
    margin: 0.83em 0;
}

.ql-editor-content p {
    margin: 1em 0;
}

.ql-editor-content ul,
.ql-editor-content ol {
    padding-left: 1.5em;
    margin: 1em 0;
}

.ql-editor-content li {
    margin: 0.5em 0;
}

.ql-editor-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1em;
    margin: 1em 0;
    color: #666;
}

.ql-editor-content code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.ql-editor-content pre {
    background-color: #f4f4f4;
    padding: 1em;
    border-radius: 3px;
    overflow-x: auto;
}

.ql-editor-content img {
    max-width: 100%;
    height: auto;
}

.ql-editor-content a {
    color: #0066cc;
    text-decoration: underline;
}

.ql-editor-content a:hover {
    color: #004499;
}

/* Image Block */
.block-image figure {
    margin: 0;
}

.block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.block-image figcaption {
    font-size: 0.9em;
    font-style: italic;
}

/* Related Articles Block */
.block-related-articles .list-group-item {
    transition: background-color 0.2s;
}

.block-related-articles .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Block spacing */
.block {
    margin-bottom: 2rem;
}

.block:last-child {
    margin-bottom: 0;
}
