/* ===== HEADER STYLES ===== */

/* Top Bar - نوار بالایی آبی */
.top-bar {
    background: linear-gradient(135deg, #1258ac 0%, #083570 100%);
    color: white;
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* News Ticker */
.news-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.news-ticker {
    display: flex;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.news-ticker-item {
    display: none;
    animation: fadeInOut 8s ease-in-out;
}

.news-ticker-item.active {
    display: inline-block;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

.news-ticker-item a {
    color: #fff; /* سفید */
    text-decoration: none;
}

.news-ticker-item a:hover {
    text-decoration: underline;
    color: #aaddff; /* رنگ روشن‌تر برای هاور */
}

/* Date & Contact */
.date-contact-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    white-space: nowrap;
}

.jalali-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jalali-date i {
    font-size: 16px;
}

.contact-spacer {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}

.contact-info i {
    font-size: 16px;
}

/* Main Header - نوار آبی */

.main-header {
    background: linear-gradient(135deg, #1258ac 0%, #083570 100%);
    padding: -50px 0 50px 0;
    position: relative;
    margin-bottom: 120px;  /* فاصله از محتوای بعدی */
}

.main-header-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgb(255, 255, 255);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 
                0 6px 15px rgba(0, 0, 0, 0.12);  /* سایه خیلی مشخص */
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    transform: translateY(60px);
    z-index: 1001; 

}


/* Logo Section */
.site-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.site-logo img {
    height: 70px;
    width: auto;
    display: block;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.logo-spacer {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, #1258ac 0%, #083570 100%);
    border-radius: 0px;
}

/* Navigation Menu */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: right;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 200;
    padding: 5px 0;
    display: block;
    transition: color 0.5s ease;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: #00aad3;
}


/* ===== استایل‌های اصلاح‌شده و انیمیشنی زیرمنو ===== */
.main-navigation ul li {
    position: relative;
}

/* --- زیرمنوی سطح اول (باز شدن نرم به سمت پایین) --- */
.primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 15px); /* شروع انیمیشن از کمی پایین‌تر */
    right: 0;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    min-width: 250px;
    padding: 12px 0;
    list-style: none;
    
    /* تنظیمات انیمیشن مدرن */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    border: 1px solid #f1f5f9;
}

/* وقتی موس میره روی آیتم اصلی (نمایش سطح اول) */
.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* حرکت نرم به جایگاه اصلی */
    top: 100%; /* چسبیدن به منو */
}

/* --- زیرمنوی سطح دوم به بعد (باز شدن نرم به سمت چپ) --- */
.primary-menu .sub-menu .sub-menu {
    top: 0; /* هم‌تراز با آیتم پدر */
    right: 100%; /* باز شدن از سمت چپ در سایت راست‌چین */
    margin-right: 0; 
    
    /* تنظیمات انیمیشن برای زیرمنوی داخلی */
    transform: translateX(15px); /* شروع انیمیشن از کمی متمایل به راست */
}

/* وقتی موس میره روی زیرمنوی داخلی (نمایش سطح دوم) */
.primary-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0); /* حرکت نرم به سمت چپ */
}

/* --- استایل آیتم‌های داخل زیرمنوها --- */
.primary-menu .sub-menu li {
    width: 100%;
}

