﻿.GridPager a, .GridPager span {
    display: block;
    height: 15px;
    width: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    padding: 5px;
    line-height: 100%;
}

.GridPager a {
    background-color: #f5f5f5;
    color: #969696;
    border: 1px solid #969696;
}

.GridPager span {
    background-color: #A1DCF2;
    color: #000;
    border: 1px solid #3AC0F2;
    line-height: 100%;
}

.admin_holder {
    position: absolute;
    z-index: 100;
    top: 50%;
    width: 100%;
}

/*================================
    Modern News Detail
================================*/


.mdNewsDetail {
    width: 100%;
    margin: 30px auto;
}


/* Image */

.mdNewsDetailImage {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #f7f7f7;
    border-radius: var(--radius);
    position: relative;
    margin-bottom: 25px;
}


    .mdNewsDetailImage img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform .8s ease, filter .5s ease;
    }


    .mdNewsDetailImage:hover img {
        transform: scale(1.05);
        filter: brightness(1.08);
    }



/* Box */

.mdNewsDetailBox {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 15px 40px rgba(15,23,42,.08);
}



/* Date */

.mdNewsDetailDate {
    display: inline-block;
    background: var(--master);
    color: var(--slave);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}



/* Title */

.mdNewsDetailBox h1 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.6;
    color: var(--slave);
}



/* Summary */

.mdNewsSummary {
    background: #f8fafc;
    border-right: 4px solid var(--master);
    padding: 15px 20px;
    margin-bottom: 25px;
    color: var(--gray);
    font-size: 17px;
    line-height: 2;
}



/* Content */

.mdNewsText {
    color: var(--myText);
    font-size: 16px;
    line-height: 2.2;
}


    .mdNewsText img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius);
    }



    .mdNewsText p {
        margin-bottom: 15px;
    }



/* Mobile */

@media(max-width:768px) {

    .mdNewsDetailImage {
        height: 280px;
    }


    .mdNewsDetailBox {
        padding: 18px;
    }


        .mdNewsDetailBox h1 {
            font-size: 24px;
        }
}

/*====================================
    News List
====================================*/

.newsList {
    margin: 30px auto;
}
.newsDate {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: var(--border);
    color: var(--master);
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
/*====================================
    News Item
====================================*/
.readMore {
    margin-top: 18px;
    color: var(--slave);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .readMore .arrow {
        display: inline-block;
        transition: transform .35s ease;
    }

.newsItem:hover .readMore {
    color: var(--master);
}

    .newsItem:hover .readMore .arrow {
        transform: translateX(-6px);
    }
.newsItem {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 18px;
    text-decoration: none;
    color: var(--myText);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}

    .newsItem:hover {
        transform: translateY(-1px); /* قبلاً -4px بود */
        border-color: var(--master);
        box-shadow: 0 10px 28px rgba(15,23,42,.08);
    }

    /* نوار رنگی */

    .newsItem::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 0;
        background: var(--master);
        transition: .35s;
    }

    .newsItem:hover::before {
        height: 100%;
    }

/*====================================
    Image
====================================*/

.newsImage {
    width: 240px;
    min-width: 240px;
    height: 165px;
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) - 2px);
    background: #f7f7f7;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

    .newsImage img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1);
        transition: transform .7s ease, filter .7s ease;
    }

    .newsImage::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(15,23,42,.35), rgba(15,23,42,0));
        opacity: 0;
        transition: .35s;
    }

.newsItem:hover .newsImage img {
    transform: scale(1.08);
    filter: brightness(1.08);
}

.newsItem:hover .newsImage::after {
    opacity: 1;
}

/*====================================
    Content
====================================*/

.newsContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: color .3s ease;
}

    .newsContent h3 {
        margin: 0 0 10px;
        color: var(--slave);
        font-size: 22px;
        font-weight: 700;
        line-height: 1.5;
        transition: .3s;
    }

.newsItem:hover h3 {
    color: var(--master);
}

.newsContent p {
    margin: 0;
    color: var(--gray);
    line-height: 2;
    font-size: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/*====================================
    Read More
====================================*/

.readMore {
    margin-top: 18px;
    color: var(--slave);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

    .readMore::after {
        content: "←";
        display: inline-flex;
        align-items: center;
        font-size: 18px;
        transition: transform .35s ease;
    }

.newsItem:hover .readMore::after {
    transform: translateX(-6px);
}


/*====================================
    بدون عکس
====================================*/

.newsItem.noImage .newsContent {
    width: 100%;
}
.newsItem.noImage .newsImage {
    display: none;
}
/*====================================
    Responsive
====================================*/

@media (max-width:768px) {

    .newsItem {
        flex-direction: column;
    }

    .newsImage {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .newsContent h3 {
        font-size: 20px;
    }
}





@media all and (max-width: 500px) {
    .imgNews {
        display: block;
    }

    .contentNews {
        display: block;
    }
}