/* css/article-page.css */

.article-content {
    background-color: var(--box-bg);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 40px auto;
    border: 1px solid var(--header-border);
}

.article-content h1, .article-content h2 {
    font-size: 28px;
    color: var(--title-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--header-border);
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 22px;
    color: var(--title-color);
    margin-top: 30px;
}

.article-content p, .article-content li {
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    list-style-position: inside;
    padding-left: 20px;
}

html[dir="rtl"] .article-content ul,
html[dir="rtl"] .article-content ol {
    padding-left: 0;
    padding-right: 20px;
}

.article-content img.inline-image {
    border: 1px solid var(--header-border);
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content table {
    width:100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th, .article-content td {
    border: 1px solid var(--header-border);
    padding: 12px;
    text-align: left;
}

.article-content th {
    background-color: var(--bg-color);
}

.comments-section {
    max-width: 800px;
    margin: 40px auto;
    padding-top: 20px;
    border-top: 1px solid var(--header-border);
}

.comments-section h2 {
    font-size: 28px;
    color: var(--title-color);
    margin-bottom: 30px;
    text-align: center;
}

/* css/article-page.css */

/* --- PASTE THIS NEW CODE AT THE END OF THE FILE --- */

.related-articles-section {
    max-width: 800px;
    margin: 60px auto;
    padding-top: 40px;
    border-top: 1px solid var(--header-border);
}

.related-articles-section h2 {
    text-align: center;
    font-size: 28px;
    color: var(--title-color);
    margin-bottom: 30px;
    border-bottom: none; /* This overrides the default h2 style in articles */
}

/* We reuse the grid layout concept from the hub page for consistency, but make it a single column */
.related-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* We also reuse the article preview box style from the hub page. No new CSS needed for the boxes themselves! */
