.cnjrly-news-feed {
  display: grid;
  gap: 1.5rem;
}

.cnjrly-news-feed__entry {
  margin: 0;
}

.cnjrly-news-feed__item {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--cj-radius-card, 14px);
  background: #fff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cnjrly-news-feed__item:hover,
.cnjrly-news-feed__item:focus {
  color: inherit;
  text-decoration: none;
}

.cnjrly-news-feed__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}

.cnjrly-news-feed__item:focus-visible {
  outline: 2px solid var(--cj-accent, #c94a2f);
  outline-offset: 2px;
}

.cnjrly-news-feed__item--no-thumb {
  grid-template-columns: 1fr;
}

.cnjrly-news-feed__thumb {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--bb-content-alternate-background-color, #f7f7f7);
  align-self: stretch;
  position: relative;
}

.cnjrly-news-feed__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.cnjrly-news-feed__content {
  min-width: 0;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cnjrly-news-feed__type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cj-accent, #c94a2f);
  margin-bottom: 0.35rem;
}

.cnjrly-news-feed .cnjrly-news-feed__title {
  margin: 0 0 0.42rem;
  font-family: "IBM Plex Serif", serif;
  font-weight: 600;
  font-size: 1.75rem !important;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,0.88);
  transition: color 0.16s ease;
}

.cnjrly-news-feed .cnjrly-news-feed__item:hover .cnjrly-news-feed__title,
.cnjrly-news-feed .cnjrly-news-feed__item:focus-visible .cnjrly-news-feed__title {
  color: var(--cj-accent, #c94a2f);
}

.cnjrly-news-feed__date {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.65);
  margin-bottom: 0.22rem;
}

.cnjrly-news-feed__meta {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.6);
}

.cnjrly-news-feed__pagination {
  margin-top: 2rem;
}

.cnjrly-news-feed__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  margin: 0 0.2rem 0.4rem 0;
  padding: 0 0.75rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  text-decoration: none;
}

.cnjrly-news-feed__pagination .current {
  font-weight: 700;
  border-color: var(--cj-accent, #c94a2f);
}


@media (min-width: 783px) {
  .cnjrly-news-feed__item {
    align-items: stretch;
  }

  .cnjrly-news-feed__thumb {
    align-self: stretch;
    height: auto;
    min-height: 100%;
  }

  .cnjrly-news-feed__thumb img {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .cnjrly-news-feed .cnjrly-news-feed__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.05em * 2);
  }
}

@media (max-width: 782px) {
  .cnjrly-news-feed__item {
    grid-template-columns: 1fr;
  }

  .cnjrly-news-feed__thumb {
    height: auto;
    min-height: 0;
  }

  .cnjrly-news-feed__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .cnjrly-news-feed__content {
    padding: 0.95rem 1rem 1.05rem;
  }

  .cnjrly-news-feed .cnjrly-news-feed__title {
    font-size: 1.75rem !important;
  }
}
