.news-ticker-container {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    height: 40px !important; /* Increased height for better visibility */
    line-height: 40px !important;
    max-height: 40px !important;
    display: flex !important; /* Use flexbox for layout */
    align-items: center !important; /* Vertically center items */
    width: 100% !important; /* Ensure full width */
}

.news-ticker-label {
    background-color: #ffffff;
    color: #dc3545;
    padding: 4px 10px;
    margin-right: 15px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    height: 30px;
    line-height: 22px;
    flex-shrink: 0; /* Prevent label from shrinking */
}

.ticker-scroll-area {
    display: inline-block;
    height: 40px !important;
    line-height: 40px !important;
    overflow: hidden;
    vertical-align: middle;
    flex-grow: 1; /* Allow scroll area to take remaining space */
    position: relative; /* For absolute positioning of scrolling list */
}

.scrolling-list {
    display: inline-block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 40px;
    line-height: 40px;
}

.scrolling-list li {
    display: inline-block;
    margin-right: 50px;
    height: 40px;
    line-height: 40px;
}

.scrolling-list a {
    color: #0056b3;
    text-decoration: none;
    height: 40px;
    line-height: 40px;
}

.scrolling-list a:hover {
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Ensure news ticker is visible and properly positioned on all devices */
@media (max-width: 768px) {
    .news-ticker-container {
        display: flex !important;
        height: 40px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .ticker-scroll-area {
        display: inline-block !important;
        height: 40px !important;
        flex-grow: 1 !important;
        width: auto !important; /* Let flexbox handle width */
    }
}
