/* ===== Левый блок 70% ===== */
.left-news {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

/* ===== Большая новость ===== */
.news-big-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 400px;
  transition: transform 0.3s;
}

.news-big-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.news-big-card:hover img {
  transform: scale(1.05);
}

/* ===== Нижние новости в сетке ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.city-news-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 220px;
  transition: transform 0.3s;
}

.city-news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.city-news-card:hover img {
  transform: scale(1.05);
}

/* ===== Overlay с заголовком и мета ===== */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
  color: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.overlay .meta {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 6px;
}

.overlay .title {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  line-height: 1.3;
  transition: color 0.25s;
}

/* ===== Ссылки внутри карточек ===== */
.news-big-card a,
.city-news-card a {
  color: #fff;
  text-decoration: none;
  transition: color 0.25s;
}

.news-big-card a:hover,
.city-news-card a:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* ===== Тег города ===== */
.city-tag {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ff7a18;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px 6px 12px;
  text-transform: uppercase;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ===== Категория ===== */
.category-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffd700; /* яркий золотой без прозрачности */
  color: #000;          /* чёрный текст для контраста */
  padding: 3px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* лёгкий тень для читаемости */
}

/* ===== Hover эффекты для тегов ===== */
.news-big-card:hover .city-tag,
.news-big-card:hover .category-tag,
.city-news-card:hover .city-tag,
.city-news-card:hover .category-tag {
  opacity: 0.95;
}

.news-big-card:hover .title,
.city-news-card:hover .title {
  color: #ffd700;
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 900px) {
  .left-news {
    width: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 5px;
  }

  .news-big-card {
    height: 300px;
    margin: 0 5px;
  }

  .city-news-card {
    height: 180px;
  }

  .overlay {
    padding: 10px 12px;
  }

  .overlay .title {
    font-size: 15px;
  }

  .overlay .meta {
    font-size: 11px;
  }

  .city-tag {
    font-size: 12px;
    padding: 4px 12px 4px 10px;
  }

  .category-tag {
    font-size: 11px;
    padding: 2px 8px;
  }
}
