/* Related Posts Styles */

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* 태블릿 뷰 (651px - 950px) */
@media screen and (min-width: 651px) and (max-width: 950px) {
  .related-posts {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* 모바일 뷰 (650px 이하) */
@media screen and (max-width: 650px) {
  .related-posts {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Legacy post 페이지에서는 전체 너비로 확장 */
  .legacy-post .related-posts {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .legacy-post .related-posts h3 {
    padding-left: 0;
    padding-right: 0;
  }
}

.related-posts h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}