/* News Blocks — base styles. Plain CSS so it works with no build step.
   Migrate to assets/src/news.scss + Vite when you want nesting/variables. */

.news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(var(--news-cols, 3), 1fr);
}

.news-grid[data-columns="2"] {
  --news-cols: 2;
}

.news-grid[data-columns="3"] {
  --news-cols: 3;
}

.news-grid[data-columns="4"] {
  --news-cols: 4;
}

.news-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card__link:hover {
  text-decoration: unset;
}

.news-card__body {
  padding: 16px 20px 24px;
}

.news-card__date {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #090402;
  background: #fdd835;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-card__title {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
  color: #090402;
  font-weight: 700;
}

.news-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.news-grid__pagination {
  margin-top: 40px;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.news-grid__pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: 14px;
  color: #090402;
  transition: background 0.2s ease;
}

.news-grid__pagination .page-numbers:hover {
  background: #f5f5f5;
}

.news-grid__pagination .current {
  background: #fdd835;
  color: #090402;
  border-color: #fdd835;
  font-weight: 700;
}

.news-grid__empty {
  min-height: 200px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

/* Featured section */
div.vc_row:has(.news-featured) {
  background: #fdd835;
}

.news-featured {
  background: #fdd835;
  margin: 50px 0;
  padding: 25px 20px 25px 30px;
}

.news-featured__heading {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0px;
  color: #000000;
  margin-bottom: 25px;
}

.news-card--highlight {
  border-left: 5px solid #090402;
}

.news-card--highlight .news-card__title {
  color: #090402;
}

.news-card--highlight .news-card__date {
  background: #090402;
  color: #fdd835;
}

/* Single detail banner */
article.news-single {
  max-width: 1170px;
  margin: 40px auto 0;
  padding: 30px 30px 30px 30px;
}

.news-single__date {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #090402;
  background: #fdd835;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 20px;
}

.news-single__content {
  font-size: 16px;
  color: #090402;
}

.news-single__content * {
  color: #090402;
}

.news-single__content img {
  display: block;
  margin: 28px 0;
  border-radius: 4px;
}

.news-single__content figure {
  margin: 28px 0;
}

.news-single__content figcaption {
  font-size: 13px;
  opacity: 0.55;
  text-align: center;
  margin-top: 6px;
}

.news-single__footer {
  max-width: 1170px;
  margin: 0 auto 50px;
  padding: 20px 30px 0;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

div.section:has(.news-featured) {
  background-color: #fdd835;
}
