/* ===========================================================
   استایل ویجت گرید مقالات خبری — تم تیره (مشکی)
   =========================================================== */

.naw-news-wrapper {
    direction: rtl;
    background-color: #000000;
    padding: 24px;
    border-radius: 12px;
    font-family: inherit;
}

.naw-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

/* ---------- سایدبار ---------- */
.naw-sidebar {
    flex: 0 0 260px;
    max-width: 100%;
}

.naw-sidebar-heading {
    position: relative;
    display: inline-block;
    color: #f5f5f5;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px 0;
    padding-inline-start: 12px;
}

.naw-sidebar-heading::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: 0;
    width: 4px;
    height: 22px;
    background-color: #f2c94c;
    border-radius: 2px;
}

.naw-side-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.naw-side-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
}

.naw-side-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.naw-side-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.naw-side-date {
    font-size: 12px;
    color: #999;
}

.naw-side-title {
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.6;
}

.naw-side-item:hover .naw-side-title {
    color: #f2c94c;
}

/* ---------- گرید اصلی ---------- */
.naw-grid {
    flex: 1 1 480px;
    display: grid;
    gap: 20px;
}

.naw-grid-cols-1 {
    grid-template-columns: 1fr;
}

.naw-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.naw-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.naw-card {
    display: flex;
    flex-direction: column;
    background-color: #161616;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.naw-card:hover {
    transform: translateY(-3px);
}

.naw-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.naw-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.naw-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #f2c94c;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

.naw-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.naw-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #f5f5f5;
    line-height: 1.7;
}

.naw-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #b8b8b8;
}

.naw-card:hover .naw-card-title {
    color: #f2c94c;
}

.naw-empty-state {
    color: #999;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
    .naw-layout {
        flex-direction: column;
    }
    .naw-sidebar {
        flex: 1 1 auto;
        width: 100%;
    }
    .naw-grid-cols-2,
    .naw-grid-cols-3 {
        grid-template-columns: 1fr;
    }
}
