        :root {
            /* پالت رنگی آبی */
            --primary-blue: #0288d1;
            --dark-blue: #01579b;
            --deep-navy: #002f6c;
            --sky-blue: #e1f5fe;
            --accent-cyan: #00bcd4;
            --text-dark: #37474f;
            --white: #ffffff;
            --news-orange-start: #ff9800;
            --news-orange-end: #ef6c00;
        }

        body {
            font-family: 'Vazirmatn', sans-serif;
            background-color: #f5fafd;
            overflow-x: hidden;
        }

        /* --- Top Bar (دست نخورده) --- */
        .top-bar {
            background: linear-gradient(90deg, var(--deep-navy), var(--dark-blue));
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.8rem;
            padding: 6px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .top-links a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            margin-left: 15px;
            transition: all 0.3s;
        }

        .top-links a:hover {
            color: var(--white);
        }

        .slogan-text {
            color: #fff9c4;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.1);
            padding: 2px 10px;
            border-radius: 4px;
            font-size: 0.75rem;
        }

        /* --- Navbar (دست نخورده) --- */
        .navbar {
            background-color: var(--white);
            box-shadow: 0 10px 30px rgba(1, 87, 155, 0.05);
            padding: 10px 0;
            z-index: 1050;
            position: relative;
        }

        .brand-wrapper {
            display: flex;
            align-items: center;
        }

        .logo-main {
            height: 60px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }

        .brand-text {
            margin-right: 10px;
        }

        .brand-text h1 {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--deep-navy);
            margin: 0;
        }

        .brand-text small {
            font-size: 0.85rem;
            color: var(--primary-blue);
            font-weight: 500;
        }

        .flag {
            width: 180px;
        }

        .flag::before {
            content: "";
            background-image: url(./assets/images/logo/flagiran.png);
            width: 177px;
            height: 100px;
            display: flex;
            position: absolute;
            background-size: contain;
            background-repeat: no-repeat;
            transform: rotate(-13deg);
            left: 15px;
            top: 10px;
        }

        .header-extra-banner {
            height: 80px;
            width: auto;
            border-radius: 6px;
            padding: 2px;
            object-fit: cover;
            position: absolute;
            left: 0;
            bottom: 2px;
        }

        .nav-item {
            margin: 0 2px;
        }

        .nav-link {
            color: var(--text-dark) !important;
            font-weight: 600;
            padding: 8px 15px !important;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }

        .nav-link:hover,
        .nav-link.active,
        .nav-link.show {
            color: var(--primary-blue) !important;
            background-color: var(--sky-blue);
        }

        .dropdown-menu {
            border: none;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            border-radius: 10px;
            margin-top: 10px;
            padding: 0;
            overflow: hidden;
            z-index: 1060;
        }

        .dropdown-item {
            padding: 10px 20px;
            font-size: 0.9rem;
            border-bottom: 1px solid #f1f1f1;
            transition: all 0.2s;
        }

        .dropdown-item:hover {
            background-color: var(--sky-blue);
            color: var(--primary-blue);
            padding-right: 25px;
        }

        .modern-search {
            position: relative;
            background: #fff;
            border: 1px solid #b3e5fc;
            border-radius: 50px;
            padding: 3px;
            display: flex;
            align-items: center;
            width: 200px;
        }

        .modern-search input {
            border: none;
            background: transparent;
            outline: none;
            padding: 5px 15px;
            width: 100%;
            font-size: 0.85rem;
            color: var(--deep-navy);
        }

        .modern-search button {
            background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
            color: white;
            border: none;
            width: 38px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        /* --- Ticker (دست نخورده) --- */
        .ticker-section {
            background-color: #f5fafd;
            padding: 15px 0;
            position: relative;
            z-index: 1;
        }

        .ticker-box {
            background: #fff;
            border-radius: 50px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            padding: 5px;
            width: 100%;
            border: 1px solid #e1f5fe;
            overflow: hidden;
        }

        .ticker-label {
            background: linear-gradient(90deg, var(--news-orange-start), var(--news-orange-end));
            color: white;
            border-radius: 40px;
            padding: 8px 25px;
            font-size: 0.9rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            white-space: nowrap;
            box-shadow: 2px 0 10px rgba(239, 108, 0, 0.3);
            z-index: 2;
        }

        .ticker-content {
            flex-grow: 1;
            overflow: hidden;
            position: relative;
            height: 30px;
            display: flex;
            align-items: center;
            margin-right: 15px;
            mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        }

        .ticker-move {
            display: inline-block;
            white-space: nowrap;
            animation: tickerScroll 35s linear infinite;
            padding-right: 100%;
        }

        .ticker-item {
            display: inline-block;
            color: #546e7a;
            font-size: 0.95rem;
            text-decoration: none;
            margin: 0 20px;
            font-weight: 500;
        }

        .ticker-item:hover {
            color: var(--news-orange-end);
        }

        .ticker-dot {
            color: var(--news-orange-start);
            margin: 0 10px;
            font-size: 1.2rem;
            vertical-align: middle;
        }

        @keyframes tickerScroll {
            0% {
                transform: translate3d(0, 0, 0);
            }

            100% {
                transform: translate3d(100%, 0, 0);
            }
        }
/* شفاف کردن پس زمینه سکشن اصلی برای دیده شدن اسلایدر */
.hero-section {
    background-color: transparent !important;
    background-image: none !important;
}

/* استایل عکس‌های پس‌زمینه اسلایدر */
.heroBgSwiper .bg-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

/* رنگ دکمه‌های اسلایدر */
.heroBgSwiper ~ .swiper-button-next,
.heroBgSwiper ~ .swiper-button-prev {
    color: #ffffff;
    opacity: 0.7;
    transition: 0.3s;
}

.heroBgSwiper ~ .swiper-button-next:hover,
.heroBgSwiper ~ .swiper-button-prev:hover {
    opacity: 1;
}

.heroBgSwiper ~ .swiper-pagination .swiper-pagination-bullet-active {
    background: #ffffff;
}

        /* --- 4. Hero Section REDESIGN (بخش جدید و خاص) --- */
        .hero-section {
            clip-path: ellipse(150% 100% at 50% 0%);
            background-size: cover;
            background-position: center bottom;
            height: 520px;
            /* ارتفاع کمی بیشتر برای جلوه بهتر */
            display: flex;
            align-items: center;
            color: white;
            position: relative;
            border-bottom-right-radius: 0;
          
        }

        .heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: #ffffff;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: #007bff; /* رنگ نقطه فعال را با تم سایت خود تنظیم کنید */
}

