/*
  MFC Badges — front.css v1.0
  فقط opacity + transform روی کارت — صفر repaint.
  متن همیشه نمایان است، هیچ visibility trick ندارد.
*/

.mfcb {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    background-color: #0b0c0f;
    background-size: cover;
    background-position: center center;
}

.mfcb__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(8,9,12,.55) 0%, rgba(6,7,10,.80) 100%);
    pointer-events: none;
}

.mfcb__wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 28px 72px;
}

/* ── header ── */
.mfcb__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
}

.mfcb__title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #eef0f3 !important;
    line-height: 1.65 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.mfcb__title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: #d4960a;
    margin: 12px auto 0;
    border-radius: 2px;
}

.mfcb__sub {
    font-size: 13.5px !important;
    color: #7a7e87 !important;
    line-height: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── grid ── */
.mfcb__grid {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
}

/* ── card ── */
.mfcb__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 26px 14px 22px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    background: rgba(255,255,255,.04) !important;
    transition: transform .20s ease !important;
    cursor: default;
    box-sizing: border-box !important;
}

.mfcb__item:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(212,150,10,.38) !important;
}

/* ── logo ── */
.mfcb__img-wrap {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.mfcb__img-wrap img {
    max-width: 88% !important;
    max-height: 54px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    opacity: .46;
    transition: opacity .20s ease !important;
}

.mfcb__item:hover .mfcb__img-wrap img {
    opacity: 1;
}

/* ── name — همیشه نمایان ── */
.mfcb__name {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #dde0e5 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── note — همیشه نمایان ── */
.mfcb__note {
    display: block !important;
    font-size: 10.5px !important;
    color: #5e6168 !important;
    line-height: 1.7 !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
}

/* ── responsive ── */
@media (max-width: 860px) {
    .mfcb__wrap { padding: 48px 18px 54px; }
    .mfcb__grid { grid-template-columns: repeat(auto-fill, minmax(148px,1fr)); gap: 8px; }
    .mfcb__img-wrap { height: 44px; }
    .mfcb__img-wrap img { max-height: 44px !important; }
}

@media (max-width: 480px) {
    .mfcb__wrap  { padding: 36px 12px 42px; }
    .mfcb__title { font-size: 18px !important; }
    .mfcb__grid  { grid-template-columns: 1fr 1fr; gap: 7px; }
    .mfcb__item  { padding: 18px 10px 16px !important; }
    .mfcb__img-wrap { height: 38px; margin-bottom: 10px; }
    .mfcb__img-wrap img { max-height: 38px !important; }
    .mfcb__name  { font-size: 11px !important; }
    .mfcb__note  { font-size: 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .mfcb__item,
    .mfcb__img-wrap img { transition: none !important; }
}
