.sit-govt-news-ticker-container {
    height: 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sit-govt-news-ticker {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.sit-govt-news-ticker li {
    font-size: 14px;
    height: 40px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sit-govt-news-ticker a {
    text-decoration: none;
    color: var(--e-global-color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    margin-right: 5px;
    flex: 0 1 auto;
    max-width: 100%;
}

.sit-govt-news-ticker a:hover {
    text-decoration: underline;
}

.sit-govt-news-ticker-container:has(.sit-govt-news-ticker li:only-child) {
    height: fit-content;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.sit-govt-news-ticker:has(li:only-child) {
    position: static;
}

.sit-govt-news-ticker li:only-child {
    text-align: center;
    height: auto;
    line-height: normal;
    padding: 10px;
    justify-content: center;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .sit-govt-news-ticker-container {
        height: 40px;
        width: 100%;
    }
    
    .sit-govt-news-ticker li {
        height: 40px;
    }

    .sit-govt-news-ticker-container:has(.sit-govt-news-ticker li:only-child) {
        min-height: fit-content;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sit-govt-news-ticker li:only-child {
        min-height: auto;
        height: auto;
    }
}