h2 {
    margin: 30px;
    font-size: 24px;
    border-left: 5px solid #e4a11b;
    padding-left: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: start;
    position: relative;
    border: 2px solid #e4a11b;
    border-radius: 25px;
    max-width: 500px;
    margin: 2.8rem auto;
    padding: 12px 15px 12px 40px;
    background-color: #fff;
}

.search-box input {
    width: 98%;
    height: 100%;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    border: none;
    margin-left: 10px;
}

.search-icon {
    position: absolute;
    left: 6%;
    transform: translateX(-50%);
    color: #999;
    font-size: 16px;
    z-index: 2;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 30px 30px;
}

.news-card {
    width: 32%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.4s;
}

.news-card:hover {
    height: 320px;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.news-overlay p {
    margin: 0 0 10px;
    color: #fff;
}

.news-overlay a {
    align-self: flex-start;
    text-decoration: none;
    background-color: #e4a11b;
    color: #000;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.news-overlay a:hover {
    background-color: #2d4ee0;
}

@media (max-width: 1000px) {
    .news-card {
        width: 48%;
    }
}

@media (max-width: 700px) {
    .search-box {
        max-width: 80%;
        margin: 1.5rem auto;
        padding: 8px 10px 8px 40px;
    }
}

@media (max-width: 500px) {
    h2 {
        font-size: 18px;
    }
    .search-box {
        padding: 8px 10px 8px 30px;
    }
    .search-box input {
        font-size: 12px;
    }

    .search-icon {
        font-size: 12px;
        left: 8%;
    }
    .news-card {
        width: 90%;
    }
}
