::selection {
  background: rgba(243, 172, 31, 0.73);
  color: white;
}

#single_blog a {
  transition: all 0.4s ease;
}
#single_blog p a, #single_blog h2 a, #single_blog h3 a, #single_blog h4 a, #single_blog h5 a, #single_blog h6 > a {
  color: #0b5ed7;
  position: relative;
  width: fit-content;
  display: inline-block;
}
#single_blog p a::before, #single_blog h2 a::before, #single_blog h3 a::before, #single_blog h4 a::before, #single_blog h5 a::before, #single_blog h6 > a::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  background: #0b5ed7;
  height: 1.5px;
}
#single_blog p a::after, #single_blog h2 a::after, #single_blog h3 a::after, #single_blog h4 a::after, #single_blog h5 a::after, #single_blog h6 > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  background: #efa712;
  height: 1.5px;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
}
#single_blog p a:hover, #single_blog h2 a:hover, #single_blog h3 a:hover, #single_blog h4 a:hover, #single_blog h5 a:hover, #single_blog h6 > a:hover {
  color: #efa712;
}
#single_blog p a:hover::after, #single_blog h2 a:hover::after, #single_blog h3 a:hover::after, #single_blog h4 a:hover::after, #single_blog h5 a:hover::after, #single_blog h6 > a:hover::after {
  width: 100%;
}
#single_blog .social-container.show-social {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  right: calc(100% + 10px);
  min-width: 200px;
  z-index: 1;
}
#single_blog .blog-img-container {
  border-radius: 10px;
}
#single_blog .blog-img-container img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: auto;
  display: block;
  border-radius: 10px;
}
#single_blog img {
  margin: 20px auto 20px auto;
}
#single_blog .post-content {
  background: #ffffff;
  border-radius: 10px;
  margin: 10px 0 20px 0;
}
#single_blog .post-content h2 {
  color: black;
  text-align: right;
  font-size: clamp(18px, 5vw, 24px);
  font-style: normal;
  font-weight: 800;
  scroll-margin-top: 100px;
  margin-bottom: 10px;
}
#single_blog .post-content h2:not(:first-of-type) {
  margin-bottom: 10px;
  margin-top: 40px;
  padding-top: 20px;
}
#single_blog .post-content h3 {
  color: black;
  text-align: right;
  font-size: clamp(17px, 5vw, 20px);
  font-style: normal;
  font-weight: 700;
  margin-bottom: 10px;
}
#single_blog .post-content h4 {
  color: black;
  text-align: right;
  font-size: clamp(16px, 5vw, 19px);
  font-style: normal;
  font-weight: 600;
  margin-bottom: 10px;
}
#single_blog .post-content p {
  color: black;
  font-size: clamp(16px, 4vw, 19px);
  font-style: normal;
  font-weight: 400;
  line-height: 37px;
  text-align: justify;
  margin-bottom: 25px;
}
#single_blog .post-content h3 {
  padding-right: 30px;
}
#single_blog .post-content h3 + p {
  padding-right: 30px;
}
#single_blog .post-content h3 > p {
  padding-right: 30px;
}
#single_blog .post-content h3 + p + p {
  padding-right: 30px;
}
#single_blog .post-content h3 + p + p + p {
  padding-right: 30px;
}
#single_blog .post-content h4 {
  padding-right: 50px;
}
#single_blog .post-content h4 + p {
  padding-right: 50px;
}
#single_blog .post-content h4 > p {
  padding-right: 50px;
}
#single_blog .post-content h4 + p + p {
  padding-right: 50px;
}
#single_blog .post-content h4 + p + p + p {
  padding-right: 50px;
}
#single_blog .post-content img {
  margin: 20px auto;
}
@media only screen and (max-width: 768px) {
  #single_blog .post-content h3 {
    padding-right: 0;
  }
  #single_blog .post-content h3 + p {
    padding-right: 0;
  }
  #single_blog .post-content h3 > p {
    padding-right: 0;
  }
  #single_blog .post-content h3 + p + p {
    padding-right: 0;
  }
  #single_blog .post-content h3 + p + p + p {
    padding-right: 0;
  }
  #single_blog .post-content h4 {
    padding-right: 0;
  }
  #single_blog .post-content h4 + p {
    padding-right: 0;
  }
  #single_blog .post-content h4 > p {
    padding-right: 0;
  }
  #single_blog .post-content h4 + p + p {
    padding-right: 0;
  }
  #single_blog .post-content h4 + p + p + p {
    padding-right: 0;
  }
}
#single_blog .post-content li {
  position: relative;
  margin: 5px 0;
  color: black;
  font-size: clamp(16px, 4vw, 19px);
  font-style: normal;
  font-weight: 400;
  line-height: 37px;
  text-align: justify;
}
#single_blog .post-content ol {
  position: relative;
  list-style-type: -moz-ethiopic-numeric;
  padding-right: 1.25rem;
}
#single_blog .post-content ul {
  position: relative;
  list-style-type: none;
  padding-right: 1.25rem;
}
#single_blog .post-content ul li::before {
  content: "";
  position: absolute;
  left: calc(100% + clamp(4px, 2vw, 10px));
  top: 13.5px;
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: #56dcad;
  clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);
}
#single_blog .wp-block-column {
  padding: 10px;
}
#single_blog p {
  color: black;
  font-size: clamp(16px, 4vw, 19px);
  font-style: normal;
  font-weight: 400;
  margin-bottom: 25px;
  line-height: 37px;
  text-align: justify;
}
#single_blog #respond #email-notes {
  color: #969696;
  font-size: 15px;
}
#single_blog #respond .required-field-message {
  color: #969696;
  font-size: 15px;
}
#single_blog #client-comments p {
  font-size: 15px;
}
#single_blog #client-comments .line-text {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #FAB62F;
  padding: 6px 0;
  position: relative;
}
#single_blog #client-comments .line-text:before {
  content: "";
  position: absolute;
  width: 110px;
  height: 4px;
  top: 96%;
  background: #FAB62F;
}
#single_blog #client-comments .comment-author {
  display: flex;
  justify-content: space-between;
  background: #e8e8e8;
  padding: 10px;
  border-radius: 9px;
}
#single_blog #client-comments .comment-text {
  padding: 15px 15px 0;
}
#single_blog .blog-img-container {
  border-radius: 10px;
}
#single_blog .squares-left, #single_blog .squares-right, #single_blog .squares-bottom {
  width: 100vw;
}

