﻿

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

:root{
    --green:#12635e;
    --gold:#d49a32;
    --bg:#f4f6f7;
    --card:#ffffff;
    --text:#263638;
    --muted:#7c888b;
}

body{
    margin:0;
    font-family:Vazirmatn,Tahoma,sans-serif;
    background:var(--bg);
    color:var(--text);
    transition:.3s;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:92%;
    max-width:1200px;
    margin:auto;
}


/* =====================================
   HEADER ثابت
===================================== */

header{
    position:relative;
    top:0;
    z-index:9000;
    background:#fff;
    box-shadow:0 3px 18px rgba(0,0,0,.08);
}

.top-header{
    background:#fff;
    border-bottom:1px solid #e8eeee;
}

.top-content{
    min-height:38px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    color:#68777a;
}

.top-links{
    display:flex;
    gap:22px;
}

/* =====================================
   HEADER
===================================== */

header {
    position: relative;
    top: 0;
    z-index: 9000;
    background: #fff;
    box-shadow: 0 3px 18px rgba(0,0,0,.08);
}

.top-header {
    background: #fff;
    border-bottom: 1px solid #e8eeee;
}

.top-content {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #68777a;
}

.top-links {
    display: flex;
    gap: 22px;
}


/* =====================================
   HEADER MAIN
===================================== */

.header-main {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .logo-area img {
        width: 90px;
        height: 72px;
        object-fit: contain;
    }

    .logo-area h1 {
        margin: 0;
        color: var(--green);
        font-size: 25px;
    }

    .logo-area p {
        margin: 5px 0;
        color: var(--muted);
        font-size: 12px;
    }


/* =====================================
   SEARCH
===================================== */

.search-box {
    display: flex;
    width: 360px;
    height: 43px;
}

    .search-box input {
        flex: 1;
        border: 1px solid #ddd;
        border-radius: 0 8px 8px 0;
        padding: 0 15px;
        font-family: inherit;
        outline: none;
    }

    .search-box button {
        width: 52px;
        border: 0;
        background: var(--gold);
        color: #fff;
        border-radius: 8px 0 0 8px;
        font-size: 18px;
        cursor: pointer;
    }


/* =====================================
   DESKTOP MENU
===================================== */

nav {
    background: var(--green);
    color: #fff;
}

.menu {
    display: flex;
    align-items: center;
}

    .menu > a,
    .dropdown > a {
        display: block;
        padding: 16px 20px;
        font-size: 13px;
    }

        .menu > a:hover,
        .menu > a.active,
        .dropdown:hover > a {
            background: var(--gold);
        }

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 225px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s;
    z-index: 9999;
    overflow: hidden;
}

    .dropdown-menu a {
        display: block;
        padding: 13px 18px;
        font-size: 12px;
        border-bottom: 1px solid #eee;
    }

        .dropdown-menu a:hover {
            background: var(--green);
            color: #fff;
        }

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =====================================
   MOBILE MENU BUTTON
===================================== */

.nav-mobile-header {
    display: none;
    height: 52px;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

    .nav-mobile-header span {
        font-size: 14px;
        font-weight: bold;
    }

#mobileMenuBtn {
    width: 43px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #mobileMenuBtn:hover {
        background: var(--gold);
    }


/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    /* -----------------------------
       TOP HEADER
    ----------------------------- */

    .top-content {
        min-height: 35px;
        justify-content: center;
        font-size: 10px;
    }

    .top-links {
        display: none;
    }


    /* -----------------------------
       HEADER MAIN
    ----------------------------- */

    .header-main {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-direction: column;
        gap: 12px;
    }

    .logo-area {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

        .logo-area img {
            width: 65px;
            height: 55px;
        }

        .logo-area h1 {
            font-size: 20px;
        }

        .logo-area p {
            font-size: 10px;
            margin-top: 3px;
        }


    /* -----------------------------
       SEARCH
    ----------------------------- */

    .search-box {
        width: 100%;
        height: 40px;
    }


    /* -----------------------------
       NAV MOBILE HEADER
    ----------------------------- */

    .nav-mobile-header {
        display: flex;
    }


    /* -----------------------------
       MAIN MENU
    ----------------------------- */

    .menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        background: var(--green);
    }

        .menu.mobile-open {
            display: flex;
        }


        /* -----------------------------
       NORMAL LINKS
    ----------------------------- */

        .menu > a,
        .dropdown > a {
            width: 100%;
            box-sizing: border-box;
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255,255,255,.12);
            font-size: 13px;
        }


    /* -----------------------------
       DROPDOWN
    ----------------------------- */

    .dropdown {
        width: 100%;
    }

        .dropdown > a {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }


        /* در موبایل hover غیرفعال */
        .dropdown:hover .dropdown-menu {
            opacity: 0;
            visibility: hidden;
            transform: none;
        }


    /* -----------------------------
       MOBILE DROPDOWN
    ----------------------------- */

    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #0e5551;
        border-radius: 0;
    }

    .dropdown.mobile-dropdown-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 30px;
        color: #fff;
        font-size: 11px;
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

        .dropdown-menu a:hover {
            background: var(--gold);
            color: #fff;
        }


    /* -----------------------------
       ACTIVE LINK
    ----------------------------- */

    .menu > a.active {
        background: var(--gold);
    }
}


