@import url("index.css");

.Product_header{
    margin-bottom: 40px;
}
.news_container{
    width: 1170px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 50px;
}

.news_item{
    width: 100%;
    height: auto;
    margin-bottom: 50px;
    position: relative;
}

.news_img img{
    width: 100%;
    height: 300px;
    object-fit: contain;
}

.news_detail a{
    margin-top: 10px;
    height: 100%;
    color: #000;
}

.news_detail a:hover{
    color: #00c9df;
}
.news_header{
    font-size: 26px;
    margin-bottom: 2px;
    color: #000;
}
.news_date{
    font-size: 18px;
    margin-bottom: 2px;
    color: #000;
}
.news_item_detail{
    font-size: 20px;
    min-height: 90px;
    /* background-color: red; */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 30px;
}
.news_detail .news_detail_btn {
    padding: 15px 30px;
    border: 1px solid #00c9df;
    border-radius: 10px;
    font-size: 18px;
    color: #00c9df;
    position: relative;
    transform-origin: left;
}

.news_detail .news_detail_btn::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #00c9df;
    border-radius: 10px;
    transition: width .7s ease;
    z-index: -1;
}
.news_detail .news_detail_btn:hover::after{
    width: 100%;
}
.news_detail .news_detail_btn:hover{
    color: #fff;
}

.newsDetail_container{
    width: 1170px;
    margin: 0 auto;
}
.newsDetail_container p{
    margin: 5px 0;
}
.newsDetail_img{
    display: flex;
    justify-content: center;
}
.newsDetail_img img{
    width: 50%;
    object-fit: cover;
}
.newsDetail_detail{
    width: 100%;
    font-size: 22px;
    margin-bottom: 20px;
}
.newsDetail_header{
    font-size: 26px;
    font-weight: bold;
}
@media screen and (max-width : 1020px) {
    .news_container{
        width: 100%;
        grid-template-columns: repeat(1, 1fr);
        padding: 20px;
    }
    .newsDetail_container{
        width: 100%;
        padding: 20px;
    }

}