/* ═══ Gender Pods — News [gender_news] ═══ */

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

/* ── Top: featured + side list ── */
.gp-news__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* Up to 1024px (Tailwind lg): featured article spans full width, list stacks below.
   From 1024px and up: featured on the left, list on the right. */
@media (min-width: 1024px) {
  .gp-news__top {
    grid-template-columns: 1fr 2fr;
    gap: 32px;
  }
}

/* ── Featured article ── */
.gp-news__featured-link {
  text-decoration: none;
  color: inherit;
}

.gp-news__featured > a {
  background-color: var(--wp--preset--color--highlight);
  display: block;
  text-align: right;
}

.gp-news__featured-figure {
  margin: 0;
  display: inline-block;
  vertical-align: top;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--wp--preset--color--highlight);
}

/* From 1024px the figure fills its grid column instead of being capped. */
@media (min-width: 1024px) {
  .gp-news__featured-figure {
    max-width: none;
  }
}

.gp-news__featured-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-news__featured-title {
  margin-top: 12px;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
}

.gp-news__featured-title a {
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gp-news__featured-title a:hover {
  color: var(--wp--preset--color--primary);
}

@media (min-width: 1280px) {
  .gp-news__featured-title {
    font-size: 1.5rem;
  }
}

/* ── News items list ── */
.gp-news__side,
.gp-news__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gp-news-item {
  padding: 1rem 0;
}

.gp-news-item__date {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--wp--preset--color--dark-gray, #737373);
}

.gp-news-item__title {
  margin: 0;
  font-family: var(--wp--preset--font-family--montserrat, "Montserrat", sans-serif);
  font-size: var(--wp--preset--font-size--t2, 20px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.gp-news-item__title a:hover {
  color: var(--wp--preset--color--primary, #f05023);
}

/* ── Important items (mirror sidebar "featured" style) ── */
.gp-news-item--important .gp-news-item__date {
  display: inline-block;
  background: var(--wp--preset--gradient--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gp-news-item--important .gp-news-item__title a {
  font-weight: 600;
}

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

.js-gp-news-load-more.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

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

.gp-news__pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--wp--preset--color--contrast);
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--contrast);
  transition: all 0.2s ease;
}

.gp-news__pagination .page-numbers.current {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

.gp-news__pagination .page-numbers:hover:not(.current):not(.dots) {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.gp-news__pagination .page-numbers.dots {
  border: none;
  width: auto;
  height: auto;
}
