/* =========================================
   🤝 التنسيقات المستقلة لبلوك شركاء النجاح
   ========================================= */

.premium-partner-section { padding: 50px 0; background: linear-gradient(-45deg, #ffffff, #f2fbfc, #ffffff, #eef9fa); background-size: 400% 400%; animation: smoothBgGradient 15s ease infinite; position: relative; overflow: hidden; direction: rtl; border-top: 1px solid #f0f0f0; }
@keyframes smoothBgGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.partner-bg-shape { position: absolute; border-radius: 50%; background: rgba(var(--partner-primary-rgb), 0.04); z-index: 0; animation: floatShape 10s infinite ease-in-out alternate; }
.partner-bg-shape.shape-1 { width: 400px; height: 400px; top: -150px; right: -100px; } 
.partner-bg-shape.shape-2 { width: 250px; height: 250px; bottom: -80px; left: -50px; animation-duration: 12s; animation-direction: alternate-reverse; }
@keyframes floatShape { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-40px) scale(1.05); } }

.partner-top-bar { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }

/* ربط لون הـ Badge باللون الأساسي الديناميكي */
.partner-badge { display: inline-flex; align-items: center; background: rgba(var(--partner-primary-rgb), 0.1); color: var(--partner-primary); padding: 8px 25px; border-radius: 30px; font-weight: 800; font-size: 14px; margin-bottom: 15px; border: 1px solid rgba(var(--partner-primary-rgb), 0.2); }

.partner-titles h2 { color: #1a1a1a; font-size: 40px; font-weight: 900; margin: 0; font-family: 'Tajawal', sans-serif; }

.premium-partner-item { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 140px; padding: 20px; background: #fff; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; z-index: 1; }
.premium-partner-item img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: all 0.5s ease; z-index: 2; }

/* تأثير الغلاف الزجاجي باللون الأساسي الديناميكي */
.partner-name-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(var(--partner-primary-rgb), 0.9) 0%, rgba(var(--partner-primary-rgb), 0.3) 60%, transparent 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 15px; opacity: 0; transform: translateY(100%); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 3; }
.partner-name-overlay h4 { color: #fff; font-size: 16px; font-weight: 800; margin: 0; font-family: 'Tajawal', sans-serif; text-shadow: 0 2px 4px rgba(0,0,0,0.2); transform: translateY(15px); transition: all 0.5s ease; transition-delay: 0.1s; text-align: center; }

.premium-partner-item:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(var(--partner-primary-rgb), 0.15); border: 1px solid rgba(var(--partner-primary-rgb), 0.2); }
.premium-partner-item:hover img { filter: grayscale(0%) opacity(1); transform: translateY(-12px) scale(0.9); }
.premium-partner-item:hover .partner-name-overlay { opacity: 1; transform: translateY(0); }
.premium-partner-item:hover .partner-name-overlay h4 { transform: translateY(0); }