/* Home News block */
.wp-block-gender-home-news {
  max-width: 1440px;
  margin: 48px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Heading */
.home-news__header {
  margin-bottom: 32px;
}

.home-news__title {
  margin: 0;
  font-family: var(--wp--preset--font-family--core-rhino, inherit);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--contrast, #111);
  text-transform: uppercase;
}

/* Layout: stacked on mobile, two columns on desktop */
.home-news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Archive continuation pages (no featured hero): single full-width list */
.home-news__grid--list-only {
  grid-template-columns: 1fr;
}

/* Featured card */
.home-news__feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.home-news__feature-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.home-news__feature-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.home-news__feature-image--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--wp--preset--color--highlight, #ffff42);
}

.home-news__feature-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--wp--preset--color--contrast, #111);
}

.home-news__feature-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-news__feature-title a:hover {
  color: var(--wp--preset--color--primary, #f05023);
}

/* Featured date gets the brand gradient (matches «important» styling) */
.home-news__feature .home-news__date,
.home-news__feature--important .home-news__date {
  background: var(--wp--preset--gradient--brand-gradient, linear-gradient(to right, var(--wp--preset--color--primary, #f05023), var(--wp--preset--color--secondary, #3b3bff)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  width: 150px;
}

/* List */
.home-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-news__item {
  margin: 0;
}

.home-news__date {
  display: block;
  margin: 0 0 6px;
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.2;
  color: var(--wp--preset--color--dark-gray, #737373);
}

.home-news__item-title {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--wp--preset--color--contrast, #111);
}

.home-news__item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-news__item-title a:hover {
  color: var(--wp--preset--color--primary, #f05023);
}

/* «Important» items: gradient date + bold title */
.home-news__item--important .home-news__date {
  background: var(--wp--preset--gradient--brand-gradient, linear-gradient(to right, var(--wp--preset--color--primary, #f05023), var(--wp--preset--color--secondary, #3b3bff)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.home-news__item--important .home-news__item-title {
  font-weight: 700;
}

/* Actions / load-more button */
.home-news__actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Desktop: two columns, hide load-more (per design — desktop list shows all) */
@media (min-width: 1024px) {
  .wp-block-gender-home-news {
    margin: 64px auto;
    padding: 0 40px;
  }

  .home-news__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    column-gap: 64px;
    align-items: start;
  }

  .home-news__grid--list-only {
    grid-template-columns: 1fr;
  }

  /* Archive flow layout: featured floats left, list wraps around it and
     continues full-width below the featured card. */
  .home-news__grid--flow {
    display: block;
  }

  .home-news__grid--flow::after {
    content: "";
    display: block;
    clear: both;
  }

  .home-news__grid--flow .home-news__feature {
    float: left;
    width: calc(100% / 3);
    margin-right: 56px;
    margin-bottom: 28px;
  }

  .home-news__grid--flow .home-news__list {
    display: block;
  }

  .home-news__grid--flow .home-news__item {
    margin-bottom: 24px;
  }

  .home-news__grid--flow .home-news__item:last-child {
    margin-bottom: 0;
  }

  .home-news__feature {
    gap: 16px;
  }

  .home-news__feature-media {
    aspect-ratio: 1 / 1;
  }

  .home-news__list {
    gap: 24px;
  }

  .home-news__actions {
    display: none;
  }
}

/* Archive mode: footer with load-more button + numeric pagination */
.home-news__footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 16px;
}

.home-news__load-more-wrap {
  display: flex;
  justify-content: center;
}

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

.home-news__pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.home-news__pagination .page-numbers.current,
.home-news__pagination .page-numbers.is-loaded {
  background-color: var(--wp--preset--color--primary, #f05023);
  border-color: var(--wp--preset--color--primary, #f05023);
  color: var(--wp--preset--color--base, #fff);
}

.home-news__pagination .page-numbers:hover:not(.current):not(.is-loaded):not(.dots) {
  border-color: var(--wp--preset--color--primary, #f05023);
  color: var(--wp--preset--color--primary, #f05023);
}

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