/* Page-only styles for /news/ */

#news-anons-list {
  padding: 6px 0 10px;
}

#news-anons-list .news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

#news-anons-list .news-list .news-item {
  margin: 0;
  padding: 0 0 18px;
  min-width: 0;
  max-width: none;
  border: 1px solid rgba(56, 71, 87, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 10px 24px rgba(28, 35, 43, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

#news-anons-list .news-list .news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(28, 35, 43, 0.16);
}

#news-anons-list .news-list .news-item .preview_picture {
  float: none !important;
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: clamp(180px, 17vw, 250px) !important;
  object-fit: cover;
  object-position: center;
  margin: 0 0 14px;
}

#news-anons-list .news-list .news-item > .news-date,
#news-anons-list .news-list .news-item > .news-title,
#news-anons-list .news-list .news-item > .news-detail,
#news-anons-list .news-list .news-item > .news-detail-link {
  padding-left: 16px;
  padding-right: 16px;
}

#news-anons-list .news-list .news-date {
  margin: 0 0 8px;
  color: rgba(56, 71, 87, 0.72);
  font-size: 1.55rem;
  letter-spacing: 2px;
  line-height: 1.1;
  font-weight: 500;
}

#news-anons-list .news-list .news-title {
  margin: 0 0 10px;
  color: #2e3d50;
  font-weight: 700;
  font-size: clamp(2rem, 1.85vw, 2.8rem);
  line-height: 1.22;
}

#news-anons-list .news-list .news-item > .news-detail {
  margin: 0;
  color: #4c5c6d;
  font-size: 1.7rem;
  line-height: 1.55;
  line-clamp: 4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#news-anons-list .news-list .news-detail-link {
  margin-top: auto;
  align-self: flex-start;
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 162, 85, 0.36);
  background: rgba(200, 162, 85, 0.08);
  color: #7f5f1f;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#news-anons-list .news-list .news-detail-link:hover {
  border-color: rgba(200, 162, 85, 0.72);
  background: rgba(200, 162, 85, 0.18);
  color: #5f4512;
}

#news-anons-list .news-list nav,
#news-anons-list .news-list .modern-page-navigation,
#news-anons-list .news-list .bx-pagination {
  grid-column: 1 / -1;
}

#news-anons-list .news-list + br {
  display: none;
}

#news-anons-list .news-list ~ nav,
#news-anons-list .news-list ~ .modern-page-navigation,
#news-anons-list .news-list ~ .bx-pagination,
#news-anons-list .news-list ~ .system-nav-orange {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* Detail page: keep native article layout readable */
#news-anons-list > .news-detail {
  display: block;
  overflow: visible;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

#news-anons-list > .news-detail .detail_picture {
  float: none;
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 12px;
}

#news-anons-list > .news-detail h1,
#news-anons-list > .news-detail h2,
#news-anons-list > .news-detail h3,
#news-anons-list > .news-detail h4 {
  background: transparent !important;
  color: #2e3d50;
}

@media (max-width: 1199px) {
  #news-anons-list .news-list {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767px) {
  #news-anons-list .news-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #news-anons-list .news-item .preview_picture {
    height: 210px !important;
  }
}