/* در صورتی که نیاز به عکس مجزا برای هر اسلاید دارید از این روش استفاده کنید: */
.heroSwiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.heroSwiper .swiper-slide:nth-child(1) {
    background-image: linear-gradient(rgba(1, 42, 77, 0.6), rgba(0, 86, 179, 0.4)), url('./assets/images/11.jpg');
    clip-path: ellipse(150% 100% at 50% 0%);
}
.heroSwiper .swiper-slide:nth-child(2) {
    background-image: linear-gradient(rgba(1, 42, 77, 0.6), rgba(0, 86, 179, 0.4)), url('./assets/images/5.jpg');
    clip-path: ellipse(150% 100% at 50% 0%);
}

        /* باکس شیشه‌ای (Glassmorphism) */
        .hero-glass-card {
            background: rgba(255, 255, 255, 0.1);
            /* شفافیت سفید */
            backdrop-filter: blur(12px);
            /* تاری پس‌زمینه */
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
            max-width: 680px;
            animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
            /* انیمیشن ورود */
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* تایپوگرافی جدید */
        .hero-title-main {
            font-size: 2.8rem;
            font-weight: 900;
            line-height: 1.3;
            margin-bottom: 15px;
            text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        .hero-title-sub {
            color: #80d8ff;
            /* آبی روشن نئونی */
            display: block;
        }

        .hero-description {
            font-size: 1.1rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 30px;
            border-right: 4px solid var(--news-orange-start);
            /* خط رنگی کنار متن */
            padding-right: 15px;
            line-height: 1.6;
        }

        /* دکمه‌های جدید */
        .hero-btn-primary {
            background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
            border: none;
            color: white;
            padding: 12px 35px;
            border-radius: 12px;
            font-weight: 700;
            box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .hero-btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 188, 212, 0.6);
            color: white;
        }

        .hero-btn-outline {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.6);
            color: white;
            padding: 12px 35px;
            border-radius: 12px;
            font-weight: 600;
            backdrop-filter: blur(5px);
            transition: all 0.3s;
        }

        .hero-btn-outline:hover {
            background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
            color: var(--primary-blue);
            border-color: white;
            transform: translateY(-3px);
        }

        /* --- Services (دست نخورده) --- */
        .services-wrapper {
            margin-top: -60px;
            padding-bottom: 60px;
            position: relative;
            z-index: 2;
        }

        .service-card {
            background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
            border-radius: 15px;
            padding: 25px 15px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
            border-top: 4px solid var(--news-orange-start);
            transition: all 0.4s;
            height: 100%;
            opacity: 0.9;
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(1, 87, 155, 0.1);
            border-top-color: var(--accent-cyan);
        }

        .icon-circle {
            width: 70px;
            height: 70px;
            margin: 0 auto 15px;
            border-radius: 50%;
            background: linear-gradient(135deg, #e1f5fe, #b3e5fc);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: var(--dark-blue);
            transition: all 0.4s;
        }

        .service-card:hover .icon-circle {
            background: var(--primary-blue);
            color: white;
            transform: rotateY(180deg);
        }

        .service-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--white);
        }
        .news-tabs-section{
    padding:80px 0;
    background:#f7fbff;
}

