﻿/* Article Section Styles */
.article-title {
    font-size: 2rem;
    font-weight: bold;
    color: #BE0032;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.article-content img {
    border-radius: 10px;
    border: 2px solid #BE0032;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}
.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.image_resized {
    display: block;
    margin: 0 auto;
    text-align: center;
}

figure.image {
    margin: 0 auto;
    text-align: center;
}


.article-tags {
    margin-top: 1.5rem;
}

.article-tags .badge {
    background-color: #BE0032;
    color: #fff;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    padding: 0.4em 0.6em;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.article-tags .badge:hover {
    background-color: #a3002a;
    text-decoration: none;
}

/* Social Sharing Buttons */
.social-share-buttons ul {
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
}





/* Comments Section */
.comment-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-section .comment-counter {
    font-size: 1.2rem;
    font-weight: bold;
    color: #BE0032;
    margin-bottom: 1rem;
}

.single-comment {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.single-comment .reply-btn a {
    color: #BE0032;
    font-size: 0.9rem;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.single-comment .reply-btn a:hover {
    color: #a3002a;
}

.comment-form-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-form-container h3 {
    color: #BE0032;
    margin-bottom: 1rem;
}

.comment-form textarea,
.comment-form input {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.8rem;
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-btn {
    background-color: #BE0032;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.comment-btn:hover {
    background-color: #a3002a;
}
.comment-container {
    padding: 15px;
}

.single-comment {
    margin-bottom: 20px; /* فاصله بین کامنت‌ها */
    padding: 15px;
    border: 1px solid #ddd; /* کادر ملایم */
    border-radius: 8px; /* گوشه‌های گرد */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* سایه ملایم */
}

.reply-comment {
    margin-right: 30px; /* تورفتگی برای پاسخ */
    background-color: #fff; /* پس‌زمینه روشن‌تر */
    border-left: 3px solid #BE0032; /* خط رنگی در سمت چپ */
}

.single-comment img {
    border-radius: 50%; /* گرد کردن تصویر */
   }

.single-comment h5 {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.single-comment p {
    color: #555;
    margin: 0;
}

.reply-btn {
    align-self: center; /* تراز وسطی برای دکمه */
    font-size: 0.875rem; /* اندازه مناسب */
    padding: 5px 15px; /* فضای داخلی دکمه */
    margin-left: auto; /* فاصله از متن کامنت */
    border-radius: 20px; /* دکمه گرد */
    text-transform: uppercase; /* متن تمام حروف بزرگ */
    transition: all 0.3s ease; /* انیمیشن hover */
    background-color: #BE0032; /* رنگ تم */
    color: #fff; /* رنگ متن */
    border: none; /* حذف حاشیه */
}

.reply-btn:hover {
    background-color: #a4002c; /* رنگ hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* سایه بیشتر */
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sidebar-widget h5 {
    color: #BE0032;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
    .sidebar-widget h5::after {
        content: "";
        display: block;
        width: 50px;
        height: 3px;
        background: #BE0032;
        margin-top: 8px;
        border-radius: 10px;
    }

.tag-list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f0f8ff;
    color: #BE0032;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .tag-item:hover {
        background: #BE0032;
        color: #fff;
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* انیمیشن ورود */
.tag-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-in-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li {
    margin-bottom: 0.5rem;
}

.sidebar-widget ul li a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: #BE0032;
}

.sidebar-widget .badge {
    background-color: #BE0032;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3em 0.5em;
    border-radius: 50px;
}

/* استایل برای بخش آخرین مقالات */
.sidebar-latest-articles h5 {
    color: #BE0032; /* رنگ عنوان */
    border-bottom: 2px solid #BE0032; /* خط زیر عنوان */
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* استایل آیتم‌های مقالات */
.latest-article-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #f9f9f9; /* پس‌زمینه آیتم */
}

.latest-article-item:hover {
    transform: scale(1.02); /* بزرگ شدن در هنگام هاور */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* سایه در هاور */
    text-decoration: none;
}

.latest-article-item img {
    flex-shrink: 0; /* جلوگیری از تغییر اندازه عکس */
    margin-right: 15px; /* فاصله مناسب بین عکس و متن */
    border: 2px solid #BE0032; /* قاب برای عکس */
}

.latest-article-item h6 {
    margin: 0;
    color: #333; /* رنگ متن عنوان */
    font-size: 16px;
}

.latest-article-item small {
    font-size: 12px;
    color: #777; /* رنگ ملایم برای تاریخ */
}

/* Latest Articles in Sidebar */
.sidebar-latest-articles .single-block {
    display: flex;
    margin-bottom: 1rem;
}

.sidebar-latest-articles .single-block .image img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

.sidebar-latest-articles .single-block .content p {
    margin: 0;
    font-size: 0.9rem;
}

.sidebar-latest-articles .single-block .content p a {
    font-weight: bold;
    color: #BE0032;
    text-decoration: none;
}

.sidebar-latest-articles .single-block .content p a:hover {
    color: #a3002a;
}

.sidebar-latest-articles .single-block .content span {
    font-size: 0.8rem;
    color: #6c757d;
}
figure.table {
    max-width: 100%;
    margin: 20px auto;
    overflow-x: auto;
}

figure.table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
    background-color: #f9f9f9;
}

/* استایل هدر جدول */
figure.table table thead th {
    background-color: #BE0032;
    ; /* رنگ آبی هدر */
    color: white;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #dddddd;
}

/* استایل سلول‌های بدنه جدول */
figure.table table tbody td {
    padding: 10px;
    border: 1px solid #dddddd;
}

/* استایل ردیف‌های جدول */
figure.table table tbody tr:nth-child(odd) {
    background-color: #f2f2f2; /* رنگ پس‌زمینه ردیف‌های فرد */
}

figure.table table tbody tr:nth-child(even) {
    background-color: white; /* رنگ پس‌زمینه ردیف‌های زوج */
}

/* استایل برای واکنش‌گرایی */
@media (max-width: 768px) {
    figure.table table thead {
        display: none; /* مخفی کردن هدر در موبایل */
    }

    figure.table table tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #dddddd;
        position: relative;
    }

    figure.table table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        font-weight: bold;
        color: #BE0032;
        text-transform: uppercase;
    }
}
