/* ================================
   NEWS CARDS
   ================================ */

/* ── Карточка ── */
.news_list_page .news_card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 12px rgba(21, 66, 210, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.news_list_page .news_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21, 66, 210, 0.13);
}

/* ── Изображение ── */
.news_list_page .news_card .image_wrapper {
  display: block;
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #dce6f8 0%, #c8d8f4 100%);
}

.news_list_page .news_card .image_wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
  filter: brightness(92%) saturate(90%);
}

.news_list_page .news_card .image_wrapper:hover img {
  transform: scale(1.04);
  filter: brightness(100%) saturate(100%);
}

/* ── Дата — бейдж поверх фото ── */
.news_list_page .news_card .image_wrapper time {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  right: 12px;
  /* новый стиль */
  background: rgb(var(--blue-color), 1);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 42px;
  /* сбрасываем старое */
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: lowercase;
  line-height: 1;
}

.news_list_page .news_card .image_wrapper time h2 {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: rgb(var(--white-color), 1);
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 0;
}

/* ── Тело карточки ── */
.news_list_page .news_card .px-3 {
  padding: 16px 18px 18px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* ── Заголовок ── */
.news_list_page .news_card .px-3 > a.my-3 {
  text-decoration: none;
  margin: 0 0 10px 0 !important;
}

.news_list_page .news_card .px-3 > a.my-3 h5 {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgb(var(--black-color), 1);
  line-height: 1.45;
  letter-spacing: -0.2px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.news_list_page .news_card .px-3 > a.my-3:hover h5 {
  color: rgb(var(--blue-color), 1);
}

/* Стрелка "читать" */
/* .news_list_page .news_card .px-3 > a.my-3::after {
  content: "Читать →";
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1542d2;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
  transition: letter-spacing 0.15s ease;
} */

.news_list_page .news_card .px-3 > a.my-3:hover::after {
  letter-spacing: 0.04em;
}

/* ── Теги ── */
.news_list_page .news_card .px-3 > a.mb-3 {
  margin: auto 0 0 0 !important;
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
}

.news_list_page .news_card .px-3 > a.mb-3 h6 {
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: rgb(var(--blue-color), 1);
  background: #eef2ff;
  border-radius: 6px;
  padding: 3px 9px;
  margin: 0;
  transition:
    background 0.15s,
    color 0.15s;
}

.news_list_page .news_card .px-3 > a.mb-3:hover h6 {
  background: rgb(var(--blue-color), 1);
  color: rgb(var(--white-color), 1);
}

/* ── Отступы между карточками ── */
.news_list_page .mb-5 {
  margin-bottom: 24px !important;
}

/* ================================
   АДАПТИВ
   ================================ */

@media screen and (max-width: 991px) {
  .news_list_page .news_card .image_wrapper {
    height: 180px;
  }
}

@media screen and (max-width: 767px) {
  .news_list_page .news_card .image_wrapper {
    height: 200px;
  }

  .news_list_page .news_card .px-3 > a.my-3 h5 {
    font-size: 14px;
  }

  .news_list_page .mb-5 {
    margin-bottom: 16px !important;
  }
}
