/* ============================================
   Partenaires Section Style 2
   قسم الشركاء - النمط الثاني
   حركة مستمرة للشعارات من اليمين إلى اليسار
   ============================================ */

/* الحاوية الرئيسية للقسم */
.partenaires-section-style2 {
    background-color: #ffffff;
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    margin-top: 0;

}

/* الحاوية الخارجية للشريط المتحرك */
.partenaires-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* المسار المتحرك للشعارات */
.partenaires-slider-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: slide-left 30s linear infinite;
    width: fit-content;
    will-change: transform;
}

/* إيقاف الحركة عند مرور الماوس على القسم */
.partenaires-section-style2:hover .partenaires-slider-track {
    animation-play-state: paused;
}

/* الحركة من اليمين إلى اليسار */
@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* عنصر الشعار الفردي */
.partenaire-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px;
    min-width: 200px;
}

/* تأثير عند التمرير */
.partenaire-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* الحاوية الداخلية للشعار (عند عدم وجود رابط) */
.partenaire-logo-item-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* رابط الشعار */
.partenaire-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.partenaire-logo-link:hover {
    opacity: 0.8;
}

/* صورة الشعار */
.partenaire-logo-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* تأثير عند التمرير على الصورة */
.partenaire-logo-item:hover .partenaire-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   Responsive Design - التصميم المتجاوب
   ============================================ */

/* للأجهزة اللوحية */
@media (max-width: 968px) {
    .partenaires-section-style2 {
        padding: 50px 0;
    }

    .partenaires-slider-track {
        gap: 40px;
        animation-duration: 25s;
    }

    .partenaire-logo-item {
        padding: 15px 25px;
        height: 100px;
        min-width: 180px;
    }

    .partenaire-logo-img {
        max-height: 70px;
    }
}

/* للهواتف المحمولة */
@media (max-width: 768px) {
    .partenaires-section-style2 {
        padding: 40px 0;
    }

    .partenaires-slider-track {
        gap: 30px;
        animation-duration: 20s;
    }

    .partenaire-logo-item {
        padding: 12px 20px;
        height: 90px;
        min-width: 150px;
    }

    .partenaire-logo-img {
        max-height: 60px;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .partenaires-section-style2 {
        padding: 30px 0;
    }

    .partenaires-slider-track {
        gap: 20px;
        animation-duration: 15s;
    }

    .partenaire-logo-item {
        padding: 10px 15px;
        height: 80px;
        min-width: 120px;
    }

    .partenaire-logo-img {
        max-height: 50px;
    }
}

/* إيقاف الحركة عند التمرير (اختياري) */
@media (prefers-reduced-motion: reduce) {
    .partenaires-slider-track {
        animation: none;
    }
}

