/**
 * Success Partners — reusable "شركاء النجاح" section.
 * Used by: template-social.php, template-frontpage.php,
 *          template-bassmah.php, and single-packages.php via
 *          the shared template-part/section-success-partners.php.
 *
 * The rules are extracted (not moved) from social.css so the section
 * still renders on the Social Media page even if social.css is delayed
 * or purged from cache.
 */

.sm-partners {
    padding: 60px 0;
    background: linear-gradient(160deg, #f8fbff 0%, #eaf1fd 30%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}
.sm-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #338eaa, #2f5aae);
}
.sm-partners__title {
    text-align: center;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #1a3a6b;                 /* was var(--sm-dark) — hard-coded so
                                       the file has zero external deps */
    margin-bottom: 40px;
    line-height: 1.4;
}
.sm-partners__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.sm-partners__item {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid #e8ecf1;
}
.sm-partners__item:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.sm-partners__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
    .sm-partners { padding: 40px 0; }
    .sm-partners__grid { gap: 20px; }
    .sm-partners__item { width: 90px; height: 60px; padding: 8px; }
    .sm-partners__title { margin-bottom: 28px; }
}
