/*========================================
  Related Posts (You May Like)
========================================*/
.related-posts {
  margin: 32px 0 0;
}

.related-posts h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--card-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-color);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .related-post img {
    max-height: 90px !important;
}
}

.related-post {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--divider-color);
}

.related-post a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-post img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  max-height: 150px
}

.related-post-title {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--card-text);
  padding: 10px 12px;
  line-height: 1.35;
  margin: 0;
  border-top: 1px solid var(--divider-color);
}

.related-post a:hover .related-post-title {
  color: var(--accent-color);
}
