* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f7f7f7;
    color: #333;
}

header {
    background: #0a74da;
    padding: 20px;
    text-align: center;
    color: white;
}

header h1 {
    margin-bottom: 15px;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-container input {
    width: 250px;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.search-container button {
    padding: 10px 20px;
    border: none;
    background: #fff;
    color: #0a74da;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background: #e8e8e8;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.news-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.news-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-card p {
    font-size: 14px;
    margin-bottom: 10px;
}

.news-card a {
    color: #0a74da;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
}

.error-message {
    text-align: center;
    color: red;
    font-weight: bold;
    padding: 20px;
}
footer {
    background: #0a74da;
    color: white;
    padding: 15px;
    text-align: center;
    margin-top: 20px;
}
