/* شريط الأخبار لمميزات الشركة */
.news-ticker-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    z-index: 10;
}

.news-ticker-container {
    display: flex;
    align-items: center;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-label {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-items {
    display: flex;
    animation: scroll-rtl 80s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-left: 120px;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: relative;
}

.ticker-item::before {
    content: "•";
    color: rgba(255,255,255,0.7);
    font-weight: bold;
    margin-left: 8px;
    font-size: 18px;
}

.ticker-item:first-child {
    margin-left: 0;
}

.ticker-item:first-child::before {
    display: none;
}

/* حركة التمرير من اليمين لليسار للعربية */
@keyframes scroll-rtl {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* حركة التمرير من اليسار لليمين للإنجليزية */
@keyframes scroll-ltr {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* إيقاف الحركة عند التمرير */
.ticker-items:hover {
    animation-play-state: paused;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .news-ticker-container {
        height: 50px;
        padding: 0 15px;
    }

    .ticker-label {
        font-size: 12px;
        padding: 6px 12px;
        margin-left: 15px;
    }

    .ticker-item {
        font-size: 14px;
        margin-left: 80px;
    }
}

@media (max-width: 480px) {
    .ticker-label {
        display: none;
    }

    .ticker-item {
        margin-left: 60px;
        font-size: 13px;
    }
}

/* تصميم للغة الإنجليزية */
[dir="ltr"] .ticker-items {
    animation: scroll-ltr 80s linear infinite;
}

[dir="ltr"] .ticker-label {
    margin-right: 20px;
    margin-left: 0;
}

[dir="ltr"] .ticker-item {
    margin-right: 120px;
    margin-left: 0;
}

[dir="ltr"] .ticker-item::before {
    margin-right: 8px;
    margin-left: 0;
}

[dir="ltr"] .ticker-item:first-child {
    margin-right: 0;
}

@media (max-width: 768px) {
    [dir="ltr"] .ticker-label {
        margin-right: 15px;
    }

    [dir="ltr"] .ticker-item {
        margin-right: 80px;
    }
}

@media (max-width: 480px) {
    [dir="ltr"] .ticker-item {
        margin-right: 60px;
    }
}

/* تحسينات الأداء */
.ticker-items {
    will-change: transform;
    backface-visibility: hidden;
}

/* تأثيرات إضافية */
.news-ticker-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        transparent 20%, 
        transparent 80%, 
        rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}