/* ===============================
   News Section Professional
================================= */
.news-section {
    position: relative;
    padding: 70px 0 85px;
    z-index: 1;
}

.news-section .section-title ,
.gallery-section .section-title{
    color: var(--deep-navy);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.news-section .section-subtitle,
.gallery-section .section-subtitle{
    text-align: center;
    color: var(--text-dark);
    opacity: .85;
    margin-bottom: 35px;
    font-size: 1rem;

}


.news-tabs-wrap {
    position: relative;
    padding: 18px 18px 10px;
    box-shadow: 0 12px 35px rgba(0, 47, 108, 0.08);
    backdrop-filter: blur(8px);
    position: relative;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(2, 136, 209, .08);
    border-radius: 24px 24px 0 0;
}

.news-tabs-wrap::before 
{
content: "";
  position: absolute;
  top: 0;
  right: 24px;
  width: 92%;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, #fff, #0291d2);
}
 .tab-contentsnews {
    padding: 18px 18px 10px;
    box-shadow: 0 12px 35px rgba(0, 47, 108, 0.08);
    backdrop-filter: blur(8px);
    position: relative;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(2, 136, 209, .08);
    border-radius: 0 0 24px 24px ;
    z-index: 2;
}
.news-tabs {
    border-bottom: none;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.news-tabs .nav-item {
    margin-bottom: 10px;
}

.news-tabs .nav-link {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--deep-navy);
    background: #edf6fd;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s ease;
    box-shadow: inset 0 0 0 1px rgba(2, 136, 209, 0.08);
}

.news-tabs .nav-link i {
    color: var(--news-orange-end);
    transition: .3s;
}

.news-tabs .nav-link:hover {
    background: var(--deep-navy);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 47, 108, 0.18);
}

.news-tabs .nav-link:hover i,.news-tabs .nav-link:hover span {
    color: #ffd180;
}

.news-tabs .nav-link.active {
background: linear-gradient(135deg, #fff, #028ed1);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(2, 136, 209, 0.22);
}

.news-tabs .nav-link.active i {
    color: #ffffff;
}

.news-panel {
    padding-top: 20px;
}

.news-card {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(2, 136, 209, 0.08);
    box-shadow: 0 10px 28px rgba(0, 47, 108, 0.08);
    transition: all .35s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0, 47, 108, 0.16);
    border-color: rgba(255, 152, 0, 0.28);
}

.news-card .news-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #dfeffc;
}

.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.08);
}

.news-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: linear-gradient(135deg, var(--news-orange-start), var(--news-orange-end));
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
    box-shadow: 0 8px 20px rgba(239, 108, 0, .28);
}

.news-body {
    padding: 20px 20px 18px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: #607d8b;
    margin-bottom: 10px;
}

.news-meta i {
    color: var(--news-orange-end);
    margin-left: 5px;
}

.news-title {
    margin-bottom: 12px;
    line-height: 1.95;
    font-size: 1.05rem;
    font-weight: 800;
}

.news-title a {
    text-decoration: none;
    color: var(--deep-navy);
    transition: color .25s ease;
}

.news-title a:hover {
    color: var(--primary-blue);
}

