/*
 * Newsroom page overrides — reuses resources-grid.css + blog YMC filter styles.
 * Scoped to .pm-newsroom (see utils.php body_class).
 */

/* Featured: reuse .featured-resource-container horizontal layout (Resources page) */
.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__inner::before {
  content: none;
  display: none;
}

/* Featured inner must stay grid — do not inherit YMC grid flex rules below */
.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__inner {
  display: grid !important;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 50px;
  row-gap: 15px;
  align-items: start;
  min-height: 280px;
}

.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__tags {
  grid-column: 1;
  grid-row: 1;
}

.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__tags
  .tag {
  display: inline;
  padding: 0;
  border: none !important;
  border-radius: 0;
  background: transparent;
  color: #bff67e !important;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__tags
  .tag:hover {
  color: #d4ff8a !important;
  text-decoration: none;
}

.et-db.pm-newsroom
  #et-boc.et-boc
  .featured-resource-container.gw-newsroom-featured
  .post-card__title,
.pm-newsroom
  #et-boc.et-boc
  .featured-resource-container.gw-newsroom-featured
  .post-card__title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0 !important;
  color: #fff !important;
  line-height: 1.15;
}

.et-db.pm-newsroom
  #et-boc.et-boc
  .featured-resource-container.gw-newsroom-featured
  .post-card__title
  a,
.pm-newsroom
  #et-boc.et-boc
  .featured-resource-container.gw-newsroom-featured
  .post-card__title
  a {
  color: #fff !important;
  text-decoration: none;
}

.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__title {
  grid-column: 1;
  grid-row: 2;
}

.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__date {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  color: var(--white80, rgba(255, 255, 255, 0.8)) !important;
  line-height: 1.4;
  margin: 0;
}

.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__image {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  min-height: 200px;
  aspect-ratio: auto;
}

.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__image
  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Hide green Download/Read pill on featured card — date replaces it (mockup) */
.pm-newsroom
  .featured-resource-container.gw-newsroom-featured
  .post-card__read-more {
  display: none !important;
}

@media (max-width: 768px) {
  .pm-newsroom
    .featured-resource-container.gw-newsroom-featured
    .post-card__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .pm-newsroom
    .featured-resource-container.gw-newsroom-featured
    .post-card__image {
    grid-column: 1;
    grid-row: 2;
  }

  .pm-newsroom
    .featured-resource-container.gw-newsroom-featured
    .post-card__tags {
    grid-column: 1;
    grid-row: 1;
  }

  .pm-newsroom
    .featured-resource-container.gw-newsroom-featured
    .post-card__title {
    grid-column: 1;
    grid-row: 3;
  }

  .pm-newsroom
    .featured-resource-container.gw-newsroom-featured
    .post-card__date {
    grid-column: 1;
    grid-row: 4;
  }
}

/* YMC grid cards only — flex column for date at bottom (NOT featured card) */
.pm-newsroom [class*='ymc-filter-'] .posts-grid .post-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pm-newsroom [class*='ymc-filter-'] .posts-grid .post-card__date {
  order: 3;
  display: block;
  align-self: flex-start;
  color: var(--white80, rgba(255, 255, 255, 0.8));
  margin: 0;
  margin-top: auto;
  padding: 0;
  padding-top: 12px;
  text-decoration: none;
}

.pm-newsroom [class*='ymc-filter-'] .posts-grid .post-card__read-more {
  order: 3;
  margin-top: auto;
}

/* Category pills inside clickable cards */
.pm-newsroom .gw-newsroom-card-clickable .gw-newsroom-category-link {
  position: relative;
  z-index: 2;
}