.what-you-will-see ul li {
  position: relative;
}
.what-you-will-see ul li::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -15px;
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: black;
}
.what-you-will-see ul li a:hover {
  color: black;
  font-weight: 600;
}

@media (min-width: 1024px) {
  #single_blog .squares-left, #single_blog .squares-right, #single_blog .squares-bottom {
    width: 50vw;
  }
}
.rotate-90 {
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
}

#single_blog .wp-block-rank-math-faq-block .rank-math-faq-item {
  margin: 0 0 20px 0;
}
#single_blog .wp-block-rank-math-faq-block .rank-math-faq-item .rank-math-question {
  padding-right: unset;
}
#single_blog .wp-block-rank-math-faq-block .rank-math-faq-item .rank-math-question {
  position: relative;
  background: #EAEDED;
  color: #838383;
  padding: 13px;
  border-radius: 8px;
  margin: 0;
  font-size: 16px;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
}
#single_blog .wp-block-rank-math-faq-block .rank-math-faq-item .rank-math-question:after {
  border-color: transparent transparent transparent #aaaaaa;
  border-style: solid;
  border-width: 6px 0 6px 12px;
  content: "";
  display: inline-block;
  height: 0;
  margin-right: auto;
  margin-left: 6px;
  transition: all 0.5s ease;
  width: 0;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
}
#single_blog .wp-block-rank-math-faq-block .rank-math-faq-item .active {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: #FCEBA9;
  color: black;
}
#single_blog .wp-block-rank-math-faq-block .rank-math-faq-item .active:after {
  border-color: transparent transparent transparent black;
  transform: rotate(90deg);
}
#single_blog .wp-block-rank-math-faq-block .rank-math-faq-item .rank-math-answer {
  line-height: 29px;
  text-align: justify;
  display: none;
  padding: 20px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  background: #f5f5f5;
  box-shadow: 0 28px 35px -22px rgba(0, 0, 0, 0.13);
}

