.custom-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  & p {
    margin-bottom: 0px;
  }
}

.custom-post-list__item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.custom-post-list__item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.custom-post-list__item:hover .custom-taxonomy-list__explore-btn {
  background-color: rgb(243 244 246);
}

.custom-post-list__image {
  flex-shrink: 0;

  & img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
  }
}

.custom-post-list__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-post-list__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.custom-post-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #666;
}

.custom-post-list__date,
.custom-post-list__modified-date,
.custom-post-list__author {
  display: inline-flex;
  align-items: center;
}

.custom-post-list__author-avatar {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  & img {
    border-radius: 50%;
  }
}

.custom-post-list__author-bio {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #0073aa;

  & p {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

.custom-post-list__content-full,
.custom-post-list__excerpt {
  line-height: 1.6;
  color: #444;
}

.custom-post-list__categories,
.custom-post-list__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.custom-post-list__category,
.custom-post-list__tag {
  background: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.custom-post-list__tag {
  background: #e6f3ff;
  color: #0073aa;
}

.custom-post-list__post-id,
.custom-post-list__post-type,
.custom-post-list__post-status,
.custom-post-list__post-slug,
.custom-post-list__comment-count,
.custom-post-list__read-time {
  font-size: 0.875rem;
  color: #666;
}

.custom-post-list__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.custom-post-list__read-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-inline: 6px;
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;

  & .arrow-right {
    transition: transform 0.2s ease;
  }

  &:hover {
    color: #005a87;

    & .arrow-right {
      transform: translateX(4px);
    }
  }
}
