@font-face {
  font-family: "Sahel";
  src: url("//bayanbox.ir/download/5951560974950976253/Gandom.eot");
  src: url("//bayanbox.ir/download/5951560974950976253/Gandom.eot?#iefix")
      format("embedded-opentype"),
    url("//bayanbox.ir/download/7158980145103763633/Gandom.woff2")
      format("woff2"),
    url("//bayanbox.ir/download/7034607442957864942/Gandom.woff") format("woff"),
    url("//bayanbox.ir/download/8877035923866158099/Gandom.ttf")
      format("truetype");
  font-weight: normal;
}

body {
  background-color: #f3f7f3;
  font-size: 10px;
  font-family: "Sahel" , Lemonada;
}

header {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 30px;
}
.headerimg {
  width: 80%;
  height: 200px;
  background-image: url("https://bayanbox.ir/view/1714606626954418300/4830ca038c5882d5592f440ba0d3ebc3.jpg");
  background-position: center;
  border-radius: 7px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.05);
  background-repeat: no-repeat;
  background-size: cover;
}

.right {
  position: absolute;
  z-index: 1000;
  margin-top: 100px;
  margin-right: 50px;
  height: 140px;
  width: 40px;
  background-color: rgba(74, 95, 81, 0.8);
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 94%);
}

.container {
  direction: ltr;
  display: flex;
  width: 100%;
  justify-content: center;
}

section {
  position: sticky !important;
  z-index: 10;
  top: 20px;
  width: 20%;
  height: auto;
  float: left;
  margin-right: 10px;
  margin-top: -45px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  padding: 7px;
}

.name {
  position: relative;
  z-index: 10;
  height: 30px;
  width: 250px;
  text-align: center;
  font-size: 17px;
  font-weight: bolder;
  word-spacing: 5px;
  letter-spacing: 1px;
  margin-top: 5px;
  text-transform: uppercase;
}
.name a {
  z-index: 10;
  text-decoration: none;
  color: #b0d0af;
}

.name a:hover {
  color: #516655;
}

