/* Editorial pages (Kabar Tani index and articles). Loaded after the reference stylesheets; never edit those. */

/* Text-only news card (article without a photo): same footprint as the photo cards in the grid, so the
   row stays aligned. The card stretches to the row height; the link sits at the bottom. */
.news-card.news-card-text {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 30px 28px 28px;
  overflow: hidden;
}
.news-card.news-card-text::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--green);
}
.news-card.news-card-text .news-card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 0 0;
}
.news-card.news-card-text h3 { font-size: 26px; line-height: 1.2; margin-top: 22px; color: var(--forest-deep, var(--ink)); }
.news-card.news-card-text .news-meta { justify-content: space-between; }
.news-card.news-card-text .text-link { margin-top: auto; padding-top: 21px; }
.news-card.news-card-text p { margin-bottom: 4px; }
@media (max-width: 1050px) { .news-card.news-card-text h3 { font-size: 22px; } }
@media (max-width: 580px) {
  .news-card.news-card-text { padding: 26px 22px 24px; }
  .news-card.news-card-text h3 { font-size: 25px; }
  .news-card.news-card-text .text-link { padding-top: 17px; }
}

/* "Artikel terbaru" (Strapi) section under the reference grid. */
.news-latest { padding-top: 70px; }
.news-latest .news-results-head { margin-top: 0; }
.news-latest-more { display: flex; justify-content: center; margin-top: 45px; }
@media (max-width: 580px) {
  .news-latest { padding-top: 50px; }
  .news-latest-more { margin-top: 35px; }
  .news-latest-more .button { width: 100%; }
}

/* Strapi titles and excerpts are long: keep the cards a similar height. */
.news-latest .news-card h3,
.news-latest .news-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-latest .news-card h3 { -webkit-line-clamp: 3; line-clamp: 3; }
.news-latest .news-card p { -webkit-line-clamp: 4; line-clamp: 4; }
