﻿.header {
    /* به جای left:0 الان right:0 */
    right: 0;
    left: auto; /* از بین بردن left قبلی */
    border-right: none; /* حذف border راست */
    border-left: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

/* Media query برای دسکتاپ */
@media (min-width: 1200px) {
    .header ~ main, .header ~ #footer {
        /* جای margin-left به margin-right تغییر کرد */
        margin-right: 300px;
        margin-left: 0; /* برای اطمینان */
    }
}

/* Media query برای موبایل */
@media (max-width: 1199px) {
    /* باید به جای left: -100% از right: -100% استفاده کنیم */
    .header {
        right: -100%;
        left: auto;
    }
}

.header.header-show {
    right: 0;
    left: auto;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    display: inline-block; /* اضافه شده برای محدود کردن عرض به متن */
}

    .section-title h2:after {
        content: "";
        position: absolute;
        display: block;
        width: 50px;
        height: 3px;
        background: var(--accent-color);
        right: 0; /* تغییر از left:0 به right:0 */
        bottom: 0;
    }

.stats .stats-item {
    padding: 30px;
    width: 100%;
    text-align: right; /* اضافه برای راست‌چین کردن متن داخل */
}

    .stats .stats-item i {
        color: var(--accent-color);
        display: block;
        font-size: 44px;
        float: right; /* از left به right تغییر دادیم */
        line-height: 0;
    }

    .stats .stats-item .purecounter {
        color: var(--heading-color);
        font-size: 48px;
        line-height: 40px;
        display: block;
        font-weight: 700;
        margin-right: 60px; /* از margin-left به margin-right تغییر کرد */
    }

    .stats .stats-item p {
        color: color-mix(in srgb, var(--default-color), transparent 40%);
        padding: 15px 0 0 0;
        margin: 0 60px 0 0; /* از margin: 0 0 0 60px به 0 60px 0 0 تغییر */
        font-family: var(--heading-font);
        font-size: 14px;
    }
.hero-bar {
    background-color: #000; /* رنگ مشکی */
    height: 8px; /* ضخامت نوار */
    width: 100%;
    padding: 0;
    margin: 0;
}

/* خنثی کردن استایل‌های قالب قبلی برای Hero */
.hero {
    background: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.ltr {
    direction: ltr;
    unicode-bidi: bidi-override;
}
.image-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }

.articles .article-card {
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

    .articles .article-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.articles .article-img img {
    width: 100%;
    transition: transform 0.4s ease;
}

.articles .article-card:hover .article-img img {
    transform: scale(1.08);
}

.articles .article-title {
    padding: 15px;
    text-align: center;
}

    .articles .article-title h4 {
        font-size: 1rem;
        font-weight: bold;
        margin: 0;
        color: #333;
        line-height: 1.5;
    }
.page_number ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 5px;
}

.page_number li {
    display: inline-block;
}

    .page_number li a,
    .page_number li span {
        display: inline-block;
        padding: 8px 14px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background-color: #fff;
        color: #007bff;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

        .page_number li a:hover {
            background-color: #007bff;
            color: white;
            border-color: #007bff;
        }

    .page_number li.active span {
        background-color: #007bff;
        color: white;
        border-color: #007bff;
    }
/* کل ساختار ul رو وسط ببر */
.page_number ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 5px;
    list-style: none;
}

/* li ها رو مرتب نگه داریم */
.page_number li {
    display: inline-block;
}

    /* استایل لینک‌ها */
    .page_number li a,
    .page_number li span {
        padding: 8px 14px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background-color: #fff;
        color: #007bff;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .page_number li a:hover {
            background-color: #007bff;
            color: #fff;
            border-color: #007bff;
        }

    .page_number li.active span {
        background-color: #007bff;
        color: #fff;
        border-color: #007bff;
    }
/* حالت پیش‌فرض LTR (باقی بمونه همون سمت چپ) */
.services-list a {
    border-left: 3px solid var(--accent-color);
    border-right: none;
    padding-left: 15px;
    padding-right: 0;
}

/* حالت راست‌به‌چپ (تصحیح مکان خطوط) */
html[dir="rtl"] .services-list a {
    border-right: 3px solid var(--accent-color);
    border-left: none;
    padding-right: 15px;
    padding-left: 0;
}
.justify-text {
    text-align: justify;
    text-justify: inter-word;
    direction: rtl;
    line-height: 2;
}

ul li strong::after {
    content: " : ";
    margin-left: 5px;
}
.portfolio-info .template-link a.btn-circle-blue,
.portfolio-info .template-link a.btn-circle-blue:visited,
.portfolio-info .template-link a.btn-circle-blue:hover,
.portfolio-info .template-link a.btn-circle-blue:focus {
    background-color: #42A5F5 !important;
    color: #fff !important;
    border-radius: 10px !important; /* تمام گرد */
    padding: 10px 22px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}
    .portfolio-info .template-link a.btn-circle-blue i {
        font-size: 1.2rem !important;
        margin-right: 8px !important;
    }
.portfolio-description p {
    direction: rtl;
    text-align: justify;
    line-height: 2;
    word-spacing: 0.5px;
}
.portfolio-info h3 {
    direction: rtl;
    text-align: right;
    font-weight: 700;
}

.template-link {
    text-align: right;
    margin-top: 1rem;
}
.portfolio-description p {
    margin-bottom: 1rem;
    color: #333 !important; /* یا هر رنگی که میخوای */
}
.article-img img {
    border: 1px solid #dbdade; /* کادر طوسی */
    border-radius: 8px; /* گوشه گرد */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* شدو ملایم */
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .article-img img:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); /* شدو کمی قوی‌تر در هاور */
    }