.related-blogs-container {
  width: 100%;
}
.related-blogs-container .posts {
  display: flex;
  flex-direction: column;
  border: 1px solid #b6ceff;
  background: #EFF2F2;
  border-radius: 11px;
  padding: 20px;
}
.related-blogs-container .show-answer img {
  width: 10px !important;
  height: 5px !important;
  rotate: 180deg;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
}
.related-blogs-container .posts .posts-header {
  width: 100%;
  color: #515151;
  font-weight: 600;
  font-size: clamp(19px, 5vw, 24px);
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(153, 153, 153, 0.29);
  padding-bottom: 20px;
  display: inline-block;
}
.related-blogs-container .posts .posts-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  gap: 10px;
}
.related-blogs-container .posts .posts-list .posts-line {
  width: 2px;
  height: 93%;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  right: 19px;
  background: #ffffff;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}
.related-blogs-container .posts .post-item {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 10px;
  transition: all 0.5s;
  text-decoration: none;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
}
.related-blogs-container .posts .post-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 5px;
  background: var(--single-blog-posts-border);
  margin-left: 15px;
  position: relative;
  font-weight: 600;
  font-size: 13px;
  color: var(--single-blog-posts-text);
}
.related-blogs-container .posts .post-item .post-number .item-tick {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
}
.related-blogs-container .posts .post-item .post-number .item-tick img {
  width: 100%;
  margin: 0 !important;
  border-radius: unset !important;
}
.related-blogs-container .posts .posts-list .post-item .item-text {
  display: flex;
  font-weight: 600;
  font-size: 14px;
  color: #7b7b7b;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
}
.related-blogs-container .posts .posts-list .post-item-active .item-text {
  color: #00b881;
}
.related-blogs-container .posts .posts-list .post-item-active {
  z-index: 2;
  background: #ffffff;
  border: 1px solid #e7e7e7;
}
.related-blogs-container .posts .post-item-active .post-number .item-tick {
  opacity: 1;
}



/* استایل لایت پیشرفته برای کدها در پست‌های تکی */
#single_blog .post-content code {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  color: #0d47a1;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  position: relative;
  box-shadow:
          0 2px 8px rgba(13, 71, 161, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 3px;
  display: inline-block;
}

/* خط رنگی کناری */
#single_blog .post-content code:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom,
  #1976d2 0%,
  #2196f3 50%,
  #03a9f4 100%);
  border-radius: 6px 0 0 6px;
}

/* افکت نور داخلی */
#single_blog .post-content code:after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: linear-gradient(to right,
  transparent,
  rgba(25, 118, 210, 0.2),
  transparent);
  border-radius: 1px;
}

/* حالت هاور */
#single_blog .post-content code:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  border-color: #1976d2;
  color: #0d47a1;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
          0 8px 25px rgba(25, 118, 210, 0.15),
          0 4px 12px rgba(0, 0, 0, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* برای بلاک‌های کد بزرگ */
#single_blog .post-content pre {
  background: linear-gradient(135deg, #fafbfc 0%, #f6f8fa 100%);
  border: 1px solid #d1d9e0;
  border-radius: 12px;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
  box-shadow:
          0 4px 20px rgba(0, 0, 0, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* هدر شبیه محیط IDE */
#single_blog .post-content pre:before {
  content: '';
  display: block;
  height: 30px;
  background: linear-gradient(90deg, #e1e4e8 0%, #f1f3f4 100%);
  border-bottom: 1px solid #d1d5da;
  position: relative;
}

/* دکمه‌های رنگی شبیه macOS */
#single_blog .post-content pre:after {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow:
          18px 0 0 #ffbd2e,
          36px 0 0 #28ca42;
}

#single_blog .post-content pre code {
  display: block;
  padding: 20px;
  background: transparent;
  border: none;
  color: #24292f;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
  box-shadow: none;
}

#single_blog .post-content pre code:before,
#single_blog .post-content pre code:after {
  display: none;
}

/* رنگ‌بندی سینتکس ساده برای حالت لایت */
#single_blog .post-content pre code .keyword { color: #d73a49; }
#single_blog .post-content pre code .string { color: #032f62; }
#single_blog .post-content pre code .comment { color: #6a737d; font-style: italic; }
#single_blog .post-content pre code .number { color: #005cc5; }
#single_blog .post-content pre code .function { color: #6f42c1; }

/* انیمیشن ظهور */
#single_blog .post-content code,
#single_blog .post-content pre {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* اسکرول بار سفارشی برای کدهای طولانی */
#single_blog .post-content pre code::-webkit-scrollbar {
  height: 8px;
}

#single_blog .post-content pre code::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 4px;
}

#single_blog .post-content pre code::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #1976d2, #2196f3);
  border-radius: 4px;
}

#single_blog .post-content pre code::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #1565c0, #1976d2);
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
  #single_blog .post-content code {
    font-size: 13px;
    padding: 3px 8px;
  }

  #single_blog .post-content pre code {
    font-size: 13px;
    padding: 15px;
  }
}

/* حالت فوکوس برای دسترسی */
#single_blog .post-content code:focus,
#single_blog .post-content pre:focus {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

/* متن انتخابی */
#single_blog .post-content code::selection,
#single_blog .post-content pre code::selection {
  background: rgba(25, 118, 210, 0.2);
  color: #0d47a1;
}

/* افکت اضافی برای تمایز بیشتر */
#single_blog .post-content code {
  backdrop-filter: blur(2px);
}

#single_blog .post-content pre {
  backdrop-filter: blur(4px);
}
