/**
 * Single post/CPT: "More content of the same type" section.
 * Reuses homepage AJAX grid/card look (nhp-posts-ajax-*) scoped here.
 */

.single-more-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--nhp-border, #e5e5e5);
}

.single-more-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--nhp-text, #1a1a1a);
}

/* Grid: same as homepage AJAX block */
.single-more-section .single-more-grid.nhp-posts-ajax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

.single-more-section .nhp-posts-ajax-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--nhp-border, #e5e5e5);
}

.single-more-section .nhp-posts-ajax-item:nth-last-child(-n+3) {
  border-bottom: none;
  padding-bottom: 0;
}

.single-more-section .nhp-posts-ajax-image {
  overflow: hidden;
  border-radius: var(--nhp-radius, 8px);
  margin-bottom: 12px;
  aspect-ratio: 16 / 10;
  background: var(--nhp-border, #e5e5e5);
}

.single-more-section .nhp-posts-ajax-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-more-section .nhp-posts-ajax-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.single-more-section .nhp-posts-ajax-title a {
  color: var(--nhp-text, #1a1a1a);
}

.single-more-section .nhp-posts-ajax-item .nhp-excerpt {
  font-size: 14px;
  color: var(--nhp-text-secondary, #666);
  -webkit-line-clamp: 2;
  margin-bottom: 8px;
}

.single-more-section .nhp-posts-ajax-item .nhp-date {
  font-size: 12px;
  color: var(--nhp-text-secondary, #666);
}

.single-more-section .single-more-load-wrapper {
  margin-top: 32px;
  text-align: center;
}

.single-more-section .nhp-load-more-spinner {
  margin-top: 16px;
  color: var(--nhp-text-secondary, #666);
  font-size: 14px;
}

.single-more-section .nhp-no-more,
.single-more-section .nhp-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: var(--nhp-text-secondary, #666);
  font-size: 14px;
}

/* Tablet: 2 columns */
@media (max-width: 1023px) {
  .single-more-section .single-more-grid.nhp-posts-ajax-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }

  .single-more-section .nhp-posts-ajax-item:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--nhp-border, #e5e5e5);
    padding-bottom: 24px;
  }

  .single-more-section .nhp-posts-ajax-item:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .single-more-section .single-more-grid.nhp-posts-ajax-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .single-more-section .nhp-posts-ajax-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nhp-border, #e5e5e5);
  }

  .single-more-section .nhp-posts-ajax-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .single-more-section .nhp-posts-ajax-item:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--nhp-border, #e5e5e5);
    padding-bottom: 20px;
  }

  .single-more-section .nhp-posts-ajax-item:nth-last-child(-n+1) {
    border-bottom: none;
    padding-bottom: 0;
  }
}
