.news-flex-wrapper {
  margin: 60px auto;
  width: 90%;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.news-card {height: fit-content;
  /*flex: 1 1 300px;*/flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
  /*min-width: 30%;*/min-width: auto;
  scroll-snap-align: center;
  background-color: #c0c0c0;
  border: 2px solid yellow;
}
.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.news-card-date {
  padding: 1rem;
  margin: 0;
  font-size: 18px;
  text-align: right;
  line-height: 1.3;
}
.news-card-img  {
  height: 100px;
  background-size: cover;
  background-position: center;
}
.news-card-img svg{
  width: 100%;height:100%;
}
.icon-container {
  width: 100%;
  height: 100%;           /* подставь свою высоту контейнера */
  display: flex;
  justify-content: center;
  align-items: center;
}
.big-icon {
  height: 50%;             /* ровно половина высоты контейнера */
  width: auto;
  stroke: #d32f2f;         /* красный цвет (можно заменить на любой другой) */
  fill: none;
  display: block;
  filter: drop-shadow(0 6px 8px rgba(211, 47, 47, 0.3)); /* лёгкая тень под молнией */
  transition: transform 0.3s ease;
}
.big-icon:hover {
  transform: translateY(-6px) scale(1.05); /* при наведении чуть всплывает и растёт */
}
.news-card-title {
  padding: 10px;
  margin: 0;
  font-size: 20px;
  text-align: center;
  line-height: 1.3;
  color: blue;
  border-radius: 5px;
}
.news-card-content {
  padding: 5px;
  margin: 0;
  /*height: 190px;*/height: fit-content;
  /*color: #555;*/
  color: black;
  line-height: 1.3;
  overflow-y: hidden;
}
.news-card-btn {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 22px;
  background: green;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin: 0px;
}
@media (max-width: 1380px) {
.news-flex-wrapper {
  width: 100%;
}
}
@media (max-width: 1240px) {
.news-card-title {
  padding: 5px;
  font-size: 18px;
}
}
@media (max-width: 768px) {
  .news-flex-wrapper {
  margin: 30px auto;
  width: 100%;
  display: flex;
  gap: 0rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.news-card {
    flex: 0 0 calc((100%) / 2);
  }
.news-card-btn {
margin: 0 auto;
max-width: 100%;
margin: 0 auto;
}
}
@media (max-width: 478px){ 
.news-flex-wrapper{
margin: 0px auto;
margin-bottom: 20px;
}
.news-card{
  flex: 0 0 100%;
  padding: 15px;
}
}