/* ===== Clients Ticker (شريط العملاء المتحرك) ===== */

.clients-ticker-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.clients-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* تدرج شفافية بسيط على الأطراف لإخفاء بداية/نهاية الحركة بشكل ناعم */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.clients-ticker-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: clients-ticker-scroll linear infinite;
    /* المدة الفعلية تُضبط ديناميكياً من JS حسب عدد الكروت */
    animation-duration: 30s;
}

.clients-ticker-wrapper:hover .clients-ticker-track {
    animation-play-state: paused;
}

@keyframes clients-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* بما إن القائمة متكررة مرتين، تحريك 50% بالظبط بيعمل لووب بدون قفزة محسوسة */
        transform: translateX(-50%);
    }
}

.client-ticker-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 110px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .client-ticker-card:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        transform: translateY(-3px);
        color: inherit;
    }

    .client-ticker-card img {
        max-width: 100%;
        max-height: 55px;
        object-fit: contain;
        margin-bottom: 8px;
    }

    .client-ticker-card span {
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

/* دعم أفضل على الشاشات الصغيرة */
@media (max-width: 576px) {
    .client-ticker-card {
        width: 130px;
        height: 95px;
    }

        .client-ticker-card img {
            max-height: 40px;
        }
}