.description {
  position: relative;
  width: 250px;
  height: 130px;
  overflow: auto;
  box-sizing: border-box;
  padding: 10px;
  line-height: 20px;
  font-size: 10px;
  direction: rtl;
  text-align: center;
  background-color: white;
  border-radius: 3px 3px 0px 0px;
}
.description::-webkit-scrollbar {
  box-sizing: border-box;
  width: 8px;
}
.description::-webkit-scrollbar-thumb {
  background: radial-gradient(circle, #cccfe0 0%, #b69aad 100%);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 3px;
}
.description::-webkit-scrollbar-thumb:hover {
  background: radial-gradient(circle, #ffffff 0%, #ffffff 100%);
  background-clip: content-box;
}
.description::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 0px;
  box-shadow: inset 0px 0px 0px 0px #ffffff;
}

.blogimg img {
  position: relative;
  z-index: 100;
  width: 250px;
  height: 340px;
  background-position: center;
  background-size: cover;
  border-top: 1px solid;
  border-color: #fff;
}

nav {
  position: absolute;
  z-index: 250;
  height: auto;
  text-align: left;
  box-sizing: border-box;
  padding: 10px;
  margin-top: -100px;
  margin-bottom: 150px;
}
nav a {
  display: block;
  font-family: Lemonada;
  float: left;
  color: wheat;
  font-weight: 700;
  text-decoration: none;
  border: solid 1px #b0d0af53;
  padding: 3px 35px;
  border-radius: 20px;
  background: radial-gradient(circle, #cee0cc75 0%, #a7b69a7e 100%);
  margin-top: 3px;
  margin-left: -40px;
  text-align: center;
}
nav a:hover {
  color: #516655;
  background: radial-gradient(circle, #d2dbbd 0%, #ffffff 100%);
}
nav ul li {
  list-style: none;
}

.left {
  position: absolute;
  z-index: 20;
  margin-top: -280px;
  margin-left: -45px;
  height: 330px;
  width: 40px;
  background-color: rgba(74, 95, 81, 0.3);
  clip-path: polygon(9% 0, 100% 3%, 100% 100%, 0 94%);
}

.round {
  position: absolute;
  z-index: 50;
  margin-top: -250px;
  margin-left: -30px;
  height: 50px;
  width: 50px;
  border-radius: 100px;
  background-color: rgba(237, 212, 191, 0.9);
}

.bottom {
  position: absolute;
  z-index: 1000;
  margin-top: 60px;
  margin-left: 115px;
  height: 40px;
  width: 120px;
  background-color: rgba(248, 245, 245, 0.8);
  clip-path: polygon(8% 0%, 100% 0%, 94% 100%, 0% 100%);
}

.fllowme {
  border: solid 1px #b0d0af53;
  padding: 3px 35px;
  border-radius: 20px;
  background: radial-gradient(circle, #cee0cc 0%, #a7b69a 100%);
  margin-top: 30px;
  margin-bottom: 5px;
  text-align: center;
	
}
.fllowme:hover {
  color: #516655;
  background: radial-gradient(circle, #d2dbbd 0%, #ffffff 100%);
}
.fllowme a {
  display: block;
  font-family: Lemonada;
  color: rgb(20, 50, 3);
  font-weight: 700;
  text-decoration: none;
}
.fllowme a:hover {
  color: rgb(228, 208, 166);
}

.categories {
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.178);
  border-radius: 20px 20px 3px 3px;
}
.categories h6 {
	  font-weight: 700;
  border: solid 1px #b0d0af53;
  padding: 5px 35px;
  border-radius: 20px;
  background: radial-gradient(circle, #cee0cc 0%, #a7b69a 100%);
  text-align: center;
}

.recent_posts {
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.178);
  border-radius: 20px 20px 3px 3px;
}
.recent_posts h6 {
	  font-weight: 700;
  border: solid 1px #b0d0af53;
  padding: 5px 35px;
  border-radius: 20px;
  background: radial-gradient(circle, #cee0cc 0%, #a7b69a 100%);
  text-align: center;
}

.links {
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.178);
  border-radius: 20px 20px 3px 3px;
}
.links h6 {
	  font-weight: 700;
  border: solid 1px #b0d0af53;
  padding: 5px 35px;
  border-radius: 20px;
  background: radial-gradient(circle, #cee0cc 0%, #a7b69a 100%);
  text-align: center;
}

.dlinks {
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.178);
  border-radius: 20px 20px 3px 3px;
}
.dlinks h6 {
	  font-weight: 700;
  border: solid 1px #b0d0af53;
  padding: 5px 35px;
  border-radius: 20px;
  background: radial-gradient(circle, #cee0cc 0%, #a7b69a 100%);
  text-align: center;
}

.archive {
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.178);
  border-radius: 20px 20px 3px 3px;
}
.archive h6 {
	  font-weight: 700;
  border: solid 1px #b0d0af53;
  padding: 5px 35px;
  border-radius: 20px;
  background: radial-gradient(circle, #cee0cc 0%, #a7b69a 100%);
  text-align: center;
}

.sidemenu ul li{
	display:block;
  direction: rtl;
  list-style: none;
  padding: 10px 20px;
  margin-top: -15px;
	font-size: 10px;
}

.sidemenu ul li a{
  text-decoration: none;
  color: #38473b;
}

.sidemenu ul li a:hover{
  color: #b69aad;
}


/* ===== محتوای اصلی (article) ===== */
article {
  direction: rtl;
  width: 52%;
  float: left;
  margin-top: 11px;
  padding: 15px;
  background-color: rgb(218, 231, 226);
  border-radius: 7px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
}

/* ===== لیست پست‌ها (post_list) ===== */
.post-item {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 7px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
}

.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

.post-title h2 {
  font-family: Sahel , Lemonada;
  font-size: 12px;
  color: #38473b;
  margin-bottom: 10px;
}

.post-title h2 a {
  color: #38473b;
  text-decoration: none;
}

.post-title h2 a:hover {
  color: #516655;
}

.post-summary {
  font-size: 10px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.post-meta {
  font-size: 10px;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 15px;
}

.post-meta span {
  margin-left: 15px;
}

.post-meta a {
  color: #b0d0af;
  text-decoration: none;
}

.post-meta a:hover {
  color: #516655;
}

/* ===== جزئیات پست (post_detail) ===== */
.posttitle h2 {
  font-family: Sahel , Lemonada;
  font-size: 12px;
  color: #38473b;
  margin-bottom: 10px;
}

.posttitle h2 a {
  color: #38473b;
  text-decoration: none;
}

.posttitle h2 a:hover {
  color: #516655;
}

.postinfo {
  background: #f9f9f9;
  padding: 10px;
  margin-top: 10px;
  font-size: 10px;
  border-radius: 10px;
  color: #777;
}

.more {
  text-align: left;
  margin: 10px 0 20px;
}

.more a {
  background: radial-gradient(circle, #cee0cc 0%, #a7b69a 100%);
  color: #38473b;
  padding: 5px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-family: Sahel , Lemonada;
  font-size: 10px;
  border: solid 1px #b0d0af53;
  transition: all 0.3s ease;
}

.more a:hover {
  background: radial-gradient(circle, #d2dbbd 0%, #ffffff 100%);
  color: #516655;
}

/* محتوای پست */
.postcontent {
  margin: 15px 0;
  font-size: 10px;
  text-align: justify;
  line-height: 1.8;
}

.postcontent > div, .postcontent ol li {
  margin-bottom: 10px;
}

.postcontent img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}

.postcontent ul {
  margin: 10px 40px;
  list-style-image: url('//bayanbox.ir/view/2200081699838202738/tick.png');
}

.postcontent ul li {
  margin-bottom: 10px;
}

.postcontent a{
	color:#185612;
		text-decoration: none;
}

blockquote {
  border-right: 6px solid #205a66;
  padding: 14px 10px;
  background: #f9f9f9;
  margin: 15px;
  border-radius: 10px;
  font-style: normal;
}

blockquote p {
  margin: 0;
}

/* تگ‌های پست */
.posttags {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.posttags a {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px 5px 0;
  background-color: #f0f0f0;
  border-radius: 3px;
  color: #555;
  font-size: 9px;
  text-decoration: none;
}

.posttags a:hover {
  background-color: #e0e0e0;
  color: #333;
}

/* سیستم رتبه‌بندی */
.rate-box {
  display: block;
  text-align: left;
  margin: 15px 0;
}

.rate-button-box {
  font-size: 10px;
  padding: 0 20px;
  display: inline-block;
}

.rate-up a:after {
  content: "پسندیدم";
  color: #4B4B4B;
}

.rate-button-box.rated {
  font-weight: bold;
  background: url(//bayanbox.ir/view/390913878236021869/tick-rate.png) no-repeat right;
  background-size: 16px;
}

.rate-button-box a {
  color: #4B4B4B;
  text-decoration: none;
}

/* ===== نظرات ===== */
.cmt-bg {
  text-align: center;
  color: #fff;
  padding: 8px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 10px;
  margin-bottom: 15px;
}

.cmt-bg.bg-c {
  background-color: #12561b;
}

.cmt-bg.bg-p {
  background-image: url("//bayanbox.ir/view/2278894617592441501/mirrored-squares.png");
}

.cmt-bg a {
  color: #fff;
	text-decoration:none;
}

.cmt-bg a:hover {
  color: #eee;
}

/* کامنت‌ها */
.comment {
  padding: 15px;
  background-color: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
}

.comment-details {
  font-size: 10px;
  padding: 2px 5px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  margin-top: 10px;
}

.comment-details a {
  color: #3d8296;
  font-size: 10px;
  display: inline-block;
  text-decoration: none;
	  margin-top: 13px;
}

.comment-details a:hover {
  color: #2a5a6b;
}

.comment .avatar img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  float: right;
  margin-left: 10px;
}

.cmttext {
  padding: 5px 5px 15px;
  text-align: justify;
  clear: both;
}

/* پاسخ به کامنت */
.rep-pic img {
  float: right;
  padding-top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-left: 10px;
}

.cmtreplay {
  margin: 0 54px 10px 0;
  padding: 10px;
  text-align: justify;
  box-shadow: 0 0 15px rgba(6, 6, 6, 0.09) inset;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.cmtreplay img {
  max-width: 100%;
  height: auto;
}

.cmtdate {
  float: left;
}

.cmtdate a {
  background: #fb1347;
  padding: 2px 10px;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

/* فرم نظر */
.comment-form {
  font-size: 10px;
  padding: 15px;
  margin-bottom: 7px;
  border-radius: 4px;
  background-color: white;
  border-radius: 10px;
}

.formField2 input.text,
.formField2 textarea {
  line-height: 1.4rem;
  color: #205a66;
  font-size: 10px;
  border-radius: 0;
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  font-family: Sahel , Lemonada;
}

input, textarea, select {
  font-family: Sahel , Lemonada;
}

#bComSub {
  cursor: pointer;
  margin-top: auto;
  padding: 9px 30px;
  border-radius: 15px;
  background: #205a66;
  color: #fff;
  font-weight: bold;
  border: 0;
}

#bComSub:hover {
  background: #266978;
}

/* ===== صفحه‌بندی ===== */
.pagination {
  text-align: center;
  margin: 20px 0;
  direction: ltr;
}

.pagination ul {
  list-style: none;
  padding: 0;
}

.pagination li {
  display: inline-block;
  margin: 0 5px;
}

.pagination a {
  display: inline-block;
  padding: 8px 15px;
  background-color: rgba(74, 95, 81, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: rgba(74, 95, 81, 1);
}

/* ===== فوتر ===== */
footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
}

.footer {
  width: 80%;
  background-color: #ffff;
  height: 25px;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.05);
}

.footer h4 {
  font-family: Sahel , Lemonada;
  color: #38473b;
	text-align: center;
  font-size: 12px;
	  margin-top: 4px;
}
.footer a{
	color:#3b5612;
	text-decoration: none;}
.footer a:hover{
	color:#deafc5;
	text-decoration: none;}

/* ===== کلیرفیکس ===== */
.clearfix {
  clear: both;
}

/* ===== رسپانسیو ===== */
@media screen and (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  
  /* تغییر ترتیب با order */
  article {
    order: 1; /* اول نمایش داده شود */
    width: 80%;
    float: none;
    margin: 0 auto 20px;
  }
  
  section {
    order: 2; /* دوم نمایش داده شود */
    position: static !important;
    width: 50%;
    margin: 0 auto;
    float: none;
  }
  
  .right {
    display: none;
  }
  
  .left, .round, .bottom {
    display: none;
  }
  
  /* تنظیم مجدد ترتیب عناصر در ستون کناری */
  .sidemenu {
    display: flex;
    flex-direction: column;
  }
  
  .description {
    order: 1;
    width: 100%;
    height: auto;
    max-height: 200px;
  }
  
  .fllowme {
    order: 2;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  .categories {
    order: 3;
  }
  
  .recent_posts {
    order: 4;
		margin-top:10px;
  }
  
  .links {
    order: 5;
		margin-top:10px;
  }
  
  .dlinks {
    order: 6;
		margin-top:10px;
  }
  
  .archive {
    order: 7;
		margin-top:10px;
  }
}

@media screen and (max-width: 768px) {
  .headerimg {
    width: 95%;
    height: 150px;
  }
  
 article {
    width: 90%;
		margin-top: 10px;
  }
	  section{    width: 55%;
		padding:3px
  }
  
  .name, .description, .blogimg img {
    width: 100%;
  }
  

  
  nav {
    position: static;
    margin: 10px 0;
		text-align:center;
  }
  
  nav a {
    float: none;

    width: 80%;
				text-align:center;
  }
  
  .blogimg {
    text-align:center;
      width: 100%;
  background-position: center;
  background-size: cover;
  border-top: 1px solid;
  border-color: #fff;
  }
  
  /* تنظیم مجدد navigation برای موبایل */
  nav {
    margin-top: 0;
  }
  
  .tape {
    display: none;
  }
}