.wnt-news-ticker {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--barColor, #333333); /* Bar Color */
}

.wnt-news-wrap {
    display: flex;
    white-space: nowrap;
    width: max-content;
    align-items: center;
    gap: 0 !important; /* Remove any extra gaps */
    font-size: 0; /* Removes inline whitespace */
}


.wnt-news-wrap ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wnt-news-wrap li {
    display: flex;
    align-items: center;
    padding-left: 0 !important;
    padding-right: 5px !important;
}

.wnt-news-item {
    font-weight: bold;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #6D28D9, #9333EA, #F43F5E, #F59E0B);
    background-size: 300% 300%;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    animation: gradientBG 5s infinite alternate ease-in-out;
    font-size: 15px;
    white-space: nowrap;
    width: 490px; /* Set a fixed width to maintain consistency */
    max-width: 100%; /* Prevent overflow */
    text-overflow: ellipsis; /* Avoids cut-off issues */
    border-radius: var(--pillRadius, 15px); /* Pill Border Radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-right: var(--wnt-pill-spacing, 10px); /* Dynamic spacing */
    flex-shrink: 0; /* Prevents items from shrinking */
    padding-right: 0;
}

.wnt-news-item img {
    margin-right: 12px; /* Adjust image spacing */
    flex-shrink: 0;
}

.wnt-news-item:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
    color: #fff;
}

.wnt-news-image {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    border-radius: 15px;
    object-fit: cover;
}

.wnt-trending-label {
    font-weight: bold;
    color: var(--labelTextColor, #ffffff); /* Label Text Color */
    background-color: var(--labelColor, #ff0000); /* Label Background Color */
    padding: 5px 10px;
    border-radius: var(--labelRadius, 5px); /* Label Border Radius */
    margin-right: 15px;
    white-space: nowrap;
    position: relative;
    z-index: 10; /* Ensures it stays above scrolling items */
    flex-shrink: 0; /* Prevents shrinking when items scroll */
    margin-right: 15px; /* Adds spacing between label and ticker */
}

.wnt-news-wrap ul {
    display: flex;
    animation: wnt-scroll 20s linear infinite;
    align-items: center;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.wnt-news-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Ensures long text doesn't overflow */
    max-width: 100%; /* Prevents it from exceeding the pill size */
}
