/* استایل‌های متن برای خوانایی بهتر */
.post-content {
    text-align: justify;
    line-height: 2;
    word-spacing: 2px;
    letter-spacing: 0.3px;
    font-weight: 300 !important; /* Light 300 برای متن بدنه */
}

.post-content p {
    text-align: justify;
    line-height: 2;
    margin-bottom: 1.5rem;
    word-spacing: 2px;
    letter-spacing: 0.3px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    text-align: right;
    line-height: 1.6;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600 !important; /* SemiBold 600 برای هدینگ‌ها */
}

.post-content ul,
.post-content ol {
    text-align: right;
    line-height: 2;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.post-content li {
    line-height: 2;
    margin-bottom: 0.75rem;
}

/* محدود کردن عرض تصویر‌ها به عرض باکس */
.post-content img,
.entry-content img,
.wp-block-image img,
.post-content figure,
.post-content .wp-block-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
}

/* برای تصاویر داخل figure */
.post-content figure img {
    width: 100%;
    max-width: 100%;
}

/* برای iframe و ویدیو */
.post-content iframe,
.post-content video,
.post-content embed,
.post-content object {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
}

/* برای جداول */
.post-content table {
    max-width: 100% !important;
    overflow-x: auto;
    display: block;
    text-align: right;
}

.post-content blockquote {
    text-align: right;
    line-height: 2;
    margin: 2rem 0;
    padding: 1.5rem;
    border-right: 4px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* استایل لینک‌ها در محتوای پست */
.post-content a,
.post-content a:link,
.entry-content a,
.entry-content a:link {
    color: #4e76ee !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

.post-content a:hover,
.post-content a:focus,
.entry-content a:hover,
.entry-content a:focus {
    color: #3d5fd8 !important;
    text-decoration: underline !important;
}

.post-content a:visited,
.entry-content a:visited {
    color: #6b85f0 !important;
}

/* کلمات بولد در محتوا - Regular 400 */
.post-content b,
.post-content strong,
.entry-content b,
.entry-content strong {
    font-weight: 400 !important; /* Regular 400 برای کلمات بولد */
}

/* متن بدنه entry-content */
.entry-content {
    font-weight: 300 !important; /* Light 300 برای متن بدنه */
}

/* Lazy loading images in content */
.post-content img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

.post-content img[loading="lazy"].loaded {
    opacity: 1;
}

