
.news_list {
  display: block;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.news_item {
  width: 80%;
  background-color: var(--color-tertiary);
  border-radius: 12px;
  padding: 25px 30px;
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.news_item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
  transform: translateX(-5%);
}
.news_item:nth-child(even) {
  margin-right: 0;
  margin-left: auto;
  transform: translateX(5%);
}

/* Заголовок-сводка */
.news_summary {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 0;
  cursor: pointer;
}
.news_summary::-webkit-details-marker {
  display: none;
}

/* Картинка слева с датой */
.news_thumb {
  flex-shrink: 0;
  width: 220px;
  height: 100%;
  border-radius: 10px;
  border: 2px solid var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.news_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news_date {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 4px 0;
}

/* Текстовая часть */
.news_summary_text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news_title {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-secondary);  /* тёмный */
  margin-bottom: 10px;
}

.news_snippet {
  font-size: 14px;
  line-height: 1.6;
  font-weight: normal;
  color: var(--color-primary);  /* основной яркий */
  -webkit-line-clamp: 5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Раскрытая часть */
.news_body {
  margin-top: 20px;
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 20px;

}

.news_text {
  font-size: var(--font-size-m);
  line-height: 1.6;
  word-wrap: break-word;
}

/* Убираем повтор изображения */
.news_body img.news_image {
  display: none;
}

/* Открытие */
.news_item[open] {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.news_item[open] .news_summary {
  color: var(--color-white);
}


/* Мобильная версия */
@media screen and (max-width: 768px) {
  .news_list {
    padding: 0 15px;
  }

  .news_item {
    width: 100% !important;
    margin: 0 0 30px !important;
    transform: none !important;
  }

  .news_summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .news_thumb {
    width: 100%;
    height: auto;
  }

  .news_thumb img {
    height: auto;
  }

  .news_date {
    position: static;
    background-color: transparent;
    color: var(--color-secondary);
    font-size: 13px;
    margin-top: 5px;
  }

  .news_summary_text {
    width: 100%;
  }

  .news_body {
    padding: 15px;
  }
}
