@font-face{
    font-family:'IRANSans';
    src:url('/files/isans.woff') format('woff');
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    direction:rtl;
    font-family:'IRANSans',Tahoma,Arial,sans-serif;
    font-size:15px;
    line-height:2;
    background:#f3f3f3;
    color:#333;
}

a{
    color:#0066cc;
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

header{
    background: #b90005;
    height: 100px;
}

footer{
    margin-top:20px;
    color: #fff;
    text-align: center;
    background-color: #b90005;
}

.mm {
  min-width: 100px;
  margin: 4px 3px 0 0;
  display: inline-block;
}

.mm a {
  background: #3c77a3;
  border-color: #114b73;
  border-style: none double double;
  border-width: medium 1px 1px;
  color: #fff;
  display: block;
  line-height: 1.8;
  padding: 0 12px;
  font-size: 14px;
}

.layout{
    max-width:1300px;
    margin:20px auto;
    display:flex;
    flex-direction:row-reverse;
    gap:20px;
    align-items:flex-start;
    padding:0 15px;
}

.content{
    flex:1;
    background:#fff;
    padding:20px;
    border-radius:6px;
}

.sidebar{
    width:300px;
    background:#fff;
    padding:20px;
    border-radius:6px;
}

.logo{
    display:flex;
    align-items:center;
    height:100%;
    margin-right:10px;
}

.logo img{
    display:block;
}

/* لیست مطالب */

.post{
    overflow:hidden;
    border-bottom:1px solid #e5e5e5;
    padding:20px 0;
}

.post:last-child{
    border-bottom:none;
}

.post img{
    float:right;
    height:120px;
    object-fit:cover;
    margin-left:15px;
    border-radius:5px;
}

.post h2{
    font-size:22px;
    margin-bottom:10px;
    line-height:1.6;
}

.post h2 a{
    color:#222;
}

.post h2 a:hover{
    color:#cc0000;
}

.date{
    color:#888;
    font-size:13px;
    margin-bottom:10px;
}

/* صفحه مقاله */

.content h1{
    font-size:34px;
    line-height:1.7;
    margin-bottom:15px;
}

.article-body{
    line-height:2.3;
    font-size:17px;
    text-align:justify;
}

.article-body::after{
    content:"";
    display:block;
    clear:both;
}

.article-image{
    float:right;
    width:320px;
    max-width:40%;
    margin:0 0 20px 20px;
}

.article-image img{
    width:100%;
    border-radius:6px;
}

.backlink{
    margin:35px 0;
    padding:15px;
    background:#f7f7f7;
    border:1px solid #ddd;
    border-radius:5px;
}

/* مطالب مرتبط */

.related{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-top:20px;
}

.more-item{
    border:1px solid #ddd;
    background:#fff;
    padding:10px;
    border-radius:5px;
    overflow:hidden;
}

.more-item img{
    float:right;
    width:120px;
    height:80px;
    object-fit:cover;
    margin-left:10px;
    border-radius:5px;
}

.more-item a{
    font-weight:bold;
    color:#222;
    display:block;
    margin-bottom:8px;
}

.more-item .date{
    margin:5px 0;
}

.more-item p{
    font-size:14px;
    color:#666;
    line-height:1.8;
}

/* محتوای مقاله */

.content p{
    margin-bottom:15px;
}

.content ul,
.content ol{
    margin:15px 35px;
}

.content table{
    width:100%;
    border-collapse:collapse;
    margin:20px 0;
}

.content table td,
.content table th{
    border:1px solid #ddd;
    padding:8px;
}

/* موبایل */

@media (max-width:900px){

.layout{
    display:block;
}

.sidebar{
    width:100%;
    margin-top:20px;
}

.related{
    grid-template-columns:1fr;
}

.article-image{
    float:none;
    width:100%;
    max-width:100%;
    margin:0 0 15px 0;
}

.post img{
    float:none;
    width:100%;
    height:auto;
    margin:0 0 15px 0;
}

.content h1{
    font-size:28px;
}

.post h2{
    font-size:20px;
}

.more-item img{
    float:none;
    width:100%;
    height:auto;
    margin:0 0 10px 0;
}

}

/* موبایل کوچک */

@media (max-width:480px){

body{
    font-size:14px;
}

.content{
    padding:15px;
}

.sidebar{
    padding:15px;
}

.content h1{
    font-size:24px;
}

.post h2{
    font-size:18px;
}

.article-body{
    font-size:15px;
}

}