:root
{
    --bg-header : #eee;
    --main-color: #00adef;
    --muted: #6b7280;
    --bg: #ffffff;
    --comment-bg: #fbfdff;
    --radius: 12px;
    --max-width: 850px;
    --shadow: 0 6px 18px rgba(11,24,40,0.06);
}

body, h1, h2, h3, h4, h5, h6, p, input, select, a, li , span , div, textarea{
    font-family: IRANSansfanum, sans-serif !important;
}
h1
{
    font-size:30px;
}
h2 {
    font-size:25px;
}
h3 {
    font-size:20px;
}
h4
{
    font-size:18px;
}
li a {
    font-family: IRANSansfanum, sans-serif !important;
}

/** bread crumb area */
.bg-subheader
{
    background-color: var(--bg-header);
}


/** rating area */
.kk-star-ratings
{
    position: fixed;
    left: 0;
    top:50%;
    background: #eee;
    padding: 10px;
    font-size: 12px;
    border-radius: 0px 10px 10px 0;
    display: flex;
    flex-direction: column-reverse;
}
.kk-star-ratings .kksr-stars
{
    transform: scale(.8);
}
.kk-star-ratings *
{
    font-size: 12px;
}

/** comments **/
/* ====== کانتینر اصلی ====== */
.comments-area{
    direction: rtl;
    text-align: right;
    max-width: 850px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    font-family: sans-serif;
}

/* ====== عنوان ====== */
.comments-title{
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ====== ساختار لیست ====== */
.comment-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ====== هر نظر ====== */
.comment{
    background: var(--comment-bg);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;

    /* مهم‌ترین خط‌ها برای عرض ثابت 👇 */
    width: 100%;
    box-sizing: border-box;
}

/* ====== استایل پاسخ‌ها (children) ====== */
.children{
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: .8rem;

    /* فاصله از سمت راست برای سطح‌بندی RTL 👇 */
    padding-right: 2rem;
    border-right: 2px solid rgba(0,173,239,0.12);

    /* عرض ثابت و منظم 👇 */
    width: 100%;
    box-sizing: border-box;
}

.children .children{
    padding-right: 2rem;
    border-right: 2px solid rgba(0,173,239,0.09);
}

/* ====== آواتار ====== */
.comment .avatar,
.comment .comment-avatar{
    float: right;
    margin-left: 1rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

/* رفع تداخل float ها */
.comment::after{
    content: "";
    display: block;
    clear: both;
}

/* ====== اطلاعات نویسنده ====== */
.comment-author{
    font-weight: bold;
    color: #0b1228;
    font-size: 1rem;
}

.comment-meta{
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: .4rem;
}

/* ====== متن نظر ====== */
.comment-content{
    line-height: 1.7;
    margin-top: .3rem;
    font-size: .96rem;
}

/* ====== دکمه پاسخ ====== */
.reply a{
    display: inline-block;
    background: transparent;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    padding: .4rem .8rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-top: .6rem;
    text-decoration: none;
    transition: all .2s ease;
}

.reply a:hover{
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,173,239,0.25);
}

/* ====== فرم ارسال نظر ====== */
.comment-respond{
    margin-top: 2rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.comment-respond input,
.comment-respond textarea{
    width: 100%;
    padding: .7rem .9rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: .95rem;
    box-sizing: border-box;
    margin-top: .6rem;
}

.comment-respond textarea{
    min-height: 120px;
}

/* دکمه ارسال */
.comment-respond input[type="submit"]{
    background: var(--main-color);
    color: #fff;
    font-weight: bold;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.comment-respond input[type="submit"]:hover{
    background: #0097cd;
}

/* ====== موبایل ====== */
@media (max-width: 600px){
    .children{
        padding-right: 1rem;
    }
    .children .children{
        padding-right: 1rem;
    }
    .comment .avatar{
        width: 42px;
        height: 42px;
    }
}