/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 480px) {

    .logo-area h1 {
        font-size: 18px;
    }

    .logo-area p {
        font-size: 9px;
    }

    .logo-area img {
        width: 58px;
        height: 50px;
    }

    .nav-mobile-header {
        height: 50px;
    }

    .menu > a,
    .dropdown > a {
        font-size: 12px;
    }
}
@media (max-width:768px) {

    .dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .dropdown.mobile-dropdown-open .dropdown-menu {
        display: block !important;
    }
}


    /* =====================================
   QUICK ACCESS
===================================== */

    .stories {
        margin-top: 18px;
        min-height: 125px;
        background: var(--card);
        border-radius: 15px;
        display: flex;
        align-items: center;
        gap: 28px;
        padding: 15px 25px;
        box-shadow: 0 5px 20px rgba(0,0,0,.05);
    }

    .story-title {
        font-weight: bold;
        color: var(--green);
    }

    .story {
        text-align: center;
        font-size: 11px;
    }

    .story-circle {
        width: 66px;
        height: 66px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 22px;
        background: linear-gradient( 140deg, #e1b04e, #c17918 );
        border: 4px solid #fff;
        outline: 2px solid #d5a348;
        margin-bottom: 8px;
    }

/* =====================================
   SLIDER
===================================== */

.slider {
    position: relative;
    width: 92%;
    max-width: 1200px;
    height: 390px;
    margin: 20px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}


/* =====================================
   SLIDES
===================================== */

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}


/* هر اسلاید */

.slide {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


    /* فقط اسلاید فعال */

    .slide.active {
        display: block;
    }


    /* =====================================
   IMAGE
===================================== */

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


    /* =====================================
   OVERLAY
===================================== */

    .slide::after {
      /*  content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(10,60,55,.85), rgba(10,60,55,.15) );
        z-index: 1;*/
      display:none;
    }


/* =====================================
   CONTENT
===================================== */

.slide-content {
    position: absolute;
    z-index: 2;
    right: 8%;
    top: 75px;
    max-width: 620px;
    color: #fff;
}

    .slide-content span {
        display: block;
        color: #f3c768;
        font-weight: bold;
        font-size: 14px;
    }

    .slide-content h2 {
        font-size: 34px;
        line-height: 1.8;
        margin: 12px 0;
    }

    .slide-content p {
        font-size: 13px;
        line-height: 2;
        margin: 0;
    }


/* =====================================
   BUTTON
===================================== */

.slide-button {
    display: inline-block;
    margin-top: 8px;
    background: var(--gold);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 12px;
    text-decoration: none;
}


/* =====================================
   ARROWS
===================================== */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--green);
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}

.slider-prev {
    right: 20px;
}

.slider-next {
    left: 20px;
}

.slider-arrow:hover {
    background: var(--gold);
    color: #fff;
}


/* =====================================
   DOTS
===================================== */

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff88;
    cursor: pointer;
}

    .slider-dot.active {
        width: 27px;
        border-radius: 10px;
        background: var(--gold);
    }


/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .slider {
        width: 94%;
        height: 320px;
    }

    .slide-content {
        right: 7%;
        left: 7%;
        top: 55px;
        max-width: none;
    }

        .slide-content h2 {
            font-size: 24px;
        }

        .slide-content p {
            font-size: 11px;
        }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .slider-prev {
        right: 10px;
    }

    .slider-next {
        left: 10px;
    }
}


