#news {
    position: relative;
    top: 270vh;
}
.news_heading{
    position: relative;
    top: 0;
    left: 45%;
    transform: scale(1.4);
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: auto;
}

.news-card {
    position: relative;
    width: 45%;
    max-width: 500px;
    overflow: hidden;
    top: 25vh;
}

.news-image {
    cursor: pointer;
    width: 100%;
    display: block;
    transition: transform 0.3s ease-in-out;
}
.news-card:hover .news-image {
    transform: scale(1.1); /* Slightly zoom in the image */
}

.news-text {
    position: absolute;
    bottom: 48px;
    left: 15px;
    color: white;
    text-align: left;
}

.news-text h4 {
    margin: 0;
    font-family: Poppins;
    font-size: 14px;
}

.news-text h2 {
    margin: 5px 0 0;
    font-size: 24px;
    font-family: Poppins;
    transition: text-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.news-text h2:hover {
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8); /* White glow effect */
    transform: scale(1.015);
    cursor: pointer;
}

.view-more-container {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.view-more-button {
    position: relative;
    top: 36vh;
    display: inline-block;
    padding: 10px 30px;
    background-color: #D9D9D9;
    color: #477855;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    font-family: Poppins;
}

.view-more-button:hover {
    opacity: 0.8;
}
@media (max-width: 821px) {
    #news {
        top: 147vh;
    }
    #news .news_heading{
        left: 42vw;
    }
    #news .news-container .news-card{
        top: 15vh;
    }
    .view-more-button{
        top: 30vw;
    }
}

@media (max-width: 768px) {
    #news {
        position: relative;
        top: 170vh;
    }
    #news .news_heading{
        left: 42vw;

    }
    #news .news-container{
        top: 1vw;
    }
    .news-card {
        width: 90%;
    }
}
@media (max-width: 430px) {
    #news {
        top: 157vh;
    }
    #news .news_heading{
        transform: scale(0.98);
        left: 32vw;
    }
    .view-more-button{
        top: 40vw;
    }
}
@media (max-width: 376px) {
    #news {
        top: 150vh;
    }
    #news .news_heading{
        left: 30vw;
    }
}