.news-container{
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    
}
.news-card{
    position: relative;
    display: flex;
    width: 650px;
    height: 400px;
}
.news-card img{
    
    width: 100%;
    border-radius: 15px;

}
.news-card::before {
    border-radius: 15px;

    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Black mask with 50% opacity */
    z-index: 1; /* Place mask above the image */
    transition: background 0.3s ease;
  }
  
.news-content{
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
    width: 100%;
    color: white;
    font-size: 25px;
    direction: rtl;
    text-align: start;
    padding: 10px;
}
.news-date{
    font-size: 20px;

    color: rgb(192, 192, 192);
}
.warp{
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
}
.warp .news-card{
    margin: 10px;
    margin-top: 0px;
    position: relative;
    display: flex;
    width: 350px;
    height: 240px;

}
.warp .news-title{
    font-size: 16px;
}
.show-all-news{
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    margin-top: 50px;
    
}
.show-all-news a{
    text-decoration: none;
    color: #ff7504;
    font-size: 20px;
    border: #ff7504 solid 1px;
    padding: 5px 20px;
    border-radius: 20px;
}
@media screen and (max-width: 1130px) {
    .news-container{
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
    }
    .news-card{
        position: relative;
        display: flex;
        width: 800px;
        height: 400px;
    }
    .warp{
        width: 810px;
        display: flex;
        flex-wrap: wrap;
        justify-content: end;
    }
    .warp .news-card{
        margin: 10px;
        position: relative;
        display: flex;
        width: 380px;
        height: auto;
    
    }
}

@media screen and (max-width: 850px) {
    .news-container{
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
    }
    .news-card{
        position: relative;
        display: flex;
        width: 100%;
        height: 300px;
    }
    .warp{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .warp .news-card{
        margin: 10px;
        position: relative;
        display: flex;
        width: 97%;
       
        height: 300px;

    }
}

@media screen and (max-width: 480px) {
    .news-card{
        width: 300px;
        height: 200px;
    }
    .warp{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .warp .news-card{
        width: 300px;
        height: 200px;

    }
}