/* Genel Stil */
body {
    font-family: "Poppins", sans-serif;
}
:root{
    --dark-purple:#31178f;
    --soft-purple:#7226b0;
    --back-color-main:#ffffff;
    --body-back-color:rgb(248, 246, 254);
    --main-text:black;
    --light-color:white;
    --secondary-text:#777;
}
.news-section {
    padding: 20px;
}
h2{
    color: var(--dark-purple);
    text-align: center;
}
.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.news-item {
    display: block;
    width: 100%;
    max-width: calc(24% - 15px);
    background-color: var(--back-color-main);
    border: 1px solid var(--back-color-main);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--main-text);
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.245);
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}
.news-item:hover{
    scale: 1.01;
    box-shadow: 0px 5px 10px 2px var(--dark-purple);
    transform: translateY(-7px);
    -webkit-transform: translateY(-7px);
    -moz-transform: translateY(-7px);
    -ms-transform: translateY(-7px);
    -o-transform: translateY(-7px);
}
.news-item:hover img{
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}
.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition:all .3s ease;
    -webkit-transition:all .3s ease;
    -moz-transition:all .3s ease;
    -ms-transition:all .3s ease;
    -o-transition:all .3s ease;
}
.news-page .news-date{
    position: static;
    top: 10px;
}
.news-info {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}
.news-section ion-icon{
    margin-bottom: -4px;
    margin-right: 5px;
    font-size: 20px;
    color: var(--dark-purple);

}

.news-date, .news-views {
    font-size: 14px;
}

.news-text {
    text-align: center;
    padding: 0px 15px;
    overflow: hidden;
    padding-bottom: 30px;
    height: 100px;
}
.news-text p{
    line-height: 1.5;
    max-height: 4.5em;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}
.news-title{
    margin: 0px 0px -10px 0px;
}
@media (max-width:992px){
    .news-item {
        display: block;
        width: 100%;
        max-width: calc(48% - 15px);
    }
}
@media (max-width:600px){
    .news-item {
        display: block;
        width: 100%;
        max-width: calc(100% - 15px);
    }
}
@media (max-width:600px){
    .news-item {
        display: block;
        width: 100%;
        max-width: calc(100% - 15px);
    }

}

