/* استایل برای لیست‌ها در محتوای بلاگ */
.blog-content ul,
.blog-content ol {
    margin: 20px 0;
    padding-right: 30px;
    line-height: 1.8;
    text-align: right;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #0a53be !important;
    font-weight: 600 !important;
}

.dark-mode .blog-content h1,
.dark-mode .blog-content h2,
.dark-mode .blog-content h3,
.dark-mode .blog-content h4,
.dark-mode .blog-content h5,
.dark-mode .blog-content h6 {
    color: #ed5096 !important;
    font-weight: 600 !important;
}

.blog-content h1 span,
.blog-content h2 span,
.blog-content h3 span,
.blog-content h4 span,
.blog-content h5 span,
.blog-content h6 span {
    color: #0a53be !important;
}

.dark-mode .blog-content h1 span,
.dark-mode .blog-content h2 span,
.dark-mode .blog-content h3 span,
.dark-mode .blog-content h4 span,
.dark-mode .blog-content h5 span,
.dark-mode .blog-content h6 span {
    color: #ed5096 !important;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 5px;
}

.blog-content li span {
    font-size: 16px !important;
    line-height: 1.8;
    color: inherit !important;
}

.dark-mode .blog-content li span {
    color: #ddd !important;
}

/* لیست‌های تودرتو */
.blog-content ul ul,
.blog-content ol ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

.blog-content ul ul {
    list-style-type: circle;
}

.blog-content ul ul ul {
    list-style-type: square;
}

/* استایل مخصوص برای لیست سوالاتی که مثال زدید */
.blog-content ul[dir="rtl"] {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px 25px;
    border-right: 4px solid #0a53be;
    margin: 25px 0;
}

.dark-mode .blog-content ul[dir="rtl"] {
    background-color: #2d3748;
    border-right-color: #ed5096;
}

.blog-content ul[dir="rtl"] li {
    margin-bottom: 15px;
    padding-right: 10px;
}

.blog-content ul[dir="rtl"] li > span {
    font-weight: 600;
    color: #0a53be !important;
    display: block;
    margin-bottom: 8px;
}

.dark-mode .blog-content ul[dir="rtl"] li > span {
    color: #ed5096 !important;
}

.blog-content ul[dir="rtl"] ul {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.dark-mode .blog-content ul[dir="rtl"] ul {
    background-color: rgba(255, 255, 255, 0.1);
}

/* استایل برای جدول‌ها */
.blog-content table {
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.blog-content table th {
    background-color: #f8f9fa;
    color: #0a53be;
    font-weight: 700;
    padding: 15px;
    text-align: right;
    border-bottom: 2px solid #dee2e6;
}

.blog-content > img {
    height: auto !important;
}

.blog-content table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #dee2e6;
}

.blog-content table tr:last-child td {
    border-bottom: none;
}

.blog-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* حالت تاریک برای جدول */
.dark-mode .blog-content table {
    border-color: #4a5568;
}

.dark-mode .blog-content table th {
    background-color: #2d3748;
    color: #ed5096;
    border-bottom-color: #4a5568;
}

.dark-mode .blog-content table td {
    border-bottom-color: #4a5568;
}

.dark-mode .blog-content table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ریسپانسیو کردن جدول در موبایل */
@media (max-width: 768px) {
    .blog-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-content table th,
    .blog-content table td {
        padding: 10px 12px;
        font-size: 14px;
        min-width: 120px;
    }

    .blog-content ul[dir="rtl"] {
        padding: 15px 20px;
    }
}

/* استایل بخش درباره نویسنده - حالت لایت */
.about-author {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-right: 4px solid #0a53be;
}

.author-details {
    background-color: white !important;
    padding: 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.author-details p {
    color: #495057;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 0;
}

.author-details a {
    color: #0a53be !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.author-details a:hover {
    color: #083a87 !important;
    text-decoration: underline;
}

.about-author-img {
    text-align: center;
    margin-bottom: 20px;
}

.author-img-wrap {
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #0a53be;
    box-shadow: 0 4px 12px rgba(10, 83, 190, 0.2);
}

.author-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* استایل بخش درباره نویسنده - حالت دارک */
.dark-mode .about-author {
    background-color: #2d3748;
    border-right-color: #ed5096;
}

.dark-mode .author-details {
    background-color: #1b344d !important;
    padding: 20px !important;
    border-radius: 10px !important;
    border: 1px solid #2c5282;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode .author-details p {
    color: #cbd5e0;
}

.dark-mode .author-details a {
    color: #ed5096 !important;
}

.dark-mode .author-details a:hover {
    color: #50bbed !important;
}

.dark-mode .author-img-wrap {
    border-color: #ed5096;
    box-shadow: 0 4px 12px rgba(237, 80, 150, 0.3);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .about-author {
        padding: 15px;
        margin-top: 30px;
    }

    .author-details {
        padding: 15px !important;
    }

    .author-img-wrap {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
}

/* استایل بخش اطلاعات پست */
.blog-info .post-left ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.blog-info .post-left li {
    margin: 0;
    padding: 0;
}

/* استایل برای badge دسته‌بندی */
.blog-info .post-left .badge {
    background: #ed4e95 !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(237, 78, 149, 0.3);
    transition: all 0.3s ease;
}

.blog-info .post-left .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 78, 149, 0.4);
}

/* استایل برای تاریخ */
.blog-info .post-left .d-flex.align-items-center {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.blog-info .post-left .d-flex.align-items-center .isax-calendar {
    color: #ed4e95;
    font-size: 18px;
}

.dark-mode .blog-info .post-left .d-flex.align-items-center {
    color: #a0aec0;
}

.dark-mode .blog-info .post-left .d-flex.align-items-center .isax-calendar {
    color: #ed5096;
}

/* استایل برای اطلاعات نویسنده */
.blog-info .post-left .post-author {
    display: flex;
    align-items: center;
}

.blog-info .post-left .post-author a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
    transition: color 0.3s ease;
}

.blog-info .post-left .post-author a:hover {
    color: #0a53be;
}

.blog-info .post-left .post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ed4e95;
    padding: 2px;
    background-color: white;
}

.blog-info .post-left .post-author span {
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
}

.dark-mode .blog-info .post-left .post-author a {
    color: #cbd5e0;
}

.dark-mode .blog-info .post-left .post-author a:hover {
    color: #ed5096;
}

.dark-mode .blog-info .post-left .post-author img {
    border-color: #ed5096;
    background-color: #2d3748;
}

/* حالت دارک برای badge */
.dark-mode .blog-info .post-left .badge {
    background: #ed5096 !important;
    box-shadow: 0 2px 8px rgba(237, 80, 150, 0.4);
}

.dark-mode .blog-info .post-left .badge:hover {
    box-shadow: 0 4px 12px rgba(237, 80, 150, 0.6);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .blog-info .post-left ul {
        gap: 15px;
        justify-content: flex-start;
    }

    .blog-info .post-left .badge {
        padding: 6px 12px;
        font-size: 13px;
    }

    .blog-info .post-left .d-flex.align-items-center,
    .blog-info .post-left .post-author span {
        font-size: 13px;
    }

    .blog-info .post-left .post-author img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .blog-info .post-left ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .blog-info .post-left li {
        width: 100%;
    }

    .blog-info .post-left .d-flex.align-items-center {
        justify-content: flex-start;
    }

    .blog-info .post-left .post-author {
        justify-content: flex-start;
    }
}
