* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.heading2-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 40px auto;
    font-family: 'noto sans arabic - text';
}

.cards-container .card {
    width: 40%;
    height: 115px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.card img {
    width: 115px;
    height: 115px;
    border: 7px solid white;
    object-fit: cover;
    border-radius: 14px;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7px;
}

.card .news-heading {
    font-family: 'noto sans arabic - text';
    margin: 0;
    font-size: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: unset;
    text-overflow: ellipsis;
    line-height: 1.8;

}

.publish-date {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.rating {
    text-align: center;
    padding-bottom: 10px;
    color: #ffc107;
    flex-grow: 1;
}

@media screen and (max-width: 1069px) {

    .cards-container .card {
        width: 85%;
        height: 105px;
    }

    .card img {
        height: 105px;
        width: 105px;
    }
    .h2-heading{
        margin-right: 40px;
    }

    .card .news-heading {
        font-size: 14px;
    }

    .publish-date {
        font-size: 12px;
    }
}

@media  screen and (max-width: 768px) {
    .cards-container .card {
        width: 80%;
        height: 100px;
    }
    .card img {
        height: 100px;
        width: 100px;
    }

    .h2-heading{
        margin-right: 30px;
        /* font-size: 25px; */
    }


}

@media  screen and (max-width: 450px) {

    .cards-container .card {
        width: 90%;
        height: 110px;
        }

    .card img {
        height: 110px;
        width: 110px;
    }

    .h2-heading {
        font-size: 20px;
        margin-right: 20px;
    }

    .card .news-heading {
    font-size: 14px;
    }

    .publish-date {
        font-size: 10px;
    }

    .card .news-heading {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;    }

}