.news-excerpt {
    color: var(--text-dark);
    font-size: .94rem;
    line-height: 1.95;
    margin-bottom: 18px;
}

.news-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.news-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 800;
    text-decoration: none;
    transition: .25s;
}

.news-more:hover {
    color: var(--news-orange-end);
}

.news-more i {
    font-size: .9rem;
}

.tab-archive {
    text-align: center;
    margin-top: 28px;
}

.tab-archive a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--news-orange-start), var(--news-orange-end));
    box-shadow: 0 10px 24px rgba(239, 108, 0, .25);
    transition: all .3s ease;
}

.tab-archive a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(239, 108, 0, .33);
    color: #fff;
}
/* =========================================
   بخش گالری - استایل تمام شیشه‌ای (Glassmorphism)
========================================= */


.creative-gallery-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--dark-blue) 100%);
}

/* --- استایل محتوا --- */

/* عناوین */
.cg-title {
    font-weight: 900;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.cg-subtitle {
    color: #e2e8f0;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* --- فیلترهای شیشه‌ای --- */
.cg-filter-wrapper {
   background: rgba(255, 255, 255, 0.04); /* کاهش شفافیت سفید */
    backdrop-filter: blur(15px); /* تاری نرم‌تر */
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 8px;
    /* حاشیه بسیار ظریف‌تر که چشم را نزند */
    border: 1px solid rgba(255, 255, 255, 0.06); 
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15); /* سایه نرم‌تر */
}

.cg-filters .nav-link {
    color: #cbd5e1;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cg-filters .nav-link:hover,
.cg-filters .nav-link.active {
background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
  color: #fff !important;
  box-shadow: 0 0 15px rgba(84, 48, 48, 0.3);
  text-shadow: 0 0 5px rgba(173, 173, 173, 0.5);
}

/* --- شبکه بنتو با کارت‌های شیشه‌ای --- */
.cg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

@media (min-width: 992px) {
    .cg-grid { grid-template-columns: repeat(4, 1fr); }
    .cg-large { grid-column: span 2; grid-row: span 2; }
    .cg-wide  { grid-column: span 2; grid-row: span 1; }
    .cg-tall  { grid-column: span 1; grid-row: span 2; }
}

.cg-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    
    background: rgba(255, 255, 255, 0.02); /* تقریبا بی‌رنگ */
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    /* تصویر کمی شفاف است تا شیشه ای بودن حس شود */
    opacity: 0.85; 
}

.cg-item:hover {
      transform: translateY(-5px);
    /* در حالت هاور، روشنایی ملایم‌تری به خود می‌گیرد */
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.25);
}

.cg-item:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* --- اورلی روی تصاویر --- */
.cg-overlay {
        position: absolute;
    inset: 0;
    /* گرادیان تاریک روی عکس‌ها کمی روشن‌تر و نرم‌تر شد */
    background: linear-gradient(to top, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 1;
}

.cg-badge {
    background: rgba(0, 0, 0, 0.4); /* تیره شیشه‌ای */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.cg-info h4 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cg-info p {
    color: #cbd5e1;
    font-size: 0.9rem;
}
/* =========================================
   استایل‌های مربوط به پخش ویدیو در شبکه بنتو
========================================= */

.cg-item .cg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* باعث می‌شود ویدیو بدون دفرمه شدن، کل باکس را پر کند */
    transition: transform 0.6s ease;
    opacity: 0.85; /* کمی شفافیت برای حفظ حس شیشه‌ای */
    z-index: 0;
}

/* افکت زوم شدن ویدیو هنگام رفتن ماوس روی کارت */
.cg-item:hover .cg-video {
    transform: scale(1.1);
    opacity: 1;
}

/* اطمینان از اینکه نوشته‌ها و گرادیان تاریک همیشه روی ویدیو قرار می‌گیرند */
.cg-item .cg-overlay {
    z-index: 1; 
}
.gallery-item {
    transition: opacity .4s ease, transform .4s ease;
}

/* وقتی قابل نمایش هستند */
.visible-item {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
}

/* وقتی فیلتر می‌شوند */
.hidden-item {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    visibility: hidden;
}

/* چیدمان نامتقارن و جذاب در دسکتاپ */
@media (min-width: 992px) {
    .cg-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cg-large { grid-column: span 2; grid-row: span 2; }
    .cg-wide  { grid-column: span 2; grid-row: span 1; }
    .cg-tall  { grid-column: span 1; grid-row: span 2; }
}

.cg-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* این ترانزیشن برای انیمیشن فیلتر شدن جاوااسکریپت حیاتی است */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: brightness(0.8) grayscale(10%); /* حالت مات و هنری در حالت عادی */
}

