.elementor-4270 .elementor-element.elementor-element-168d34fd{--display:flex;}/* Start custom CSS for text-editor, class: .elementor-element-55361a2d */.mn-brand-pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.mn-brand-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
    text-decoration: none;
    color: #333;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* رفع مشکل: تضمین می‌کند ارتفاع کارت‌ها یکسان باشد */
    height: 100%;
}

.mn-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
}

.mn-brand-img {
    /* رفع مشکل: جلوگیری از لود شدن تصاویر با ابعاد نامناسب */
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.mn-brand-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* رفع مشکل: تصاویر شفاف پس زمینه سفید داشته باشند */
    background: #f9f9f9;
    border-radius: 50%;
}

.mn-brand-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e0e0, #f2f2f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.mn-brand-name {
    font-weight: 700;
    font-size: 14px;
    /* رفع مشکل: جلوگیری از شکستن خطوط */
    word-break: break-word;
    line-height: 1.4;
}

.mn-brand-count {
    font-size: 12px;
    color: #777;
    margin-top: auto;
}

.mn-brand-hero {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f7f7f7, #ffffff);
    border-radius: 14px;
    /* رفع مشکل: ریسپانسیو کردن هدر */
    width: 100%;
}

.mn-brand-hero h1 {
    margin: 0;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 800;
}

.mn-brand-hero p {
    margin-top: 8px;
    color: #777;
    font-size: clamp(12px, 4vw, 13px);
}

/* رفع مشکل: نمایش بهتر در موبایل */
@media (max-width: 480px) {
    .mn-brand-pro-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .mn-brand-card {
        padding: 12px;
    }
    
    .mn-brand-img img,
    .mn-brand-placeholder {
        width: 55px;
        height: 55px;
    }
    
    .mn-brand-name {
        font-size: 12px;
    }
}

/* رفع مشکل: استایل فوکوس برای دسترسی بهتر */
.mn-brand-card:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    transform: translateY(-5px);
}

/* رفع مشکل پشتیبانی از RTL (راست‌به‌چپ) */
.rtl .mn-brand-pro-grid {
    direction: rtl;
}

.rtl .mn-brand-card {
    text-align: center;
}/* End custom CSS */