/* related-posts.css — wallprintgear.com
 * Related posts cards. Supports both post-optimizer grid (structure A)
 * and site Bootstrap-row markup (structure B). Brand #F97316. */

/* ================= Shared section ================= */
.related-posts-section {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid #E2E8F0;
  margin-top: 3rem;
}

.related-posts-header {
  text-align: center;
  margin-bottom: 2rem;
}

.related-posts-title {
  font-family: 'Archivo','Inter Tight',system-ui,sans-serif;
  color: #0F172A;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

/* ================= Structure A: post-optimizer grid ================= */
.related-posts-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-posts-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-posts-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.related-posts-card-media {
  display: block;
  line-height: 0;
}

.related-posts-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

.related-posts-card-content {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-posts-card-title {
  font-family: 'Archivo','Inter Tight',system-ui,sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-posts-card-link {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.18s ease;
}

.related-posts-card-link:hover {
  color: #F97316;
}

.related-posts-card-excerpt {
  color: #1F2937;
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= Structure B: Bootstrap row ================= */
.related-post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.related-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

.related-post-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-post-category {
  color: #F97316;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.related-post-title {
  font-family: 'Archivo','Inter Tight',system-ui,sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}

.related-post-title a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.18s ease;
}

.related-post-title a:hover {
  color: #F97316;
}

.related-post-excerpt {
  color: #1F2937;
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= Responsive ================= */
@media (max-width: 991px) {
  .related-posts-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .related-posts-list {
    grid-template-columns: 1fr;
  }
  .related-posts-section {
    padding: 2.5rem 0 1.5rem;
  }
}
