/* Fullscreen News Container */
.news-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%; /* Fullscreen width */
    font-family: "Roboto", sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    overflow: hidden; /* Prevent overflow */
    display: flex;
    align-items: center;
    height: 70px; /* Fixed height */
}

.news-container .title {
    position: relative;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #ffffff;
    font-weight: bold;
    font-size: 22px;
    z-index: 99;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    border-right: 3px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.news-container ul {
    display: flex; /* Arrange items in a row */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: scroll 190s linear infinite; /* Adjust duration for more items */
    white-space: nowrap; /* Prevent wrapping */
}

.news-container ul:hover {
    animation-play-state: paused; /* Pause animation on hover */
}

.news-container ul li {
    white-space: nowrap; /* Prevent wrapping */
    padding: 0 24px; /* Add spacing */
    color: #ffffff;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.034);
    border-radius: 5px;
    margin-right: 20px; /* Space between items */
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    cursor: pointer;
}

.news-container ul li a {
    text-decoration: none;
    color: inherit;
    font-weight: 400;
    font-size: 23px;
}

.news-container ul li a:hover {
    color: red;
    text-decoration: underline;
}

/* Keyframes for scrolling animation */
@keyframes scroll {
    from {
        transform: translateX(120%); /* Start fully off-screen */
    }
    to {
        transform: translateX(-120%); /* Move fully off-screen left */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-container {
        height: 60px;
    }
    .news-container .title {
        font-size: 18px;
    }
    .news-container ul li {
        font-size: 18px;
    }
}
