/* ==========================================================================
   NEWS FEED — Magazine-style article list for the /news page.
   ========================================================================== */

.otb-news-feed {
  max-width: var(--content-max-width);
  padding: var(--spacing-lg);
}

/* ---------- ARTICLE ITEM ---------- */

.otb-news-item {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.otb-news-item:first-child {
  padding-top: 0;
}

.otb-news-item:last-child {
  border-bottom: none;
}

/* ---------- ARTICLE WITH IMAGE — inline thumbnail ---------- */

.otb-news-item:has(.otb-news-item__image) {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--spacing-md);
}

.otb-news-item__image {
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  align-self: flex-start;
}

.otb-news-item__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.otb-news-item__content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .otb-news-item:has(.otb-news-item__image) {
    flex-direction: column;
  }

  .otb-news-item__image {
    width: 100%;
  }

  .otb-news-item__image img {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- CONTENT ---------- */

.otb-news-item__date {
  font-size: var(--font-size-2xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.otb-news-item__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  margin: 0 0 var(--space-3) 0;
}

.otb-news-item__title a {
  color: var(--color-text-heading, var(--color-dark));
  text-decoration: none;
}

.otb-news-item__title a:hover {
  color: var(--color-primary);
}

.otb-news-item__excerpt {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary, var(--color-gray-600));
  margin-bottom: var(--space-3);
}

.otb-news-item__excerpt p {
  margin: 0;
}

/* Strip Drupal field wrappers */
.otb-news-item__excerpt .field {
  display: inline;
}

.otb-news-item__read-more {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.otb-news-item__read-more:hover {
  text-decoration: underline;
}

/* ---------- PAGER ---------- */

.otb-news-page .pager__items {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  padding: var(--spacing-lg) 0 0;
  margin: 0;
}

.otb-news-page .pager__item a {
  color: var(--color-text-primary, var(--color-gray-600));
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
}

.otb-news-page .pager__item a:hover {
  color: var(--color-primary);
  background: var(--color-bg-surface, var(--color-gray-100));
}

.otb-news-page .pager__item.is-active a {
  color: var(--color-white);
  background: var(--color-primary-btn);
}
