/* ═══ Gender Pods — Section articles [gender_posts] ═══ */

.gp-posts {
  max-width: var(--wp--style--global--wide-size, 1100px);
  margin: 0 auto;
}

/* ── Utility (kept local so the component is self-contained) ── */
.gp-posts .gp-hidden {
  display: none !important;
}

/* ── Article list ── */
.gp-posts__item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  align-items: flex-start;
}

.gp-posts__thumb {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  overflow: hidden;
  display: block;
  background: #ddd;
}

.gp-posts__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-posts__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.gp-posts__title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.gp-posts__title a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast, #000);
  transition: color 0.2s;
}

.gp-posts__title a:hover {
  color: var(--wp--preset--color--primary, #e53e3e);
}

.gp-posts__authors {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--contrast, #000);
  opacity: 0.6;
}

.gp-posts__empty {
  margin: 24px 0;
}

/* ── Footer: load more + pagination ── */
.gp-posts__footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 48px;
}

/* Load-more button uses the theme's standard .main-button (secondary). */

/* ── Pagination ── */
.gp-posts__pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.gp-posts__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--wp--preset--color--contrast, #000);
  border-radius: 50%;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--contrast, #000);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.gp-posts__page.is-current {
  background-color: var(--wp--preset--color--primary, #e53e3e);
  border-color: var(--wp--preset--color--primary, #e53e3e);
  color: var(--wp--preset--color--base, #fff);
  cursor: default;
}

.gp-posts__page:hover:not(.is-current):not(.gp-posts__page--dots) {
  border-color: var(--wp--preset--color--primary, #e53e3e);
  color: var(--wp--preset--color--primary, #e53e3e);
}

.gp-posts__page--dots {
  border: none;
  width: auto;
  height: auto;
  cursor: default;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .gp-posts__thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
  }
}
