/* Related Topics Widget Styling */
.related-topics {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-family: inherit;
  box-sizing: border-box;
}
.related-topics h2 {
  font-size: 1rem;
  font-weight: 600;
  color:#444;
  margin-bottom:20px;
  position:relative;
}
.related-topics h2::before {
  content:"";
  width:3px;
  height:16px;
  background:#d12b2b;
  border-radius:2px;
  display:inline-block;
  margin-right:6px;
}
.articles-wrapper {
  display: flex;
  gap:20px;
  flex-wrap: wrap;
}
.article-card {
  width: 100%;
  max-width: 100%;
  background:#fff;
  border:1px solid #e0e0e0;
  border-radius:12px;
  box-shadow:0 3px 8px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}
.article-card:hover { transform:translateY(-4px); }
.article-card img { width:100%; height:auto; object-fit:cover; }
.article-card .content { padding:12px; text-align:center; }
.article-card h3 { font-size:0.9rem; font-weight:600; color:#444; margin:0 0 10px; text-decoration:none; }
.price-badge { display:inline-block; background:#d12b2b; color:#fff; font-size:0.7rem; font-weight:600; padding:3px 8px; border-radius:4px; transition: transform 0.2s ease, background 0.3s ease; }
.price-badge:hover { background:#a52020; transform:scale(1.05); }
@media (min-width: 768px) {
  .article-card { flex: 1 1 calc(33.333% - 13.33px); }
}
@media (max-width: 767px) {
  .articles-wrapper { flex-direction: column; gap:16px; }
  .articles-wrapper .article-card:not(:first-child) { display: none; }
  .article-card h3 { font-size:0.85rem; }
  .price-badge { font-size:0.65rem; padding:2px 6px; }
}