.cg-item:hover img {
    transform: scale(1.08);
    filter: brightness(1) grayscale(0%); /* شفاف و رنگی شدن با هاور */
}

/* -----------------------------------------
   اورلی و محتوای روی تصاویر
----------------------------------------- */
.cg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    pointer-events: none;
}

.cg-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-badge { background: rgba(234, 179, 8, 0.2); border-color: rgba(234, 179, 8, 0.5); color: #fde047; }
.doc-badge { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }

.cg-info {
    transform: translateY(20px);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.cg-item:hover .cg-info {
    transform: translateY(0);
    opacity: 1;
}

.cg-info h4 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 800;
}

.cg-info p {
    font-size: 0.9rem;
    color: #38bdf8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
/* تنظیمات پایه سکشن */
.maragheh-intro-section {
    position: relative;
    z-index: 10;
}

/* باکس اصلی (کپی شده از تم گرادیان ابتدای سایت) */
.intro-box-wrapper {
    /* استفاده از گرادیان سرمه ای به آبی سایت شما */
    background: linear-gradient(135deg, #012a4d 0%, #0056b3 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* یک افکت نور ملایم برای زیبایی بک‌گراند */
.intro-box-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(-25deg);
    pointer-events: none;
}

/* استایل تصویر شهر مراغه */
.image-wrapper {
    position: relative;
    height: 100%;
}

.rounded-custom {
    border-radius: 20px;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* برچسب شیشه‌ای روی عکس (مشابه افکت hero-glass-card) */
.glass-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(1, 42, 77, 0.5); /* سرمه ای با شفافیت */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* تنظیمات متن‌ها */
.text-cyan {
    color: #00b4d8; /* رنگ آبی فیروزه‌ای سایت */
    letter-spacing: 0.5px;
    font-weight: 700;
}

.line-height-lg {
    line-height: 1.9;
    text-align: justify;
    font-size: 1.05rem;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.divider-light {
    border-color: rgba(255, 255, 255, 0.15);
}

/* شبکه کارت‌های اطلاعات تماس */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

/* باکس‌های شیشه‌ای اطلاعات (برگرفته از hero-glass-card) */
.contact-glass-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-glass-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

}

/* باکس مخصوص سامانه 122 */
.alert-item {
    background: rgba(220, 53, 69, 0.15); /* قرمز ملایم هشدار */
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-item .icon-circle {
    background: #dc3545;
    color: white;
}

/* آیکون‌ها */
.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white); 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid #fff;
}

/* متون داخل باکس تماس */
.info-text {
    display: flex;
    flex-direction: column;
}

.info-text .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2px;
}

.info-text .value {
    font-size: 1rem;
    color: white;
}


/* تنظیمات سایدبار آمار (رنگ بندی بر اساس هدر سایت) */
.stat-sidebar {
    background: linear-gradient(135deg, #012a4d 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

/* نقطه چشمک زن کنار تیتر */
.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #00b4d8;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
    animation: pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    to { box-shadow: 0 0 0 15px rgba(0, 180, 216, 0); }
}

/* کارت های آمار کلی */
.total-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.total-stat-card:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.total-stat-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 15px; /* راست چین */
}

.total-stat-card .stat-title {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.total-stat-card .stat-value {
    display: block;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.total-stat-card .stat-value small {
    font-size: 0.75rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.5);
}

/* تنظیمات نقشه SVG */
.svg-map-wrapper {
    width: 100%;
    max-width: 550px;
}

#maragheh-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.map-zone {
    fill: #dce7f3; /* رنگ پیش‌فرض مناطق */
    stroke: #ffffff;
    stroke-width: 3;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* افکت هاور روی مناطق نقشه */
.map-zone:hover {
    fill: #0056b3; /* رنگ آبی سازمانی در هنگام هاور */
    stroke: #00b4d8;
    stroke-width: 4;
}

/* کادر شناور اطلاعات (تولتیپ) */
.map-tooltip {
    position: fixed; /* Fixed باعث می‌شود بر اساس موقعیت ماوس در صفحه کار کند */
    background: rgba(1, 42, 77, 0.95); /* سرمه ای سایت با شفافیت */
    color: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 180, 216, 0.3);
    pointer-events: none; /* تا مزاحم حرکت ماوس نشود */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
    min-width: 220px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

/* محتوای داخل تولتیپ */
.tooltip-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00b4d8;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.tooltip-row i {
    width: 15px;
    text-align: center;
    margin-left: 5px;
}

.bg-white {
  
  border-radius: 24px;
}

/* =========================================
   Events & Links Section (Hero Theme Match)
   ========================================= */

.events-links-section {
    position: relative;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--dark-blue) 100%);
    padding: 80px 0;
    color: var(--white);
    /* برش مورب ملایم در بالای سکشن برای طراحی خلاقانه‌تر */
    clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
    overflow: hidden;
}

/* هاله‌های نوری محو در پس‌زمینه */
.events-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
}

