﻿/* ========================================
   صفحه اخبار
======================================== */

.sh-news-area {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 30px;
}


/* ========================================
   بخش اخبار - سمت راست
======================================== */

.sh-news-right {
    flex: 1;
    min-width: 0;
}


/* عنوان اخبار */

.sh-news-title {
    margin-bottom: 20px;
}

    .sh-news-title h2 {
        margin: 0;
        font-size: 24px;
    }


/* ========================================
   کارت خبر
======================================== */

.sh-news-card {
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    flex-direction: row-reverse;
    border-radius: 10px;
    overflow: hidden;
}


/* تصویر */

.sh-news-image {
    width: 230px;
    flex-shrink: 0;
}

    .sh-news-image img {
        width: 100%;
        height: 100%;
        min-height: 170px;
        object-fit: cover;
        display: block;
    }


/* محتوای خبر */

.sh-news-card .e-card-stacked {
    flex: 1;
    min-width: 0;
}


/* عنوان */

.sh-news-card .e-card-header-title {
    font-size: 18px;
    font-weight: bold;
}


/* تاریخ */

.sh-news-card .e-card-sub-title {
    margin-top: 6px;
    font-size: 13px;
}


/* توضیحات */

.sh-news-card .e-card-content {
    line-height: 1.8;
}


/* ادامه خبر */

.sh-news-more {
    text-decoration: none;
    font-weight: bold;
}


/* ========================================
   دسته بندی - سمت چپ
======================================== */

.news-categories {
    width: 250px;
    flex-shrink: 0;
}


/* کارت دسته بندی */

.sh-category-card {
    width: 100%;
}


    /* عنوان دسته بندی */

    .sh-category-card .e-card-header-title {
        font-size: 20px;
        font-weight: bold;
    }


/* لیست دسته بندی */

.sh-category-list {
    padding: 10px !important;
}


/* هر دسته */

.sh-category-item {
    display: block;
    width: 100%;
    padding: 13px 12px;
    
    margin-bottom: 8px;
    border-radius: 7px;
    background: #f4f6f7;
    color: #263638;
    text-decoration: none;
    transition: all .2s ease;
}


    /* دسته فعال */

    .sh-category-item.active {
        background: #12635e;
        color: #fff;
    }


    /* هاور */

    .sh-category-item:hover {
        background: #12635e;
        color: #fff;
    }


/* ========================================
   صفحه بندی Syncfusion
======================================== */

.sh-news-pager {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 30px;
}


/* ========================================
   موبایل
======================================== */

@media (max-width: 768px) {

    .sh-news-area {
        width: 94%;
        flex-direction: column;
        gap: 20px;
    }


    .sh-news-right {
        width: 100%;
    }


    .news-categories {
        width: 100%;
    }


    .sh-news-card {
        flex-direction: column;
    }


    .sh-news-image {
        width: 100%;
        height: 200px;
    }


        .sh-news-image img {
            min-height: 200px;
        }
}
/* ========================================
   زیباسازی Pagination اخبار
======================================== */

.sh-news-pager {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 20px;
    direction: rtl;
}

    /* خود Pager */
    .sh-news-pager .e-pager {
        background: transparent;
        border: none;
        padding: 5px;
    }

        /* شماره صفحات */
        .sh-news-pager .e-pager .e-numericitem {
            min-width: 40px;
            height: 40px;
            margin: 0 4px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            color: #12635e;
            border: 1px solid #dfe6e5;
            font-size: 14px;
            font-weight: 600;
            transition: all .25s ease;
        }

            /* هاور */
            .sh-news-pager .e-pager .e-numericitem:hover {
                background: #12635e;
                color: #ffffff;
                border-color: #12635e;
                transform: translateY(-2px);
            }

            /* صفحه فعال */
            .sh-news-pager .e-pager .e-numericitem.e-currentitem {
                background: #12635e;
                color: #ffffff;
                border-color: #12635e;
                box-shadow: 0 4px 10px rgba(18, 99, 94, .25);
            }

        /* دکمه قبلی و بعدی */
        .sh-news-pager .e-pager .e-prev,
        .sh-news-pager .e-pager .e-next {
            width: 40px;
            height: 40px;
            margin: 0 5px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #d49a32;
            color: #ffffff;
            border: none;
            transition: all .25s ease;
        }

            /* هاور قبلی / بعدی */
            .sh-news-pager .e-pager .e-prev:hover,
            .sh-news-pager .e-pager .e-next:hover {
                background: #12635e;
                transform: translateY(-2px);
            }

        /* متن اطلاعات Pager */
        .sh-news-pager .e-pager .e-parentmsgbar {
            color: #666;
            font-size: 13px;
            margin: 0 10px;
        }

/* موبایل */
@media (max-width: 600px) {

    .sh-news-pager .e-pager {
        padding: 3px;
    }

        .sh-news-pager .e-pager .e-numericitem,
        .sh-news-pager .e-pager .e-prev,
        .sh-news-pager .e-pager .e-next {
            width: 35px;
            min-width: 35px;
            height: 35px;
            margin: 0 2px;
            border-radius: 8px;
        }
}
/* ========================================
   فارسی سازی Pager
======================================== */

.sh-news-pager {
    direction: rtl;
}

    .sh-news-pager .e-pager {
        direction: rtl;
        font-family: inherit;
    }

    /* متن اطلاعات */
    .sh-news-pager .e-parentmsgbar {
        direction: rtl;
        font-family: inherit;
    }

    /* Tooltip و متن‌های داخلی */
    .sh-news-pager .e-pagerconstant {
        direction: rtl;
    }
/* =========================================
   فونت صفحه اخبار شهرداری شاندیز
   ========================================= */

.sh-news-area,
.sh-news-area * {
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* عنوان صفحه */
.sh-news-title h2 {
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* عنوان خبر */
.sh-news-card .e-card-header-title,
.sh-news-card .e-card-header-title a {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-weight: 700;
}

/* تاریخ خبر */
.sh-news-card .e-card-sub-title {
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* دکمه ادامه خبر */
.sh-news-card .sh-news-more {
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* دسته‌بندی‌های سمت چپ */
.news-categories,
.news-categories * {
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* پیجر Syncfusion */
.sh-news-pager,
.sh-news-pager *,
#newsPager,
#newsPager * {
    font-family: "Vazirmatn", Tahoma, sans-serif;
}