.primary-menu .sub-menu li a {
    color: #475569;
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* هاور جذاب آیتم‌های زیرمنو */
.primary-menu .sub-menu li > a:hover {
    background: #f8fafc;
    color: #1258ac;
    padding-right: 25px; /* افکت حرکت ریز به سمت راست موقع هاور */
}

/* اضافه کردن آیکون فلش برای آیتم‌هایی که خودشون زیرمنو دارن */
.primary-menu .sub-menu li.menu-item-has-children > a::after {
    content: '\2039'; /* کد یونیکد فلش سمت چپ */
    font-size: 18px;
    position: absolute;
    left: 20px;
    transition: transform 0.3s ease;
}

/* حرکت ریز فلش موقع هاور */
.primary-menu .sub-menu li.menu-item-has-children:hover > a::after {
    transform: translateX(-4px);
}


/* Search Box */
.search-box-wrapper {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    border: 2px solid #1258ac;
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

.search-field {
    padding: 8px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 220px;
    background: transparent;
}

.search-submit {
    background: #1258ac;
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}

.search-submit:hover {
    background: #083570;
}

@media (max-width: 768px) {
    .search-field {
        width: 150px;
    }
}


/* سکشن حوادث تحت پوشش */
.incidents-section {
    padding: 35px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    direction: rtl;
}

.incidents-section .section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.incidents-section .section-title::before,
.incidents-section .section-title::after {
    content: '';
    width: 470px;
    height: 3px;
    background: linear-gradient(90deg, #1e5a96 0%, #00aad3 100%);
    border-radius: 2px;
}

.incidents-section .section-title span {
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #1e5a96;
    white-space: nowrap;
}

/* گرید 8 ستونه برای لوزی‌ها */
.incidents-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هر آیتم حادثه - چیدمان عمودی */
.incident-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* لوزی آیکون */
.incident-icon {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #1e5a96 0%, #2874b8 100%);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(30, 90, 150, 0.3);
    transition: all 0.4s ease;
    position: relative;
    margin-bottom: 0;
}

/* خط عمودی زیر لوزی */
.incident-icon::after {
    content: '';
    position: absolute;
    bottom: -65px;
    left: 120%;
    transform: translateX(-50%) rotate(-45deg);
    width: 2px;
    height: 75px;
    background: linear-gradient(180deg, #1e5a96 0%, #00aad3 100%);
}

.incident-icon:hover {
    background: linear-gradient(135deg, #00aad3 0%, #00aad3 100%);
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(42, 68, 90, 0.4);
}

/* تصویر داخل لوزی */
.incident-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transform: rotate(-45deg);
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.incident-icon:hover img {
    filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(500%) hue-rotate(180deg);
}

/* برچسب متن زیر خط */
.incident-label {
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1e5a96;
    text-align: center;
    margin-top: 110px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.incident-item:hover .incident-label {
    color: #00aad3;
}

.incident-label small {
    display: block;
    font-size: 14px;
    font-weight: normal;
    margin-top: 2px;
    opacity: 0.8;
}

/* ریسپانسیو */
@media (max-width: 1400px) {
    .incidents-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 50px 30px;
    }
}

@media (max-width: 768px) {
    .incidents-section {
        padding: 40px 0;
    }
    
    .incidents-section .section-title span {
        font-size: 22px;
    }
    
    .incidents-section .section-title::before,
    .incidents-section .section-title::after {
        width: 50px;
    }
    
    .incidents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
    
    .incident-icon {
        width: 110px;
        height: 110px;
    }
    
    .incident-label {
        font-size: 14px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .incidents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 15px;
    }
    
    .incident-icon {
        width: 90px;
        height: 90px;
    }
    
    .incident-icon::after {
        height: 30px;
        bottom: -35px;
    }
    
    .incident-label {
        font-size: 13px;
        margin-top: 38px;
    }
}


/* سکشن اخبار و رویدادهای صندوق */
.news-section {
    padding: 5px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    direction: rtl;
}

.news-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.news-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-section .section-title::before,
.news-section .section-title::after {
    content: '';
    width: 480px;
    height: 3px;
    background: linear-gradient(90deg, #1e5a96 0%, #00aad3 100%);
    border-radius: 2px;
}

.news-section .section-title span {
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #1e5a96;
    white-space: nowrap;
}

/* گرید 4 ستونه برای اخبار */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* کارت خبر */
.news-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(42, 68, 90, 0.2);
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 90, 150, 0.15);
    border-color: #1e5a96;
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* تصویر خبر */
.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

/* محتوای خبر */
.news-content {
    padding: 20px;
}

/* تاریخ خبر */
.news-date {
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i {
    color: #00aad3  ;
    font-size: 14px;
}

/* عنوان خبر */
.news-title {
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e5a96;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 56px;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: #00aad3;
}

/* دکمه مشاهده بیشتر */
.news-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-block;
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1e5a96 0%, #2874b8 100%);
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 90, 150, 0.2);
}

.btn-more:hover {
    background: linear-gradient(90deg, #379bff 0%, #00aad3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 90, 150, 0.3);
    color: #1e5a96;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-section {
        padding: 60px 0;
    }
    
    .news-section .section-title span {
        font-size: 26px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .news-section .section-title::before,
    .news-section .section-title::after {
        max-width: 100px;
    }
    
    .news-section .section-title span {
        font-size: 22px;
        padding: 0 15px;
    }
    
    .news-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .news-section {
        padding: 40px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-image {
        height: 240px;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .btn-more {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* فونت B Yekan برای منو */
.main-navigation,
.primary-menu,
.primary-menu li,
.primary-menu a,
.primary-menu .sub-menu,
.primary-menu .sub-menu li,
.primary-menu .sub-menu a {
    font-family: 'B Yekan', Tahoma, sans-serif;
}

/* فونت B Yekan برای نوار بالایی */
.top-bar,
.top-bar-container,
.news-ticker-wrapper,
.news-ticker,
.news-ticker-item,
.news-ticker-item a,
.contact-info,
.contact-info span {
    font-family: 'B Yekan', Tahoma, sans-serif;
}

/* سکشن نمایندگی‌های استانی */
.news-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    direction: rtl;
}

.provincial-representatives-section {
    max-width: 1400px;
    margin: 0px auto;
    padding: 0 10px;
    color: #1e5a96;
    font-family: 'B Yekan', Tahoma, sans-serif;
}

/* عنوان سکشن با خط کناری (مثل سکشن‌های قبلی) */
.provincial-representatives-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.provincial-representatives-section .section-title::before,
.provincial-representatives-section .section-title::after {
    content: '';
    width: 480px;
    height: 3px;
    background: linear-gradient(90deg, #1e5a96 0%, #00aad3 100%);
    border-radius: 2px;
}

/* کانتینر اصلی */
.representatives-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    align-items: start;
}

/* باکس توضیحات سمت راست */
.representatives-info {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f0f7;
}

.representatives-info h3 {
    font-size: 22px;
    color: #1a365d;
    margin-bottom: 20px;
    font-weight: bold;
}

.representatives-info p {
    font-size: 16px;
    line-height: 2;
    color: #4a5568;
    margin-bottom: 30px;
}

/* باکس نمایش استان انتخابی */
.selected-province-box {
    background: linear-gradient(135deg, #1258ac 0%, #083570 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.selected-province-box p {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

#selected-province-name {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

/* دکمه مشاهده اطلاعات */
#province-details-btn {
    display: none;
    width: 100%;
    padding: 15px;
    background: #1a365d;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'B Yekan', Tahoma, sans-serif;
}

#province-details-btn:hover {
    background: #2d4a7c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

#province-details-btn.show {
    display: block;
    animation: fadeInUp 0.4s ease;
}

/* باکس نقشه سمت چپ */
.representatives-map {
    background: #ffffff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f0f7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.map-container {
    width: 100%;
    max-width: 700px;
}

/* انیمیشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .representatives-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .provincial-representatives-section .section-title {
        font-size: 26px;
    }
    
    .representatives-info,
    .representatives-map {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .provincial-representatives-section {
        margin: 50px auto;
    }
    
    .provincial-representatives-section .section-title {
        font-size: 22px;
        gap: 15px;
    }
    
    .provincial-representatives-section .section-title::before,
    .provincial-representatives-section .section-title::after {
        max-width: 100px;
    }
    
    .representatives-info h3 {
        font-size: 20px;
    }
    
    .representatives-info p {
        font-size: 14px;
    }
    
    #selected-province-name {
        font-size: 22px;
    }
}

/* ========================================
   Font Face Definition
   ======================================== */


body {
    font-family: 'B Yekan', Tahoma, sans-serif;
}

/* ===== Footer Stats Section (کوچک‌تر شده) ===== */
.footer-stats-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 30px 20px;
    position: relative;
}

.footer-stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;  /* قبلاً 12px 24px بود */
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: auto;
    min-width: auto;
}
.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-content {
    flex: 1;
    text-align: right;
    direction: rtl;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
/* ========================================
   Footer Content Wrapper (White Box)
   ======================================== */
.footer-content-wrapper {
    background: #f8fafc;
    padding: 60px 20px 40px;
}

.footer-content-box {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    direction: rtl;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-column {
    text-align: right;
    direction: rtl;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    direction: rtl;
}

.footer-title svg {
    color: #3b82f6;
    order: 2;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-links li {
    margin-bottom: 12px;
    text-align: right;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3b82f6;
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #64748b;
    justify-content: flex-start;
    direction: rtl;
}

.footer-contact svg {
    color: #3b82f6;
    flex-shrink: 0;
    order: 2;
}

.footer-map {
    margin-bottom: 20px;
    text-align: right;
}

.footer-logo {
    text-align: center;
    margin-top: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* ========================================
   Footer Copyright (Dark Bar)
   ======================================== */
.footer-copyright {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .footer-stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-content-box {
        padding: 30px 20px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* آیکون‌ها سمت راست */
.contact-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.footer-icon {
    order: 2;
}

.footer-info {
    order: 1;
    text-align: right;
}

/* لوگو وسط */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* نوار کپی‌رایت وسط */
.footer-copyright .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-copyright p {
    text-align: center;
    margin: 10px 0;
}

.post-supertitle {
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
    line-height: 2;
}

.single-post-title {
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #111;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-lead {
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 15px;
    color: #333;
    background: #f7f9fc;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    padding: 16px 20px;
    line-height: 2;
    margin-bottom: 24px;
    text-align: center;
}


/* ========================================
   Footer Stats Section (Blue Background)
   ======================================== */
.footer-stats-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 60px 20px; /* padding چپ و راست اضافه شد */
    position: relative;
}


.footer-stats-container {
    max-width: 100%; /* max-width: 1200px; حذف شد */
    width: 100%; /* اضافه شد */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
    padding: 0 20px; /* padding چپ و راست اضافه شد */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-content {
    flex: 1;
    text-align: right;
    direction: rtl;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ========================================
   Footer Content Wrapper (White Box)
   ======================================== */
.footer-content-wrapper {
    background: #f8fafc;
    padding: 60px 20px 40px; /* padding چپ و راست اضافه شد */
}

.footer-content-box {
    max-width: 100%; /* max-width: 1200px; حذف شد */
    width: 100%; /* اضافه شد */
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 50px 20px; /* padding چپ و راست اضافه شد */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    direction: rtl;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%; /* اضافه شد */
}

.footer-column {
    text-align: right;
    direction: rtl;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    direction: rtl;
}

.footer-title svg {
    color: #3b82f6;
    order: 2;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-links li {
    margin-bottom: 12px;
    text-align: right;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3b82f6;
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #64748b;
    justify-content: flex-start;
    direction: rtl;
}

.footer-contact svg {
    color: #3b82f6;
    flex-shrink: 0;
    order: 2;
}

.footer-map {
    margin-bottom: 20px;
    text-align: right;
}

.footer-logo {
    text-align: center; /* این برای وسط چین کردن لوگو */
    margin-top: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* ========================================
   Footer Copyright (Dark Bar)
   ======================================== */
.footer-copyright {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
}

.footer-copyright .container {
    max-width: 100%; /* max-width: 1100px; حذف شد */
    width: 100%; /* اضافه شد */
    margin: 0 auto;
    padding: 20px 20px; /* padding چپ و راست اضافه شد */
}

.footer-copyright p {
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .footer-stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-content-box {
        padding: 30px 20px; /* padding چپ و راست */
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* آیکون‌ها سمت راست */
.contact-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.footer-icon {
    order: 2;
}

.footer-info {
    order: 1;
    text-align: right;
}

/* لوگو وسط */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* نوار کپی‌رایت وسط */
.footer-copyright .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-copyright p {
    text-align: center;
    margin: 10px 0;
}

/* ===== سکشن ما در رسانه‌ها ===== */
.media-section {
    padding: 50px 0;
    background: #f8fafc;
}

.media-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}

.media-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.media-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(30,90,150,0.12);
    border-color: #1258ac;
}

.media-number {
    width: 45px;
    height: 45px;
    background: #1258ac;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.media-content {
    flex: 1;
}

.media-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px;
}

.media-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.media-source {
    color: #1258ac;
    font-weight: 500;
}

.media-date {
    color: #888;
}

.media-arrow {
    color: #1258ac;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.media-card:hover .media-arrow {
    opacity: 1;
}

.no-media {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    color: #888;
}

@media (max-width: 768px) {
    .media-card {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .media-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .media-title {
        font-size: 14px;
    }
    
    .media-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-item { position: relative; overflow: hidden; border-radius: 10px; }
.event-overlay { 
    position: absolute; bottom: -100px; left: 0; right: 0; 
    background: rgba(0,0,0,0.8); color: #fff; padding: 15px; 
    transition: bottom 0.3s ease; 
}
.event-item:hover .event-overlay { bottom: 0; } /* هنگام هاور، توضیحات بالا می‌آید */


.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

/* انیمیشن هنگام هاور (وقتی موس روی کارت می‌رود) */
.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-card h3 {
    padding: 15px;
    font-size: 16px;
    text-align: center;
    color: #333;
}

/* ===== ریسپانسیو هدر و منوی موبایل ===== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 992px) {
    .main-header-container {
        flex-wrap: wrap; /* اجازه شکستن خطوط */
        padding: 15px 20px;
        gap: 15px;
        justify-content: space-between;
    }

    .logo-spacer {
        display: none; /* مخفی کردن خط کنار لوگو در موبایل */
    }

    .site-logo img {
        height: 55px; /* کوچک‌تر شدن لوگو */
    }

    .mobile-menu-toggle {
        display: flex; /* نمایش دکمه در موبایل */
        align-items: center;
    }

    /* باکس جستجو */
    .search-box-wrapper {
        width: 100%;
        order: 3; /* انتقال به خط پایین */
    }

    .search-form, .search-field {
        width: 100%;
    }

    /* تنظیمات منوی اصلی در موبایل */
    .main-navigation {
        display: none; /* مخفی در حالت عادی */
        width: 100%;
        order: 4;
        background: #f8fafc;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
    }

    .main-navigation.active {
        display: block; /* نمایش وقتی کلاس active اضافه می‌شود */
    }

    .primary-menu {
        flex-direction: column; /* چیدمان عمودی منوها */
        gap: 0;
        align-items: flex-start;
    }

    .primary-menu > li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .primary-menu > li:last-child {
        border-bottom: none;
    }

    .primary-menu > li > a {
        padding: 12px 5px;
        width: 100%;
    }

    /* استایل زیرمنوها در موبایل */
    .primary-menu .sub-menu,
    .main-navigation ul.sub-menu {
        position: static;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        display: none; /* مخفی در حالت عادی */
        padding-right: 15px;
        border-right: 2px solid #1258ac;
        margin: 0 0 10px 0;
        border-radius: 0;
    }

    .primary-menu li:hover > .sub-menu,
    .main-navigation ul li:hover > ul.sub-menu {
        display: block;
    }
}

/* ===== استایل‌های هدر چسبان و متحرک (Sticky Header) ===== */

/* افکت نرم برای کوچک شدن کادر و لوگو */
.main-header-container,
.site-logo img {
    transition: padding 0.3s ease, border-radius 0.3s ease, height 0.3s ease, transform 0.3s ease;
}

/* وقتی صفحه اسکرول می‌شود و کلاس sticky-scroll توسط JS فعال می‌گردد */
.site-header.sticky-scroll .main-header {
    /* برای جلوگیری از پرش و خراب شدن سایت وقتی کادر سفید از سر جایش کنده می‌شود */
    padding-bottom: 120px; 
}

/* استایل کادر سفید در حالت شناور */
.site-header.sticky-scroll .main-header-container {
    position: fixed;
    top: 20px; /* فاصله شناور بودن از بالای صفحه */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 40px); /* تا به لبه‌های مانیتور نچسبد */
    max-width: 1400px;
    z-index: 99999;
    
    /* جمع‌وجورتر شدن کادر برای اشغال فضای کمتر از دید کاربر */
    padding: 12px 35px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95); /* کمی شیشه‌ای شدن هدر متحرک */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* انیمیشن ورود نرم از بالا */
    transform: translateY(0);
    animation: slideDownSticky 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* کوچک شدن نرم لوگو در حالت شناور */
.site-header.sticky-scroll .site-logo img {
    height: 50px; 
}

/* کی‌فریم انیمیشن ورود هدر چسبان */
@keyframes slideDownSticky {
    from {
        transform: translateY(-120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* جلوگیری از رفتن هدر زیر نوار مشکی مدیریت وردپرس (وقتی در سایت لاگین هستی) */
body.admin-bar .site-header.sticky-scroll .main-header-container {
    top: 52px;
}

/* تنظیمات موبایل برای هدر چسبان */
@media (max-width: 992px) {
    .site-header.sticky-scroll .main-header-container {
        top: 10px;
        width: calc(100% - 20px);
        padding: 10px 20px;
    }
    
    .site-header.sticky-scroll .site-logo img {
        height: 45px;
    }
    
    body.admin-bar .site-header.sticky-scroll .main-header-container {
        top: 10px; /* در موبایل نوار مدیریت وردپرس بالا نمی‌ماند */
    }
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    left: 30px; /* چون سایتت راست‌چین هست، سمت چپ گذاشتمش */
    z-index: 9999;
    width: 45px;
    height: 45px;
    background: #1258ac;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(18, 88, 172, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    background: #083570;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(8, 53, 112, 0.5);
}