.shape-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--news-orange-start);
}

/* پنل‌های شیشه‌ای اصلی */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-glass-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-glass-title i {
    color: var(--news-orange-start);
    font-size: 1.8rem;
}

/* ----------------------------------
   لیست رویدادها
   ---------------------------------- */
.glass-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.glass-event-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.glass-event-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--white);
    transform: translateX(-5px); /* حرکت ظریف به سمت راست (راست‌چین) */
}

/* تقویم‌های کوچک کنار رویدادها */
.event-date-box {
    min-width: 75px;
    height: 75px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.orange-gradient {
    background: linear-gradient(135deg, var(--news-orange-start), var(--news-orange-end));
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.cyan-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.event-date-box .day {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.event-date-box .month {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 3px;
    font-weight: 500;
}

.event-info h4 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.4;
}

.event-info p {
    font-size: 0.9rem;
    opacity: 0.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* محدود کردن متن به 2 خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* ----------------------------------
   شبکه پیوندها (Grid)
   ---------------------------------- */
.glass-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.glass-link-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.glass-link-card i {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-link-card span {
    font-size: 0.95rem;
    font-weight: 600;
}

.glass-link-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.glass-link-card:hover i {
    transform: scale(1.15);
    color: var(--white);
}

/* =========================================
   Main Footer Section
   ========================================= */

.main-footer {
    position: relative;
    background-color: var(--deep-navy); /* سرمه‌ای بسیار تیره سایت شما */
    color: #ffffff;
    margin-top: 150px; /* فضا برای موج آب */
    padding-top: 50px;
    font-family: 'Vazirmatn', sans-serif;
}

/* افکت موج آب در بالای فوتر */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-99%); /* قرارگیری دقیق در لبه بالایی */
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
}

.footer-wave .wave-shape {
    fill: var(--deep-navy); /* همرنگ پس‌زمینه فوتر */
}

/* ----------------------------------
   تایپوگرافی و عناوین
   ---------------------------------- */
.footer-brand-name {
    font-weight: 800;
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    text-align: justify;
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--white);
}

/* خط تزئینی زیر عناوین فوتر */
.footer-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary-blue));
    border-radius: 5px;
}

/* ----------------------------------
   باکس سامانه حوادث ۱۲۲
   ---------------------------------- */
.emergency-call-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 152, 0, 0.1); /* بک‌گراند نارنجی ملایم شیشه‌ای */
    border: 1px solid rgba(255, 152, 0, 0.3);
    padding: 15px 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.pulse-icon {
    width: 50px;
    height: 50px;
    background: var(--news-orange-start);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    animation: pulseOrange 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseOrange {
    to {
        box-shadow: 0 0 0 20px rgba(255, 152, 0, 0);
    }
}

.call-text {
    display: flex;
    flex-direction: column;
}

.call-text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.call-text strong {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--news-orange-start);
    line-height: 1.1;
    letter-spacing: 2px;
}

/* ----------------------------------
   لیست دسترسی سریع
   ---------------------------------- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(-5px); /* حرکت به سمت چپ در زبان فارسی */
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

/* ----------------------------------
   ارتباط با ما
   ---------------------------------- */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* ----------------------------------
   دکمه‌های اپلیکیشن و شبکه‌های اجتماعی
   ---------------------------------- */
.app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-cyan);
    color: white;
    transform: translateY(-3px);
}

.app-btn i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.app-btn span {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 1.2;
}

