
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background: linear-gradient(to right, #4e5b99, #2e3572, #6f7ec1);
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 30px;
}

nav {
    text-align: start;
    padding: 10px;
}

nav a {
    text-decoration: none;
    color: #fffcfc;
    font-size: 18px;
    margin-right: 15px;
    transition: color 0.3s, font-size 0.3s;
}

nav a:hover {
    color: red;
    font-size: 22px;
}

h2 {
    color: #030303;
    margin: 20px;
    font-size: 22px;
}

#newsList {
    display: flex;
    flex-direction: column;
    margin: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px; 
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-item {
    background-color: white;
    margin: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.news-item:hover {
    background-color: #e9f7ff;
    transform: scale(1.02);
}

.news-item a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
}

.news-item a:hover {
    color: #007BFF;
}

footer {
    background: linear-gradient(to right, #4e5b99, #2e3572, #6f7ec1);
    color: white;
    text-align: center;
    padding: 10px;
    flex-shrink: 0;
    font-size: 14px;
}
@media (max-width: 600px) {
    nav {
        text-align: center;
    }

    nav a {
        display: block;
        margin-bottom: 10px;
        font-size: 16px;
    }

    #newsList {
        margin: 10px;
        max-height: 50vh;
    }

    .news-item {
        padding: 10px;
    }
}
@media (max-width: 900px) {
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        font-size: 18px;
    }

    #newsList {
        margin: 15px;
        max-height: 60vh;
    }

    .news-item {
        padding: 12px;
    }
}
@media (max-width: 1200px) {
    nav ul {
        justify-content: space-around;
    }

    nav a {
        font-size: 20px;
    }

    #newsList {
        margin: 20px;
        max-height: 70vh;
    }

    .news-item {
        padding: 15px;
        font-size: 18px;
    }
}






