h1 {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background: #333;
    transform: translateY(-2px);
}

#searchInput {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #000;
}

#newsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    width: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.news-card h3 {
    font-size: 1.15rem;
    margin: 15px;
    line-height: 1.4;
    color: #1a1a1a;
}

.news-card p {
    font-size: 0.95rem;
    margin: 0 15px 20px;
    color: #666;
    flex-grow: 1;
}

.error-msg {
    color: #d93025;
    background: #fdf2f2;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

