.fbp-section { margin: 50px 0; }

.fbp-banners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}

.fbp-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-align: center;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.fbp-card:nth-child(1) { animation-delay: 0s; }
.fbp-card:nth-child(2) { animation-delay: 0.9s; }
.fbp-card:nth-child(3) { animation-delay: 1.8s; }
.fbp-card:nth-child(4) { animation-delay: 0.5s; }
.fbp-card:nth-child(5) { animation-delay: 1.4s; }

.fbp-card:hover {
    transform: translateY(-14px) !important;
    box-shadow: 0 28px 55px rgba(0,0,0,0.2);
}

/* ←←← بک‌گراند پشت عکس کاملاً حذف شد */
.fbp-img {
    height: 118px;
    padding: 14px 14px 0 14px;   /* فقط کمی فاصله از بالا و طرفین */
    background: transparent !important;   /* ←←← حذف کامل بک‌گراند */
    overflow: hidden;
}

.fbp-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;       /* شفاف */
    border-radius: 15px;           /* همچنان گرد و زیبا */
    transition: transform 0.4s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);   /* کمی سایه برای عمق بیشتر */
}

.fbp-card:hover img {
    transform: scale(1.08);
}

/* بخش متن */
.fbp-text {
    padding: 20px 16px 24px;
}

.fbp-text h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
}

.fbp-btn {
    display: block;
    width: 92%;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    padding: 13px 16px !important;
    border-radius: 50px;
    font-size: 14.5px !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(102,126,234,0.45);
    transition: all 0.35s ease;
    white-space: normal !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fbp-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(102,126,234,0.6);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* سایدبار — ۲ تایی */
.widget .fbp-banners,
.sidebar .fbp-banners,
aside .fbp-banners,
#secondary .fbp-banners {
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
}

.widget .fbp-img,
.sidebar .fbp-img {
    height: 130px;
    padding: 16px 16px 0 16px;
    background: transparent !important;
}

.widget .fbp-img img,
.sidebar .fbp-img img {
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.1);
}

/* ریسپانسیو */
@media (max-width: 1300px) { .fbp-banners { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px)  { .fbp-banners { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  {
    .fbp-banners:not(.widget .fbp-banners):not(.sidebar .fbp-banners) {
        grid-template-columns: 1fr 1fr !important;
    }
}