.app-btn strong {
    font-size: 1rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-3px) scale(1.1);
    color: white;
    box-shadow: 0 5px 15px rgba(2, 136, 209, 0.4);
}

/* =========================================
/* ==============================================================
   1. استایل‌های بخش مناقصات (طراحی کارت‌های تقویم‌دار)
   ============================================================== */
.premium-tenders { direction: rtl; }

.premium-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.header-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-pulse {
    width: 45px;
    height: 45px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
}

.premium-section-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #1e293b;
}

.btn-modern-view {
    background: #f8fafc;
    color: #475569;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.btn-modern-view:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateX(-5px);
}

.tenders-modern-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-tender-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}

.modern-tender-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* نوار رنگی کنار کارت */
.modern-tender-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    transition: all 0.3s;
}
.type-blue::before { background: #0ea5e9; }
.type-green::before { background: #10b981; }

.modern-tender-card:hover::before { width: 10px; }

/* تقویم داخلی */
.tender-date-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    margin-left: 20px;
}

.t-day { font-size: 1.8rem; font-weight: 800; color: #0f172a; line-height: 1; }
.t-month { font-size: 0.9rem; font-weight: 600; color: #64748b; margin: 5px 0; }
.t-year { font-size: 0.75rem; color: #94a3b8; }

.tender-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tender-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.modern-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-blue { background: #e0f2fe; color: #0284c7; }
.badge-green { background: #d1fae5; color: #059669; }

.tender-code { font-size: 0.8rem; color: #64748b; font-weight: 500; }

.tender-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.tender-location {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tender-action-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 180px;
    padding-right: 20px;
    border-right: 1px solid #f1f5f9;
}

.btn-gradient-blue, .btn-gradient-green {
    padding: 12px 24px;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-gradient-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-gradient-blue:hover, .btn-gradient-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

/* =========================================
   Tenders Section Styles (مناقصات و مزایدات)
   ========================================= */
.tenders-section {
    padding: 50px 0;
    background-color: #f8fbfd; /* پس‌زمینه ملایم */
}
.tenders-header {
    text-align: center;
    margin-bottom: 40px;
}
.tenders-header h3 {
    color: #004d99;
    font-weight: bold;
    font-size: 24px;
    position: relative;
    display: inline-block;
}
.tenders-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #004d99, #00a8cc);
    border-radius: 5px;
}
.tenders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 15px;
}
.tender-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f5;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}
.tender-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 77, 153, 0.15);
    border-color: #00a8cc;
}
.tender-date {
    background: linear-gradient(135deg, #004d99, #00a8cc);
    color: white;
    border-radius: 12px;
    padding: 10px 15px;
    text-align: center;
    min-width: 80px;
}
.tender-date .day { font-size: 24px; font-weight: bold; display: block; line-height: 1; }
.tender-date .month { font-size: 13px; opacity: 0.9; }
.tender-info h4 { font-size: 16px; margin: 0 0 8px 0; color: #222; font-weight: bold; }
.tender-info span { font-size: 13px; color: #777; display: flex; align-items: center; gap: 5px; }

/* =========================================
   Links Section Styles (پیوندهای مهم - اسکرول افقی)
   ========================================= */
.links-section {
    padding: 60px 0;
    background: #ffffff;
    overflow: hidden;
}
.links-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 30px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #00a8cc #f1f1f1; /* Firefox */
}
/* زیباسازی اسکرول‌بار در مرورگرهای مبتنی بر کروم */
.links-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.links-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.links-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #00a8cc;
    border-radius: 10px;
}
.links-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #004d99;
}
.link-card {
    flex: 0 0 180px; /* عرض ثابت برای هر کارت جهت اسکرول */
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    scroll-snap-align: center;
    /* Soft UI / Neumorphism Shadow */
    box-shadow: 6px 6px 14px #e6e6e6, -6px -6px 14px #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: #444;
    border: 1px solid transparent;
}
.link-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}
.link-card h5 {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    font-weight: 600;
}
/* افکت‌های پیشرفته Hover */
.link-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 168, 204, 0.2);
    border: 1px solid rgba(0, 168, 204, 0.3);
}
.link-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.15) rotate(5deg);
}
.link-card:hover h5 {
    color: #004d99;
}


/* =========================================
   Tenders Section - 2 Columns Layout
   ========================================= */
