﻿#current-news {
    margin-top: 3rem;
}

.current-news-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.news-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: all .2s ease;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.news-text {
    flex: 1;
    padding-left: 12px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

.news-summary {
    font-size: 0.92rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 🔥 محدودیت به 3 خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 1.2rem;
}

.news-image img {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

@media (max-width: 600px) {

    .news-card {
        flex-direction: column;
        padding: 12px;
    }

    .news-image img {
        width: 100%;
        height: 160px;
        margin-top: 10px;
    }
}
