/* === КАРТОЧКИ БЛОГА === */
.blog-card {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Анимация */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hover */
@media (hover: hover) {
  .blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: scale(1.01);
    transition: all 0.3s ease;
  }
}

/* Контент */
.blog-info {
  flex: 1;
  padding: 1.5rem;
}

.blog-info h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #b44f44;
  line-height: 1.3;
}

.blog-info h2 a {
  text-decoration: none;
  color: inherit;
}

.blog-info p {
  color: #4a3a3a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background: #fcedea;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 500;
  margin-bottom: 0.8rem;
  letter-spacing: 0.4px;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* === ИЗОБРАЖЕНИЕ (ФОН) === */
.blog-image {
  flex: 0 0 360px;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff6f4;
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .blog-card {
    flex-direction: column;
  }

  .blog-image {
    width: 100%;
    height: 220px;
  }

  .blog-info {
    padding: 1.2rem 1rem;
  }
}

@media (max-width: 480px) {
  .blog-card {
    border-radius: 18px;
    margin-bottom: 1.5rem;
  }

  .blog-info h2 {
    font-size: 1.2rem;
  }

  .blog-info p {
    font-size: 0.92rem;
  }

  .tag {
    font-size: 0.65rem;
  }
}

.blog-card {
  display: flex;
  align-items: stretch; /* растягиваем блоки одинаково */
}

.blog-image {
  flex: 0 0 360px;
  min-height: 240px; /* не меньше */
  height: auto;
}