.tenders-section {
    padding: 60px 0;
    background-color: #f9fbfd; /* هماهنگ با رنگ پس‌زمینه بخش‌های قبلی */
}

.tenders-main-title {
    text-align: center;
    color: #004d99;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}

.tenders-main-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #004d99, #00a8cc);
    margin: 15px auto 0;
    border-radius: 5px;
}

/* ساختار دو ستونه */
.tenders-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* دقیقاً 2 ستون */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 991px) {
    .tenders-grid-2col {
        grid-template-columns: 1fr; /* در موبایل و تبلت 1 ستونه می‌شود */
    }
}

/* ظاهر کارت‌های مناقصه هماهنگ با تم سایت */
.tender-list-item {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    text-decoration: none !important;
}

.tender-list-item:hover {
    transform: translateX(-5px); /* حرکت ملایم به سمت چپ به عنوان افکت هاور */
    box-shadow: 0 8px 20px rgba(0, 77, 153, 0.1);
    border-color: #00a8cc;
}

.tender-content-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tender-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 168, 204, 0.1);
    color: #00a8cc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}

.tender-list-item:hover .tender-icon {
    background: #00a8cc;
    color: #ffffff;
}

.tender-text-group h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.tender-list-item:hover .tender-text-group h4 {
    color: #004d99;
}

.tender-text-group p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.tender-date-badge {
    background: #f1f5f9;
    color: #555;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    min-width: 90px;
    border: 1px solid #e2e8f0;
}

/* ==============================================================
   3. واکنش‌گرایی (ریسپانسیو برای موبایل و تبلت)
   ============================================================== */
@media (max-width: 991px) {
    .modern-links-grid { grid-template-columns: repeat(3, 1fr); }
    .modern-tender-card { flex-wrap: wrap; }
    .tender-action-box { 
        width: 100%; 
        border-right: none; 
        border-top: 1px solid #f1f5f9; 
        padding-right: 0; 
        padding-top: 15px; 
        margin-top: 15px; 
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modern-links-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .premium-link-card { padding: 25px 15px; }
    .p-icon-box { width: 70px; height: 70px; padding: 12px; }
    .tender-date-box { min-width: 70px; padding: 10px; margin-left: 15px; }
    .t-day { font-size: 1.4rem; }
    .premium-section-header { flex-direction: column; gap: 15px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .modern-links-grid { grid-template-columns: 1fr; }
    .modern-tender-card { flex-direction: column; align-items: flex-start; }
    .tender-date-box { margin-left: 0; margin-bottom: 15px; flex-direction: row; gap: 10px; min-width: 100%; }
    .t-day { font-size: 1.2rem; }
}

/* ========================================= */
/* بخش پایگاه‌های مرجع (قبل از فوتر)         */
/* ========================================= */
.reference-portals-section {
    background-color: #f8f9fa;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.section-title-portals {
    color: var(--deep-navy, #1a2b4c);
    font-weight: 800;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 45px;
}

.section-title-portals::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue, #0d6efd);
    border-radius: 2px;
}

.portal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 25px 15px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: var(--dark-blue, #2c3e50);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.15);
    color: var(--primary-blue, #0d6efd);
}

/* استایل مخصوص عکس‌ها (لوگوها) */
.portal-img {
    height: 65px; /* ارتفاع ثابت برای هم‌اندازه شدن همه لوگوها */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(100%) opacity(0.7); /* در حالت عادی خاکستری است */
    transition: all 0.4s ease;
}

/* افکت رنگی شدن عکس هنگام رفتن ماوس */
.portal-card:hover .portal-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.portal-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
    margin-top: auto; /* برای تراز شدن متن‌ها در پایین باکس */
}

/* ----------------------------------
   نوار پایین (کپی‌رایت)
   ---------------------------------- */
.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright-text strong {
    color: var(--white);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-cyan);
}

.separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}


@media (max-width: 991.98px) {
    .news-section {
        padding: 60px 0 70px;
    }

    .news-card .news-img {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .news-section .section-title {
        font-size: 1.65rem;
    }

    .news-tabs {
        justify-content: center;
    }

    .news-tabs .nav-link {
        width: 100%;
        justify-content: center;
    }

    .news-tabs .nav-item {
        width: 100%;
    }

    .news-card .news-img {
        height: 190px;
    }
}
