body {
    background-color: #F5F6FF !important;
    color: var(--midnight) !important;
}

.blog-main-column {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

@media (max-width: 768px) {
    .article-hero {
        padding: 140px 0 60px;
    }

    .article-title {
        font-size: 2rem !important;
    }

    .article-meta {
        letter-spacing: 2px;
        font-size: 0.75rem;
    }

    .blog-main-column {
        padding: 0 !important;
    }

    .sidebar-widget {
        padding: 30px 20px;
        border-radius: 20px;
    }
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(10, 10, 31, 0.8);
}

.article-body p {
    margin-bottom: 1.8em;
}

.article-body h2,
.article-body h3 {
    font-family: var(--font-heading);
    color: var(--midnight);
    margin: 1.5em 0 0.8em;
    font-weight: 700;
    line-height: 1.3;
}

.article-body h2 {
    font-size: 1.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.article-body h3 {
    font-size: 1.35rem;
}

@media (max-width: 768px) {
    .article-body h2 {
        font-size: 1.4rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }
}

.article-body blockquote {
    margin: 2.5em 0;
    padding: 40px;
    background: #f8f9ff;
    border-left: 5px solid var(--indigo);
    border-radius: 15px;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--indigo);
}

[dir="rtl"] .article-body blockquote {
    border-left: none;
    border-right: 5px solid var(--indigo);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 2.5em 0;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.blog-sidebar {
    width: 380px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #FFFFFF;
    border-radius: 25px;
    padding: 35px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--midnight);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
    font-weight: 700;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toc-nav a {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    font-weight: 600;
}

.toc-nav a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--indigo);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    flex-shrink: 0;
}

.toc-nav a:hover {
    background: #f8f9ff;
    color: var(--indigo);
    opacity: 1;
    transform: translateX(5px);
}

[dir="rtl"] .toc-nav a:hover {
    transform: translateX(-5px);
}

.toc-nav a:hover::before {
    opacity: 1;
}

.toc-nav a.toc-h3 {
    margin-left: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.6;
}

[dir="rtl"] .toc-nav a.toc-h3 {
    margin-left: 0;
    margin-right: 20px;
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
}

.related-item img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-item h5 {
    font-size: 0.95rem;
    color: var(--midnight);
    margin: 0;
    line-height: 1.4;
    transition: var(--transition);
    font-weight: 700;
}

.related-item:hover h5 {
    color: var(--indigo);
}

/* RTL Support */
html[dir="rtl"] .article-body {
    text-align: right;
}

html[dir="rtl"] .sidebar-widget {
    text-align: right;
}

html[dir="rtl"] .toc-nav a {
    flex-direction: row;
    /* Let natural RTL flow handle it */
    justify-content: flex-start;
    text-align: right;
}

html[dir="rtl"] .toc-nav a::before {
    margin-right: 0;
    margin-left: 12px;
}

html[dir="rtl"] .related-item {
    flex-direction: row;
    text-align: right;
    gap: 15px;
}

html[dir="rtl"] .related-item img {
    margin-left: 0;
}

@media (max-width: 1200px) {
    .blog-layout-wrapper {
        gap: 30px;
    }

    .blog-sidebar {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .blog-sidebar {
        width: 100% !important;
        margin-top: 50px;
    }

    .blog-layout-wrapper {
        flex-direction: column;
    }
}