.comments-area {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* استایل فرم ارسال نظر */
.comment-respond {
    margin-bottom: 40px;
}

.comment-reply-title {
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* اصلاح اینپوت‌ها و متن‌باکس برای جلوگیری از بیرون‌زدگی */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    box-sizing: border-box; /* این خط حیاتی است */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
font-family: Vazir, Tahoma, "DejaVu Sans", helvetica, arial, freesans, sans-serif;
    outline: none;
    transition: 0.3s;
    display: block; /* اطمینان از اینکه کل عرض را می‌گیرد */
}

.comment-form textarea { height: 150px; }

.comment-form input:focus, .comment-form textarea:focus {
    border-color: #ff4b2b;
    box-shadow: 0 0 5px rgba(255, 75, 43, 0.1);
}

.submit {
    background: #ff4b2b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
font-family: Vazir, Tahoma, "DejaVu Sans", helvetica, arial, freesans, sans-serif;
    transition: 0.3s;
}

.submit:hover { background: #e03a1d; }

/* استایل لیست نظرات */
.commentlist {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-metadata {
    font-size: 12px;
    color: #999;
}

.comment-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
margin-bottom:10px;
}

.comment-reply-link {
    font-size: 12px;
    color: #ff4b2b;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ff4b2b;
    padding: 4px 12px;
    border-radius: 5px;
    transition: 0.3s;

}

.comment-reply-link:hover {
    background: #ff4b2b;
    color: #fff;
}

/* استایل پاسخ‌ها (تودرتو) */
.children {
    list-style: none;
    margin-right: 40px; /* ایجاد فاصله برای پاسخ‌ها */
    border-right: 2px solid #eee;
    padding-right: 20px;
}

@media (max-width: 600px) {
    .children { margin-right: 15px; padding-right: 10px; }
}





/* حالت عمومی برای تمام پاسخ‌ها */
.commentlist .children {
    margin-right: 50px;
    list-style: none;
    border-right: 2px solid #eee; /* رنگ خاکستری معمولی */
    padding-right: 15px;
}

/* حالت اختصاصی وقتی ادمین پاسخ می‌دهد */
.commentlist .children .bypostauthor {
    border-right: 2px solid #3498db; /* آبی کمرنگ یا رنگ دلخواه شما */
    margin-right: -17px; /* برای اینکه خط آبی دقیقاً روی خط قبلی بیفتد */
    padding-right: 15px;
}

/* استایل دکمه لغو پاسخ که بعد از زدن دکمه پاسخ ظاهر می‌شود */
#cancel-comment-reply-link {
    color: #d93025;
    text-decoration: none;
    font-size: 13px;
    margin-right: 10px;
}


.error-msg {
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

#commentform input:invalid, #commentform textarea:invalid {
    box-shadow: none; /* جلوگیری از سایه پیش‌فرض در فایرفاکس */
}