/* تنظیمات عمومی */
body {
    background: #f4f4f4;
    padding-bottom: 90px;
    min-height: 100vh;
    margin: 0;
    font-family: 'IRANYekanX', Tahoma, sans-serif !important;
}
/* هدر بالا */
.page-top-logo {
    background: #000;
    padding: 20px 0;
    text-align: center;
}
.page-top-logo img { max-height: 80px; margin-bottom: 10px; }
.header-text h1 { color: #fff; font-size: 24px; font-weight: bold; margin: 0; }
.header-text h2 { color: var(--event-color); font-size: 17px; margin-top: 6px; }
/* منوی پایین — قوی‌ترین سلکتورها */
.bottom-menu {
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #ddd !important;
    padding: 8px 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
}

/* ==== فقط این ۳ تغییر انجام شده ==== */

/* ۱. این بلاک قدیمی و تکراری رو کامل حذف کردم (چون با بعدی تداخل داشت) */
/* حذف شد → .bottom-menu .mod-menu li, .bottom-menu .menu li, .bottom-menu li { ... } */

/* ۲. اینم فقط این یکی رو نگه داشتم و اصلاح کردم */
.bottom-menu li {
    flex: 1 1 20% !important;     /* ← تغییر از 0 به 20% (دقیقاً ۵ قسمت مساوی) */
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ۳. این خط تکراری آخر فایل رو حذف کردم (چون بالا قبلاً درستش کردیم) */
/* حذف شد → .bottom-menu ul { display: flex... } آخر فایل */

/* بقیه دقیقاً همون کد خودت بدون تغییر */
.bottom-menu .mod-menu a,
.bottom-menu .menu a,
.bottom-menu a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #555 !important;
    text-decoration: none !important;
    padding: 10px 4px !important;
    min-height: 62px !important;
    gap: 7px !important;
    background: transparent !important;
    border-radius: 12px !important;
    transition: all 0.3s !important;
    min-width: 130px;
}
.bottom-menu a i,
.bottom-menu a svg {
    font-size: 26px !important;
    color: #555 !important;
    display: block !important;
}
.bottom-menu a.active,
.bottom-menu a.active i,
.bottom-menu a.router-link-active,
.bottom-menu a.router-link-active i {
    color: #000 !important;
    font-weight: bold !important;
}
.bottom-menu a:hover,
.bottom-menu a:hover i {
    color: #000 !important;
}
.bottom-menu,
.bottom-menu .mod-menu,
.bottom-menu .menu,
.bottom-menu ul {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.bottom-menu ul {
    display: flex !important;
    justify-content: space-between !important;
}
.bottom-menu a {
    font-size:14px;
    width: 100% !important;
    height: 100% !important;
    padding: 10px 4px !important;
    box-sizing: border-box !important;
}

.bottom-menu ul {
    justify-content: space-around !important;   /* ← این خط کلید اصلیه */
}
.nav-item {
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-item i { font-size: 18px; margin-bottom: 3px; }
.nav-item.active { color: #000; font-weight: bold; }

/* ========================================
   لودینگ حرفه‌ای — لوگو شفاف بدون دایره و پس‌زمینه
   ======================================== */
#site-loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease;
}

#site-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: var(--event-color);
    font-family: 'IRANYekanX', Tahoma, sans-serif;
}

/* لوگو شفاف — بدون دایره، بدون سایه، بدون پس‌زمینه */
.loader-logo {
    width: 120px;
    height: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(247,198,0,0.5));
}

/* افکت شناور شدن لوگو */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}

/* موج ۵ نقطه زرد زیر لوگو */
.wave-loader {
    margin: 35px 0 20px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wave-loader span {
    width: 12px;
    height: 12px;
    background: var(--event-color);
    border-radius: 50%;
    display: block;
    animation: wave 1.5s infinite ease-in-out;
    box-shadow: 0 0 15px var(--event-color-50);
}

.wave-loader span:nth-child(1) { animation-delay: 0s; }
.wave-loader span:nth-child(2) { animation-delay: 0.15s; }
.wave-loader span:nth-child(3) { animation-delay: 0.3s; }
.wave-loader span:nth-child(4) { animation-delay: 0.45s; }
.wave-loader span:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-25px); }
}

#site-loader p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ========================================
   Category Blog — دقیقاً مثل content.html با تصویر بالای صفحه
   ======================================== */
.category-blog-page .category-header-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: -10px;
}

.category-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 20px 20px;
    text-align: center;
}

.category-title-overlay h1 {
    color: #fff;
    font-size: 28px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.category-description {
    padding: 20px;
    background: #111;
    color: #ddd;
    text-align: center;
    font-size: 15px;
    margin: -10px 0 20px;
    border-radius: 16px;
}

/* کارت‌های مطلب — دقیقاً مثل content.html */
.articles-list {
    padding: 0 16px;
}



.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(247,198,0,0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-body {
    padding: 22px;
    color: #fff;
}

.article-title a {
    color: #6a6a6a;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
}

.article-title a:hover {
    color: var(--event-color);
}

.article-meta {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.read-more:hover {
    background: #fff;
    transform: translateY(-3px);

}

.no-image .article-body {
    padding-top: 32px;
}