*, *::before, *::after { box-sizing: border-box; }

.partners-ticker-section {
    background-color: #F8F9FA; 
    padding: 5rem 0;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
}

/* تنسيق العنوان */
.partners-ticker-section .ticker-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.partners-ticker-section .ticker-title h3 {
    color: #0A1128; 
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.partners-ticker-section .ticker-title .title-line {
    width: 60px;
    height: 3px;
    background-color: #D4AF37; 
    margin: 0 auto;
    border-radius: 3px;
}

/* تنسيق حاوية الشريط */
.partners-ticker-section .ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* تأثير التلاشي (Fade) على أطراف الشريط */
.partners-ticker-section .ticker-container::before,
.partners-ticker-section .ticker-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%; 
    height: 100%;
    z-index: 2;
    pointer-events: none; 
}
.partners-ticker-section .ticker-container::before {
    left: 0; background: linear-gradient(to right, #F8F9FA 0%, rgba(248, 249, 250, 0) 100%);
}
.partners-ticker-section .ticker-container::after {
    right: 0; background: linear-gradient(to left, #F8F9FA 0%, rgba(248, 249, 250, 0) 100%);
}

/* مسار الحركة */
.partners-ticker-section .ticker-track {
    display: flex;
    width: max-content;
    animation: scrollTicker 35s linear infinite;
}
.partners-ticker-section .ticker-track:hover {
    animation-play-state: paused;
}

/* مجموعة الشعارات */
.partners-ticker-section .ticker-logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 2rem;
    gap: 5rem; 
}

/* تنسيق الصور (الشعارات) */
.partners-ticker-section .ticker-logos img {
    max-height: 70px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5); 
    transition: all 0.4s ease;
    cursor: pointer;
}
.partners-ticker-section .ticker-logos img:hover {
    filter: grayscale(0%) opacity(1); 
    transform: scale(1.08); 
}

/* الأنيميشن الخاص بالحركة اللانهائية */
@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* التجاوب مع شاشات الهواتف */
@media (max-width: 768px) {
    .partners-ticker-section { padding: 3rem 0; }
    .partners-ticker-section .ticker-title { margin-bottom: 2.5rem; }
    .partners-ticker-section .ticker-title h3 { font-size: 1.4rem; }
    .partners-ticker-section .ticker-logos img { max-height: 42px; max-width: 120px; }
    .partners-ticker-section .ticker-logos { gap: 2.5rem; padding: 0 1rem; }
    .partners-ticker-section .ticker-container::before,
    .partners-ticker-section .ticker-container::after { width: 10%; }
    .partners-ticker-section .ticker-track { animation-duration: 25s; }
}

/* ==========================================================================
   LTR / English Mode Support
   ========================================================================== */
.partners-ticker-section[dir="ltr"],
.partners-ticker-section.pe-ltr {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: ltr;
}