 
  
 *,
*::before,
*::after {
	font-family: 'IRANSans', IRANSans;
  box-sizing: border-box;
}

    			@font-face {
			font-family: IRANSans;
			font-style: normal;
			font-weight: normal;
			src: url('/font/IRANSansWeb.eot');
			src: url('/font/IRANSansWeb.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
			url('/font/IRANSansWeb.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
			url('/font/IRANSansWeb.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
			url('/font/IRANSansWeb.ttf') format('truetype');
			font-display: swap;
			}
			
 

img, figure  {
  max-width: 100% !important;
  height: auto;
  display: block;
}

 

    body {
       
      margin: 0;
      background-color: #f4f4f4;
      color: #333;
      direction: rtl;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
	   font-family: 'IRANSans',IRANSans;
   overflow-x: hidden;
  max-width: 100%;
    }

    header {
      background-color: #0073e6;
      color: white;
      padding: 15px 20px;
      display: flex;
      justify-content: flex-start;
      gap: 20px;
      align-items: center;
    }

    header a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      font-size: 16px;
    }

    .container {
      
      margin: auto;
      padding: 25px 10px;
      flex-grow: 1;
      background-color: #fff;
      border-radius: 8px;
       
	  
	    max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
	  
 
  
	  
	  
	  
	  
	  
    }

    .post-title {
      font-size: 26px;
      margin: 0 0 1px;
      color: #0073e6;
    }
	.post-title a {
      font-size: 26px;
      margin: 0 0 15px;
      color: #0073e6;
	  text-decoration: none; 
    }

    .post-meta {
      font-size: 14px;
      color: #777;
      margin-bottom: 1px;
	  direction: ltr;
    }

    .post-content {
      font-size: 16px;
      line-height: 2;
      color: #333;
	   
 
 
  border-radius: 5px;
  border: 1px solid #808080;
  padding: 10px;
  box-shadow: 0 8px 16px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
    }

    .post-tags {
      margin-top: 30px;
      padding-top: 15px;
      border-top: 1px solid #ddd;
    }

    .post-tags span {
      font-weight: bold;
      color: #555;
    }

    .post-tags a {
      display: inline-block;
      background-color: #eef3f9;
      color: #0073e6;
      padding: 5px 10px;
      margin: 5px 5px 0 0;
      font-size: 14px;
      border-radius: 6px;
      text-decoration: none;
      transition: background-color 0.3s;
    }

    .post-tags a:hover {
      background-color: #d6eaff;
    }

    .related-posts {
      margin-top: 40px;
      border-top: 1px solid #ddd;
      padding-top: 20px;
    }

    .related-posts h3 {
      font-size: 20px;
      margin-bottom: 15px;
    }

    .related-posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 20px;
    }

    .related-item {
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      overflow: hidden;
      transition: transform 0.3s;
    }

    .related-item:hover {
      transform: translateY(-5px);
    }

    .related-item img {
      width: 100%;
      height: 150px;
      object-fit: cover;
    }

    .related-item a {
      display: block;
      padding: 15px;
      color: #0073e6;
      text-decoration: none;
      font-size: 16px;
      font-weight: bold;
      transition: color 0.3s;
    }

    .related-item a:hover {
      color: #005bb5;
    }
 

    footer {
      background-color: #222;
      color: #ccc;
      text-align: center;
      padding: 15px;
      font-size: 14px;
      margin-top: 40px;
    }

    @media (max-width: 600px) {
      .post-title {
        font-size: 22px;
      }

      .post-content {
        font-size: 16px;
      }

      .related-item img {
        height: 120px;
      }
    }
	.btn-link {
  display: block;              
  width: 100%;                
 
  text-align: center;           
  padding: 12px 20px;          
  text-decoration: none;      
  border-radius: 8px;          
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
    box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
	
  font-size: 15px;            
  margin: 7px  0px  20px  0px ;            
  transition: background-color 0.3s ease;  
  							background-color: #784ed1;
							color: white;
}

.btn-link:hover {
							background-color: #5c3aa6; /* رنگ پررنگ‌تر برای پس‌زمینه هنگام هاور */
							color: #e0e0e0; /* تغییر رنگ متن (اختیاری) */
}
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  color: #843fa1;
}



figure {
  max-width: 100%;
  margin: 0;
}

figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}


cite {
  display: inline;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}


  /* دایو ثابت بالا سمت راست */
  #fixedDiv {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 15px 30px 15px 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    border-radius: 5px;
    max-width: 300px;
  }
  /* دکمه ضربدر */
  #closeBtn {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-weight: bold;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #333;
  }
 

 	
 
.download-btn {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse; /* آیکن سمت راست */
  gap: 8px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 1px;    
  margin-bottom: 20px;  
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.download-btn:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

.download-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .download-btn {
    font-size: 16px;
    padding: 7px 14px;
    margin-top: 3px;
    margin-bottom: 12px;
  }
  .download-icon {
    width: 16px;
    height: 16px;
  }
}
 
 
 
 
  
 .img-button-wrapper {
    display: flex;
    justify-content: center; /* وسط چین کردن افقی */
    align-items: center;     /* وسط چین کردن عمودی */
    width: 100%;
    margin: 10px 0;
}

.img-button-wrapper .link-dl {
    display: flex;
    align-items: center;
    /* justify-content: center; را حذف می‌کنیم چون می‌خواهیم آیکون در سمت راست باشد */
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #ccc; /* می‌توانید رنگ border را هم تغییر دهید */
    border-radius: 5px;
    color: white; /* رنگ نوشته سفید */
    background-color: #007bff; /* بک‌گراند آبی */
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.img-button-wrapper .link-dl:hover {
    background-color: #0056b3; /* رنگ آبی تیره‌تر برای hover */
}

.img-button-wrapper .link-dl .download-icon {
    width: 20px;
    height: 20px;
    /* margin-right: 8px; را حذف می‌کنیم */
    margin-left: 8px; /* آیکون به سمت راست متن منتقل شده، پس margin را به سمت چپ اعمال می‌کنیم */
    fill: currentColor; /* یا می‌توانید رنگ مشخصی برای آیکون تعیین کنید */
}

/* استایل برای لینک اصلی عکس */
.image-link {
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.image-link img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

	 