/* =================================================== */
/* ============== الشريط الإخباري المتحرك (Ticker) ==== */
/* =================================================== */

.ks-trending-ticker-wrapper {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, var(--ks-header-brand-teal-dark) 0%, #0a3d4a 50%, #072a33 100%);
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0.5rem auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.15) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 1200px;
    width: 100%;
    position: relative;
    animation: fadeIn 1s ease-out;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ks-ticker-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, var(--seyasa-primary-color) 0%, #052c38 100%);
    color: var(--ks-header-text-light);
    padding: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-right: none;
    overflow: hidden;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    transform: skewX(-5deg);
    transform-origin: bottom right;
}

.khamsa-ticker-chrome-five {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    position: absolute;
    top: 50%;
    right: 20px;
    left: auto;
    transform: translateY(-50%) skewX(8deg);
    background: linear-gradient(100deg,
            #a1a1aa 0%, #f1f5f9 10%, #d4d4d8 20%, #a1a1aa 30%,
            #71717a 50%, #a1a1aa 70%, #d4d4d8 80%, #f1f5f9 90%, #a1a1aa 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    animation: khamsa-ticker-shine-effect 5s linear infinite;
    z-index: 99999;
    opacity: 0.4;
    rotate: 5deg;
}

@keyframes khamsa-ticker-shine-effect {
    0% {
        background-position: 200% 50%;
    }

    100% {
        background-position: -200% 50%;
    }
}

.ks-ticker-label-text {
    position: relative;
    z-index: 2;
    padding-right: 2.5rem;
    padding-left: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transform: skewX(5deg);
}

.ks-ticker-carousel-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    overflow: hidden;
    position: relative;
}

.ks-tranding-carousel {
    display: flex;
    white-space: nowrap;
    will-change: transform;

}

.ks-ticker-news-item {
    padding: 0 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    transition: transform 0.3s ease-out;
    position: relative;
}

.ks-ticker-news-item+.ks-ticker-news-item::before {
    content: '';
    display: block;
    width: 4px;
    height: 80%;
    margin-right: 1.5rem;
    margin-left: 1rem;
    border-radius: 2px;
    opacity: 1;
    box-shadow: 0 0 2px var(--seyasa-brand-gold);
    animation: none;
    position: absolute;
    right: -25px;
}

.ks-tranding-carousel a {
    color: var(--seyasa-brand-gold) !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    display: block;

}

.ks-tranding-carousel a:hover {
    color: var(--seyasa-secondary-color) !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px var(--seyasa-brand-gold);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .ks-trending-ticker-wrapper {
        border-radius: 0.375rem;
        margin: 1rem auto;
    }

    .ks-ticker-label {
        justify-content: center;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: skewX(0deg);
    }

    .khamsa-ticker-chrome-five {
        font-size: 2.8rem;
        position: static;
        transform: skewX(8deg);
        opacity: 1;
    }

    .ks-ticker-label-text {
        padding-right: 0;
        margin-left: 0.5rem;
        transform: skewX(0deg);
    }

    .ks-ticker-carousel-wrapper {
        padding: 0.75rem;
        background-color: var(--ks-header-light-bg);
        border-radius: 0 0 0.5rem 0.5rem;
    }

    .ks-tranding-carousel a {
        color: var(--seyasa-primary-color) !important;
        font-size: 0.85rem;
        max-width: 100%;
    }

    .ks-ticker-news-item {
        padding: 0 1rem;
    }

    .ks-ticker-news-item+.ks-ticker-news-item::before {
        display: none;
    }
}