/* دستیار مقالات - اخبار خبرگزاری‌ها */
.dm-news-wrap{ direction:rtl; text-align:right; }
.dm-news-heading{
    font-size:1.05rem;
    font-weight:700;
    margin:0 0 14px 0;
    color:#222;
}
.dm-news-list{
    display:grid;
    grid-template-columns:repeat(var(--dm-news-cols,1),1fr);
    gap:12px;
}
.dm-news-card{
    position:relative;
    display:flex;
    align-items:stretch;
    gap:12px;
    padding:12px;
    border:1px solid #ececec;
    border-radius:12px;
    background:#fff;
    text-decoration:none;
    color:inherit;
    transition:box-shadow .15s,border-color .15s,transform .12s;
}
.dm-news-card:hover{
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    border-color:#e0e0e0;
    transform:translateY(-1px);
}
.dm-news-thumb{
    flex:0 0 84px;
    width:84px;
    border-radius:8px;
    background-size:cover;
    background-position:center;
    background-color:#f2f4f7;
    min-height:64px;
}
.dm-news-icon{
    position:absolute;
    bottom:8px;
    left:8px;
    top:auto;
    inset-inline-start:auto;
    width:26px;
    height:26px;
    border-radius:6px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 1px 4px rgba(0,0,0,.12);
    display:flex;
    align-items:center;
    justify-content:center;
}
.dm-news-icon img{ width:100%; height:100%; object-fit:contain; }
.dm-news-body{ display:flex; flex-direction:column; justify-content:center; min-width:0; }
.dm-news-title{
    font-size:.95rem;
    font-weight:800;
    color:#1f2a36;
    line-height:1.6;
}
.dm-news-sub{
    margin-top:4px;
    font-size:.82rem;
    font-weight:400;
    color:#66727e;
    line-height:1.7;
}
@media (max-width:600px){
    .dm-news-list{ grid-template-columns:1fr; }
}
.dm-news-over{
    display:block;
    font-size:.78rem;
    font-weight:700;
    color:#777;
    margin-bottom:3px;
    line-height:1.5;
}

/* شبکه‌ی آیکون خبرگزاری‌ها (شورت‌کد [dm_agencies]) */
.dm-agencies{ direction:rtl; text-align:right; margin:6px 0 22px; }
.dm-agencies-title{
    font-size:1.05rem;
    font-weight:700;
    margin:0 0 14px 0;
    color:#222;
}
.dm-agencies-grid{
    display:grid;
    grid-template-columns:repeat(var(--dm-ag-cols,4),1fr);
    gap:10px;
}
.dm-agency-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    padding:10px;
    border:1px solid #ececec;
    border-radius:12px;
    background:#fff;
    text-decoration:none;
    color:inherit;
    transition:box-shadow .15s,border-color .15s,transform .12s;
}
a.dm-agency-item:hover{
    box-shadow:0 4px 14px rgba(0,0,0,.06);
    border-color:#e0e0e0;
    transform:translateY(-1px);
}
.dm-agency-ico{
    display:flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
}
.dm-agency-ico img{ width:100%; height:100%; object-fit:contain; }
.dm-agency-name{
    font-size:.8rem;
    color:#444;
    text-align:center;
    line-height:1.5;
}
