/* blog.css — styles for article shortcodes (Sinotop Fence) */

/* General article title & meta */
.stf-article-title {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 15px;
  font-weight: 600;
  color: #222;
}
.stf-article-meta {
  font-size: 14px;
  color: #6b6b6b;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.stf-article-meta .sep { color:#d0d0d0; padding:0 6px; }
.stf-meta-date { display:inline-block; padding-left:30px;background: url("../images/blog-date-icon.webp") no-repeat left center;background-size:20px 20px;}
.stf-meta-author { display:inline-block; padding-left:30px;background: url("../images/blog-author-icon.webp") no-repeat left center;background-size:20px 20px;}
/* Featured image */
.stf-article-featured-wrap { margin-bottom: 18px; }
.stf-article-featured { width:100%; height:auto; display:block; border-radius:6px; }

/* Article content */
.stf-article-content {
  line-height: 2;
  color: #333;
  border-top:#ececec solid 1px;
  padding:40px 0 0 0;
  margin:20px 0 0 0;
}
.stf-article-content img { max-width:100%; height:auto; display:block; margin:16px 0; }
.stf-article-content h2 { font-size:30px; line-height:1.2;font-weight:600;color:#0088cd;padding:10px 0 10px 15px;border:#ececec solid 1px;background:#f2f4fe;border-radius:5px;margin:40px 0 30px 0;}
/*.stf-article-content h2 { 
    font-size:30px; line-height:1.2;font-weight:600;padding:10px 0 10px 20px;background:#0088cd;color:#fff;position: relative;margin:40px 0 30px 25px;
}
.stf-article-content h2::before { 
    left:0;top:0;height:100%;width:15px;content:"";position: absolute;background:#0088cd;margin-left:-25px;
}*/
/*.stf-article-content h3 { font-size:24px; margin:20px 0 15px; }*/
.stf-article-content h3 {position: relative;font-size:24px; margin:20px 0 15px 0; padding:0 0 10px 0;line-height:1.2; }
.stf-article-content h3::after {left:0;bottom:0;height:2px;width:100px;content:"";position: absolute;background:#0088cd; }
.stf-article-content h4 { font-size:20px; margin:20px 0 15px; }

/* TOC */
.stf-article-toc {
  border-left: 4px solid #f0f0f0;
  background: #fbfbfb;
  padding: 12px;
  margin-bottom: 18px;
  border-radius:6px;
}
.stf-article-toc .toc-title { font-weight:600; margin-bottom:8px; }
.stf-article-toc ul { list-style:none; padding:0; margin:0; font-size:14px; }
.stf-article-toc li { margin-bottom:6px; }
.stf-article-toc a { text-decoration:none; color:#2a6ebb; }
.stf-article-toc li .toc-h3 { padding-left:10px; }

/* Author box */
.stf-author-box { display:flex; gap:12px; margin:28px 0; align-items:flex-start; }
.stf-author-box .author-avatar img { border-radius:50%; width:84px; height:84px; object-fit:cover; }
.stf-author-box .author-info .author-name { font-weight:700; margin-bottom:6px; }
.stf-author-box .author-bio { color:#555; font-size:14px; }

/* Share */
.stf-share-wrap { margin:18px 0; display:flex; align-items:center; gap:12px; }
.stf-share-label { font-weight:600; color:#444; }
.stf-share-buttons a { margin-right:8px; text-decoration:none; padding:6px 10px; border-radius:4px; background:#f5f5f5; font-size:13px; color:#333; }

/* Related products */
.stf-related-products { margin-top:20px; }
.stf-related-products h3 { font-size:16px; margin-bottom:10px; }
.stf-related-products-list { display:flex; gap:12px; list-style:none; padding:0; margin:0; flex-wrap:wrap; }
.stf-related-product-item { width:48%; }
.stf-related-product-item img { width:100%; height:auto; border-radius:6px; display:block; }
.stf-related-product-item .name { display:block; margin-top:6px; font-size:14px; color:#222; }

/* Related articles & recent */
.stf-related-articles h3, .stf-recent-same-cat h3 { font-size:16px; margin-bottom:10px; }
.stf-recent-same-cat ul, .stf-related-articles ul { list-style:none; padding:0; margin:0; }
.stf-recent-same-cat li, .stf-rel-article { margin-bottom:8px; }

/* Post nav */
.stf-post-nav { display:flex; justify-content:space-between; gap:12px; margin-top:28px; }
.stf-post-nav .prev a, .stf-post-nav .next a { text-decoration:none; color:#2a6ebb; }

/* Responsive tweaks */
@media (max-width:768px) {
  .stf-related-product-item { width:100%; }
  .stf-author-box { flex-direction:row; }
}
