.crb-related-posts-wrapper {
  margin: 20px 0;
}

.crb-related-posts {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  transition: opacity 0.3s ease;
}

.crb-related-posts.loading {
  pointer-events: none;
}

.crb-related-posts li {
  margin-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.crb-related-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.crb-related-posts a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  padding: 10px;
  border-radius: 6px;
}

.crb-related-posts a:hover {
  background: #f8f8f8;
  transform: translateX(5px);
}

.crb-related-posts .post-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin-right: 15px;
  overflow: hidden;
  border-radius: 6px;
}

.crb-related-posts .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.crb-related-posts a:hover .post-thumbnail img {
  transform: scale(1.1);
}

.crb-related-posts .post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.crb-related-posts .post-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crb-related-posts .post-date {
  font-size: 13px;
  color: #888;
}

/* Pagination Styles */
.crb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.crb-pagination button {
  padding: 8px 15px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.crb-pagination button:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #999;
}

.crb-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crb-pagination .crb-page-numbers {
  display: flex;
  gap: 5px;
}

.crb-pagination .crb-page-num {
  min-width: 40px;
}

.crb-pagination .crb-page-num.active {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}

.crb-pagination .crb-prev,
.crb-pagination .crb-next {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .crb-related-posts .post-thumbnail {
    width: 60px;
    height: 60px;
    margin-right: 12px;
  }
  
  .crb-related-posts .post-title {
    font-size: 14px;
  }
  
  .crb-related-posts .post-date {
    font-size: 12px;
  }
  
  .crb-pagination {
    flex-wrap: wrap;
  }
  
  .crb-pagination button {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .crb-related-posts a {
    padding: 8px;
  }
  
  .crb-related-posts .post-thumbnail {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }
}