 * {
            box-sizing: border-box;
        }

        .news-container {
            display: flex;
            width: 100%;
            height: 45px;
            border: 1px solid #ddd;
            overflow: hidden;
            background: #f8f8f8;
        }

        .news-title {
            flex: 0 0 120px;
            background: #d32f2f;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            z-index: 2;
        }

        .news-content {
            flex: 1;
            overflow: hidden;
            position: relative;
            display: flex;
            align-items: center;
        }

        .news-scroll {
            display: inline-flex;
            white-space: nowrap;
            animation: scrollNews 20s linear infinite;
        }

        .news-item {
            margin-right: 80px;
            color: #333;
            font-size: 16px;
        }

        .news-item a {
            color: #0066cc;
            text-decoration: none;
        }

        .news-item a:hover {
            text-decoration: underline;
        }

        @keyframes scrollNews {
            from {
                transform: translateX(100%);
            }

            to {
                transform: translateX(-100%);
            }
        }

        /* Pause when mouse is over news */
        .news-content:hover .news-scroll {
            animation-play-state: paused;
        }

        @media (max-width: 600px) {
            .news-title {
                flex: 0 0 90px;
                font-size: 14px;
            }

            .news-item {
                font-size: 14px;
            }
        }