/* Blog article sidebar – other articles widget */
.article-page-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.article-main {
  flex: 1 1 0;
  min-width: 0;
}

.article-sidebar {
  flex: 0 0 272px;
  width: 272px;
  position: sticky;
  top: 96px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e8e0d0;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

.sidebar-widget__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3530;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #9c6f0a;
}

.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-post {
  padding: 12px 0;
  border-bottom: 1px solid #f0ece4;
}
.sidebar-post:first-child { padding-top: 0; }
.sidebar-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity .18s;
}
.sidebar-post__link:hover { opacity: .76; }

.sidebar-post__img {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f0ea;
}
.sidebar-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-post__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.sidebar-post__date {
  font-size: .72rem;
  color: #9aaa9f;
  line-height: 1.4;
}

.sidebar-post__title {
  font-size: .875rem;
  font-weight: 600;
  color: #1e3530;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-widget__more {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 9px 16px;
  border: 1.5px solid #9c6f0a;
  border-radius: 24px;
  color: #9c6f0a;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.sidebar-widget__more:hover {
  background: #9c6f0a;
  color: #fff;
}

@media (max-width: 900px) {
  .article-page-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .article-main {
    flex: none;
    width: 100%;
  }
  .article-sidebar {
    flex: none;
    width: 100%;
    position: static;
    top: auto;
  }
}

/* فاصله خالی بالای صفحه مقاله حذف شود */
body.page-blog .article-section {
  padding-top: 16px;
}

/* سایدبار «مطالب دیگر» در سمت چپ مطلب قرار بگیرد */
@media (min-width: 901px) {
  .article-page-layout > .article-main { order: 1; }
  .article-page-layout > .article-sidebar { order: 2; }
}