@media (max-width: 480px) {

    .slider {
        height: 280px;
    }

    .slide-content {
        top: 45px;
    }

        .slide-content h2 {
            font-size: 20px;
        }

        .slide-content p {
            font-size: 10px;
        }

    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

    /* =====================================
   SERVICES
===================================== */

    .electronic-services {
        padding: 50px 0;
        background: #f7f9fb;
        margin-top: 35px;
    }

    .section-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .electronic-services .section-title {
        display: block;
        text-align: center;
    }

    .section-title h2 {
        color: var(--green);
        font-size: 21px;
        margin: 0;
    }

    .electronic-services .section-title h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .electronic-services .section-title span {
        display: block;
        width: 70px;
        height: 3px;
        background: var(--gold);
        margin: auto;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(5,1fr);
        gap: 18px;
    }

    .service-card {
        background: var(--card);
        min-height: 170px;
        border-radius: 15px;
        padding: 25px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--green);
        box-shadow: 0 5px 20px rgba(0,0,0,.07);
        border: 1px solid #eee;
        transition: .3s;
    }

        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0,0,0,.13);
        }

    .service-icon {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: var(--green);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        margin-bottom: 18px;
    }

    .service-card:hover .service-icon {
        background: var(--gold);
        transform: scale(1.08);
    }

    .service-card h3 {
        font-size: 15px;
        line-height: 1.8;
        margin: 0;
    }


    /* =====================================
   MAYOR
===================================== */

    .mayor {
        margin-top: 35px;
        background: linear-gradient( 135deg, var(--card), #f1f6f5 );
        border-radius: 18px;
        padding: 25px;
        display: flex;
        align-items: center;
        gap: 30px;
        border-right: 5px solid var(--gold);
        box-shadow: 0 5px 20px rgba(0,0,0,.05);
    }

    .mayor-photo {
        width: 190px;
        height: 190px;
        flex-shrink: 0;
        border-radius: 15px;
        overflow: hidden;
    }

        .mayor-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .mayor-info span {
        color: #c28a27;
        font-size: 13px;
        font-weight: bold;
    }

    .mayor-info h2 {
        color: var(--green);
        margin: 8px 0;
        font-size: 20px;
    }

    .mayor-info p {
        color: #707d80;
        font-size: 13px;
        line-height: 2;
    }

    .mayor-info a {
        color: #b47719;
        font-size: 12px;
    }


    /* ===================================== NEWS ===================================== */ .news-area {
        margin-top: 35px;
    }
    /* ===================================== NEWS LAYOUT ===================================== */

    .news-layout {
        display: grid; /* خبر اصلی بزرگ‌تر */
        grid-template-columns: 1.35fr 1fr;
        gap: 20px;
        align-items: start;
    }
    /* ===================================== MAIN NEWS ===================================== */

    .main-news {
        background: var(--card);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
    }
    /* ===================================== MAIN NEWS IMAGE ===================================== */

    .main-news-image {
        width: 100%; /* ارتفاع قاب */
        height: 480px;
        background: #f4f6f7;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
        /* عکس خبر اصلی */

        .main-news-image img {
            width: 100%;
            height: 100%; /* کل عکس نمایش داده شود */
            object-fit: contain;
            display: block;
        }
    /* ===================================== MAIN NEWS CONTENT ===================================== */

    .main-news-content {
        padding: 20px;
    }

        .main-news-content span {
            display: inline-block;
            color: #c28a27;
            font-size: 11px;
            margin-bottom: 5px;
        }

        .main-news-content h2 {
            margin: 5px 0 10px;
            color: var(--green);
            font-size: 19px;
            line-height: 1.8;
        }

            .main-news-content h2 a {
                color: inherit;
                text-decoration: none;
            }

        .main-news-content p {
            margin: 0 0 12px;
            color: #7b8789;
            font-size: 12px;
            line-height: 2;
        }

        .main-news-content > a {
            color: var(--green);
            font-size: 12px;
            text-decoration: none;
            transition: .2s;
        }

            .main-news-content > a:hover {
                color: #c28a27;
            }
    /* ===================================== VERTICAL NEWS ===================================== */

    .vertical-news {
        background: var(--card);
        border-radius: 15px;
        padding: 10px 20px;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
    }
        /* ===================================== VERTICAL NEWS ITEM ===================================== */

        .vertical-news article {
            display: flex;
            gap: 14px;
            padding: 18px 0;
            border-bottom: 1px solid #eee;
        }

            .vertical-news article:last-child {
                border-bottom: 0;
            }
    /* ===================================== NEWS DATE ===================================== */

    .news-date {
        min-width: 70px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 8px;
        background: #e8f2f0;
        color: var(--green);
        font-size: 10px;
        font-weight: bold;
    }
    /* ===================================== VERTICAL NEWS TITLE ===================================== */

    .vertical-news h3 {
        margin: 0 0 5px;
        font-size: 13px;
        line-height: 1.8;
    }

        .vertical-news h3 a {
            color: var(--green);
            text-decoration: none;
            transition: .2s;
        }

            .vertical-news h3 a:hover {
                color: #c28a27;
            }
    /* ===================================== VERTICAL NEWS DESCRIPTION ===================================== */

    .vertical-news p {
        margin: 0;
        font-size: 10px;
        color: #899396;
        line-height: 1.8;
    }
    /* ===================================== MOBILE ===================================== */

    @media (max-width: 768px) {
        .news-area {
            margin-top: 25px;
        }

        .news-layout {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        /* قاب عکس در موبایل */

        .main-news-image {
            height: 350px;
        }

        .main-news-content {
            padding: 16px;
        }

            .main-news-content h2 {
                font-size: 17px;
                line-height: 1.8;
            }

            .main-news-content p {
                font-size: 11px;
            }

        .vertical-news {
            padding: 8px 15px;
        }

            .vertical-news article {
                padding: 15px 0;
            }
    }
    /* ===================================== SMALL MOBILE ===================================== */

    @media (max-width: 480px) {
        .main-news-image {
            height: 300px;
        }

        .news-date {
            min-width: 60px;
            height: 44px;
            font-size: 9px;
        }

        .vertical-news h3 {
            font-size: 12px;
        }

        .vertical-news p {
            font-size: 9px;
        }
    }

    /* =====================================
   TENDERS
===================================== */

    .tenders {
        margin-top: 35px;
    }

    .tender-list {
        background: var(--card);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 18px rgba(0,0,0,.05);
    }

    .tender {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 17px 22px;
        border-bottom: 1px solid #eee;
    }

        .tender:last-child {
            border-bottom: 0;
        }

    .tender-icon {
        width: 48px;
        height: 48px;
        border-radius: 11px;
        background: #f7efe0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .tender-info {
        flex: 1;
    }

        .tender-info h3 {
            margin: 0 0 5px;
            color: var(--green);
            font-size: 13px;
        }

        .tender-info span {
            color: #8a9598;
            font-size: 10px;
        }

    .tender-btn {
        background: var(--green);
        color: #fff;
        padding: 8px 16px;
        border-radius: 7px;
        font-size: 10px;
    }


    /* =====================================
   BANNERS
===================================== */

    .banner-section {
        margin-top: 35px;
    }

    .banner-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .banner-item {
        display: block;
        width: 100%;
        height: 180px;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 5px 18px rgba(0,0,0,.08);
        transition: .25s;
    }

        .banner-item:hover {
            transform: translateY(-4px);
        }

        .banner-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }


    /* =====================================
   FOOTER
===================================== */

    footer {
        margin-top: 45px;
        background: #172b3a;
        color: #fff;
    }

    .footer {
        padding: 42px 0;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }

        .footer h3 {
            color: #e4b455;
            font-size: 16px;
        }

        .footer p,
        .footer a {
            color: #c5d0d7;
            font-size: 12px;
            line-height: 2;
            display: block;
        }

            .footer a:hover {
                color: #e4b455;
            }

    .copyright {
        background: #10212d;
        border-top: 1px solid #ffffff12;
        text-align: center;
        padding: 16px;
        color: #aebbc3;
        font-size: 11px;
    }


    /* =====================================
   دکمه بازگشت به بالا
===================================== */

    #backToTop {
        position: fixed;
        bottom: 25px;
        left: 25px;
        width: 52px;
        height: 52px;
        border: none;
        border-radius: 50%;
        background: var(--green);
        color: #fff;
        font-size: 21px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 22px rgba(0,0,0,.25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: opacity .3s, visibility .3s, transform .3s, background .3s;
        z-index: 99999;
    }


        /* وقتی اسکرول شد */

        #backToTop.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }


        /* هاور */

        #backToTop:hover {
            background: var(--gold);
            transform: translateY(-5px);
        }


    /* =====================================
   تنظیمات
===================================== */

    .settings-btn {
        position: fixed;
        left: 22px;
        top: 150px;
        width: 46px;
        height: 46px;
        border: none;
        border-radius: 50%;
        background: var(--green);
        color: #fff;
        font-size: 19px;
        cursor: pointer;
        z-index: 10001;
        box-shadow: 0 5px 18px rgba(0,0,0,.2);
    }

    .settings-panel {
        position: fixed;
        left: 22px;
        top: 205px;
        background: var(--card);
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,.2);
        z-index: 10000;
        display: none;
        width: 190px;
    }

        .settings-panel.show {
            display: block;
        }

        .settings-panel h4 {
            margin: 0 0 12px;
            color: var(--green);
        }

    .color-btn {
        width: 28px;
        height: 28px;
        border: 2px solid #fff;
        border-radius: 50%;
        cursor: pointer;
        margin: 3px;
        box-shadow: 0 0 0 1px #bbb;
    }

    .dark-toggle {
        width: 100%;
        border: 0;
        background: var(--green);
        color: #fff;
        padding: 9px;
        border-radius: 7px;
        margin-top: 8px;
        cursor: pointer;
    }


    /* =====================================
   DARK MODE
===================================== */

    body.dark {
        --bg: #101719;
        --card: #182426;
        --text: #e5eeee;
        --muted: #aab7b9;
    }

        body.dark header,
        body.dark .top-header {
            background: #182426;
        }

        body.dark .dropdown-menu {
            background: #182426;
        }

            body.dark .dropdown-menu a {
                color: #eee;
                border-color: #29383a;
            }

        body.dark .electronic-services {
            background: #121b1d;
        }

        body.dark .search-box input {
            background: #101719;
            color: #fff;
            border-color: #39484a;
        }

        body.dark .main-news-content p,
        body.dark .mayor-info p {
            color: #aab7b9;
        }


    /* =====================================
   MOBILE
===================================== */

    @media(max-width:992px) {

        .services-grid {
            grid-template-columns: repeat(3,1fr);
        }
    }

    @media(max-width:800px) {

        .top-links {
            display: none;
        }

        .header-main {
            flex-direction: column;
            align-items: stretch;
            padding: 12px 0;
        }

        .logo-area {
            justify-content: center;
        }

        .search-box {
            width: 100%;
        }

        .menu {
            overflow-x: auto;
            white-space: nowrap;
        }

        .stories {
            overflow-x: auto;
        }

        .story-title {
            display: none;
        }

        .services-grid {
            grid-template-columns: repeat(2,1fr);
        }

        .news-layout {
            grid-template-columns: 1fr;
        }

        .mayor {
            flex-direction: column;
            text-align: center;
        }

        .footer {
            grid-template-columns: 1fr 1fr;
        }

        .slider {
            height: 330px;
        }

        .slide-content {
            right: 7%;
            left: 7%;
            top: 50px;
        }

            .slide-content h2 {
                font-size: 25px;
            }
    }

    @media(max-width:500px) {

        .services-grid {
            grid-template-columns: 1fr;
        }

        .slider {
            width: 94%;
            height: 300px;
        }

        .slide-content h2 {
            font-size: 22px;
        }

        .slide-content p {
            font-size: 11px;
        }

        .banner-grid {
            grid-template-columns: 1fr;
        }

        .banner-item {
            height: 160px;
        }

        .footer {
            grid-template-columns: 1fr;
        }

        #backToTop {
            width: 46px;
            height: 46px;
            left: 15px;
            bottom: 18px;
        }
    }
    /* =========================================
   SHANDIZ HEADER ENTRY ANIMATION
========================================= */

    /* هدر در شروع مخفی */
    header {
        opacity: 0;
        transform: translateY(-25px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    /* ورود هدر */
    body.page-loaded header {
        opacity: 1;
        transform: translateY(0);
    }


    /* =========================================
   لوگوی شهرداری
========================================= */

    header .logo-area img {
        opacity: 0;
        transform: scale(0.85);
    }

    body.page-loaded header .logo-area img {
        animation: shandizLogoEntry 0.8s ease 0.25s forwards;
    }

    @keyframes shandizLogoEntry {

        from {
            opacity: 0;
            transform: scale(0.85);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }


    /* =========================================
   عنوان شهرداری
========================================= */

    header .logo-area h1,
    header .logo-area p {
        opacity: 0;
        transform: translateX(20px);
    }

    body.page-loaded header .logo-area h1 {
        animation: textEntry 0.6s ease 0.4s forwards;
    }

    body.page-loaded header .logo-area p {
        animation: textEntry 0.6s ease 0.5s forwards;
    }

    @keyframes textEntry {

        from {
            opacity: 0;
            transform: translateX(20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }


    /* =========================================
   جستجو
========================================= */

    header .search-box {
        opacity: 0;
        transform: translateX(-20px);
    }

    body.page-loaded header .search-box {
        animation: searchEntry 0.7s ease 0.45s forwards;
    }

    @keyframes searchEntry {

        from {
            opacity: 0;
            transform: translateX(-20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }


    /* =========================================
   منوی اصلی
========================================= */

    header nav {
        opacity: 0;
        transform: translateY(-12px);
    }

    body.page-loaded header nav {
        animation: navEntry 0.7s ease 0.65s forwards;
    }

    @keyframes navEntry {

        from {
            opacity: 0;
            transform: translateY(-12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* =========================================
   آیتم‌های منو
========================================= */

    header nav .menu > a,
    header nav .menu > .dropdown {
        opacity: 0;
        transform: translateY(-8px);
    }

    body.page-loaded header nav .menu > a,
    body.page-loaded header nav .menu > .dropdown {
        animation: menuItemEntry 0.5s ease forwards;
    }


        /* ورود مرحله‌ای */

        body.page-loaded header nav .menu > a:nth-child(1),
        body.page-loaded header nav .menu > .dropdown:nth-child(2) {
            animation-delay: 0.80s;
        }

        body.page-loaded header nav .menu > .dropdown:nth-child(3) {
            animation-delay: 0.90s;
        }

        body.page-loaded header nav .menu > .dropdown:nth-child(4) {
            animation-delay: 1s;
        }

        body.page-loaded header nav .menu > .dropdown:nth-child(5) {
            animation-delay: 1.10s;
        }

        body.page-loaded header nav .menu > .dropdown:nth-child(6) {
            animation-delay: 1.20s;
        }


    @keyframes menuItemEntry {

        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* =========================================
   موبایل
================================
    /* =========================================
   فونت سراسری سایت شهرداری شاندیز
   بدون دستکاری ساختار منو
   ========================================= */

    @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

    html,
    body {
        font-family: 'Vazirmatn', Tahoma, sans-serif;
    }

    /* متن‌های معمولی */
    body,
    p,
    span,
    div,
    li,
    td,
    th,
    label {
        font-family: 'Vazirmatn', Tahoma, sans-serif;
    }

    /* تیترها */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: 'Vazirmatn', Tahoma, sans-serif;
        line-height: 1.7;
    }

    /* لینک‌ها */
    a {
        font-family: 'Vazirmatn', Tahoma, sans-serif;
    }

    /* منوی اصلی - فقط فونت */
    nav a,
    .nav a,
    .main-menu a,
    .main-nav a {
        font-family: 'Vazirmatn', Tahoma, sans-serif;
    }

    /* دکمه‌ها */
    button,
    input,
    textarea,
    select {
        font-family: 'Vazirmatn', Tahoma, sans-serif;
    }


    /* ================================
   اندازه‌های استاندارد
   ================================ */

    body {
        font-size: 15px;
        line-height: 1.9;
    }

    h1 {
        font-size: 30px;
        font-weight: 800;
    }

    h2 {
        font-size: 26px;
        font-weight: 800;
    }

    h3 {
        font-size: 22px;
        font-weight: 700;
    }

    h4 {
        font-size: 19px;
        font-weight: 700;
    }

    h5 {
        font-size: 17px;
        font-weight: 600;
    }

    h6 {
        font-size: 16px;
        font-weight: 600;
    }

    p {
        font-size: 15px;
        line-height: 2;
    }


    /* موبایل */
    @media (max-width: 768px) {

        body {
            font-size: 14px;
        }

        h1 {
            font-size: 25px;
        }

        h2 {
            font-size: 22px;
        }

        h3 {
            font-size: 19px;
        }

        p {
            font-size: 14px;
        }
    }