/* Related Post by Vinayak Bibyan — v1.0.5 PUBLIC (SAFE) */

.rpb-related{
  margin:28px 0;
  padding:20px 18px;
  background:#fff;
  border-top:1px solid transparent;
  border-image:linear-gradient(90deg,#2c2c2c,#e6e6e6) 1;
  border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.045);
  position:relative;
}

.rpb-below{
  margin-bottom:14px;
}

.rpb-related::before{
  content:attr(data-heading);
  position:absolute;
  top:0;
  left:50%;
  transform:translate(-50%,-50%);
  background:#fff;
  padding:0 12px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.25px;
}

.rpb-thumb-wrap{
  width:140px;
  height:90px;
  border-radius:10px;
  overflow:hidden;
  background:#f4f4f5;
  flex-shrink:0;
}

.rpb-thumb-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.rpb-inline-link{
  display:flex;
  gap:14px;
  align-items:center;
  text-decoration:none;
  color:inherit;
}

.rpb-inline h3{
  font-size:15px;
  font-weight:500;
  line-height:1.35;
  display:flex;
  align-items:center;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.rpb-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

@media(max-width:820px){
  .rpb-grid{grid-template-columns:1fr}
}

.rpb-card{
  border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.04);
  overflow:hidden;
}

.rpb-card a{
  display:flex;
  gap:14px;
  padding:14px;
  text-decoration:none;
  color:inherit;
  align-items:flex-start;
}

.rpb-card-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rpb-card-body h3{
  font-size:15.5px;
  font-weight:500;
  line-height:1.35;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.rpb-meta{
  margin-top:4px;
  font-size:12px;
  color:#6b7280;
  display:flex;
  gap:10px;
  align-items:center;
}

.rpb-meta-author{
  display:flex;
  gap:6px;
  align-items:center;
}

.rpb-meta-author img{
  width:18px;
  height:18px;
  border-radius:50%;
  object-fit:cover;
}

.rpb-meta-date{
  white-space:nowrap;
}
