.news {
    width: 100%;
    padding: 10px;
    overflow: hidden; /* Added overflow hidden */
}

.news-header {
    width: 100%;
}

.news-title {
    font-size: 1.5rem;
    font-family: sans-serif;
    font-weight: bold;
    color: #776174;
    padding: 1rem;
}

.news-view {
    float: right;
    text-align: right;
    width: 40%;
}

.news-body {
    height: 60vh;
    overflow: hidden;
    position: relative; /* Added position relative */
}

.news-content {
    position: absolute; /* Added position absolute */
    bottom: 0; /* Added bottom 0 */
	top:0;
    animation: scroll 30s linear infinite; /* Changed animation duration to 20s */
}

.news-body:hover .news-content {
    animation-play-state: paused; /* Pause animation on hover */
}

.news-item {
    height: 10vh;
    margin: 5px;
    display: flex;
    background-color: #f3f6f4;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.news-item-date {
    width: 18%;
    background-color: #563A52;
    padding: 5px;
    align-items: center;
}

.news-item-day {
    width: 100%;
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #EEECF3;
}

.news-item-month {
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: #EEECF3;
}

.news-item-content {
    width: 82%;
    padding: 5px;
}

.news-item-title {
    height: 60%;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    color: #563A52;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.news-item-title > a {
    text-decoration: none !important;
}

.news-item-description {
    height: 40%;
    overflow: hidden;
    color: #5b5b5b;
    font-size: 9px;
}

.news-footer {
    width: 100%;
    height: 4vh;
    align-items: center;
    padding: 5px;
    background-color: #AF0000;
    border-radius:20px;
}

.news-view {
    width: 100%;
    text-align: center;
}

.news-view > a {
    text-decoration: none;
    color: #FAFAFA;
    font-size: 14px;
}

@media (max-width: 768px) {
    .news-body {
        height: 50vh;
    }
    .news-item {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 990px) {
    .news-body {
        height: 21vh;
    }
    .news-item {
        height: 4vh;
        width: 100%;
    }
    .news-footer {
        width: 100%;
        height: 1.5vh;
        align-items: center;
        padding: 5px;
    }
}

@keyframes scroll {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}
@keyframes pause {
	0% { transform: translateY(0); }
	100% { transform: translateY(0); }
}