body{
background-color: inherit;
}
footer {
    background: var(--dark);
    background-image: linear-gradient(rgba(3, 17, 0, 0.0), rgba(0, 0, 0, 0.5));
    color: var(--light);
    padding: 60px 20px;
    margin: 150px 12px 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    font-family: 'Vazir', sans-serif;
    /* تایپوگرافی حرفه‌ای - فرض بر استفاده از فونت فارسی مانند Vazir */
    line-height: 1.6;
}

/* بخش برند */
.brand-section {
    align-items: start;
    margin-bottom: 40px;
}

.brand-logo {
    width: 50%;
    max-width: 270px;
    /* اندازه لوگو قابل تنظیم */
    height: auto;
    margin-bottom: 15px;
}

.brand-section p {
    font-size: 1rem;
    opacity: 0.9;
}
.brand-section p span{
  opacity: 1;
  font-weight: 00;
}
/* بخش دسته‌بندی‌ها - بهینه‌سازی برای لیست‌های طولانی با اسکرول یا محدود کردن ارتفاع اگر لازم */
.categories-section {
    margin-bottom: 40px;
}

.categories-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
    
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--light);
    padding-bottom: 6px;
    border-bottom: 1px solid #ffffff28;
}

.category h5 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    color: var(--greenlight);
}

.category h5 a:hover {
    color: var(--primary);
}

/* بخش دسته‌بندی‌ها - اضافه کردن استایل مینیمال برای اسکرول بار */
/* پایه کانتینر */
.category ul {
    list-style: none;

    padding: 0;
    /* max-height: 150px; */
    overflow-y: auto;
    scrollbar-width: thin;
    /* Firefox: نازک */
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
    /* Firefox: رنگ thumb و track */
    -ms-overflow-style: -ms-autohiding-scrollbar;
    /* IE/Edge قدیمی: خودکار مخفی شود */
}

/* WebKit browsers (Chrome, Safari, Edge Chromium) */
/* عرض کلی اسکرول‌بار */




.category ul li {
    margin-bottom: 8px;
}

.category ul li a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    /* کوچکتر کردن فونت برای بهینه‌سازی فضا */
}

.category ul li a:hover {
    opacity: 1;
}

/* بخش دسترسی سریع */
.quick-access-section {
    margin-bottom: 40px;
    text-align: center;
    line-height: 2.8rem;
}

.quick-access-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.quick-access-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    
}

.quick-access-section ul li a {
    color: var(--light);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    background: var(--dark);
    box-shadow: 0 0 8px 2px #0000006e;
    transition: background 0.3s;
    
}

.quick-access-section ul li a:hover {
    background: var(--greenlight);
    transform: translateX(-4px);
    transform: scale(1.1);
}

/* بخش لوگوها */

/* ============================================
   استایل لوگوهای فوتر - نسخه نهایی
   ============================================ */

/* ===== کانتینر اصلی لوگوها ===== */
.logos-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0 40px 0;
    padding: 0 15px;
    width: 100%;
    background: transparent;
}

/* ===== هر آیتم لوگو ===== */
.logos-section a,
.logos-section div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), 
                filter 0.3s ease;
    will-change: transform;
}

/* ===== افکت هاور - فقط بزرگ‌تر شدن با سایه ===== */
.logos-section a:hover,
.logos-section div:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

/* ===== تصاویر لوگوها ===== */
.logos-section img {
    height: 110px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

/* ===== لوگوی زیبال (اسکریپت اختصاصی) ===== */
#zibal {
    display: flex;
    align-items: center;
    justify-content: center;
}

#zibal img,
#zibal iframe,
#zibal .zibal-trust {
    height: 110px !important;
    width: auto !important;
    max-width: none !important;
}

/* ===== لوگوی ایمالز ===== */
.logos-section a:last-child img {
    height: 110px !important;
    width: auto !important;
}

/* ============================================
   ریسپانسیو
   ============================================ */

/* تبلت و موبایل بزرگ */
@media (max-width: 768px) {
    .logos-section {
        gap: 20px;
        margin: 20px 0 30px 0;
    }
    
    .logos-section img,
    #zibal img,
    #zibal iframe {
        height: 90px !important;
    }
}

/* موبایل متوسط - زیر هم شدن */
@media (max-width: 576px) {
    .logos-section {
        flex-direction: column;
        gap: 25px;
        padding: 0 10px;
    }
    
    .logos-section img,
    #zibal img,
    #zibal iframe {
        height: 100px !important;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 400px) {
    .logos-section {
        gap: 20px;
        margin: 15px 0 25px 0;
    }
    
    .logos-section img,
    #zibal img,
    #zibal iframe {
        height: 90px !important;
    }
}

/* ============================================
   پشتیبانی از دارک مود
   ============================================ */
@media (prefers-color-scheme: dark) {
    .logos-section img {
        filter: brightness(0.92);
    }
    
    .logos-section a:hover img,
    .logos-section div:hover img {
        filter: brightness(1);
    }
}

/* ============================================
   کاهش حرکت برای افرادی که حساسیت دارند
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .logos-section a,
    .logos-section div {
        transition: none !important;
    }
    
    .logos-section a:hover,
    .logos-section div:hover {
        transform: none !important;
    }
}
