.blog-container {
  margin: 20px auto;
  max-width: 800px;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-item {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-item:hover {
  background-color: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.blog-item .card-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  pointer-events: auto;
}

/* контентные элементы пропускают клики */
.blog-item img,
.blog-item div,
.blog-item h4,
.blog-item p,
.blog-item time {
  pointer-events: none;
}

.blog-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10%;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.blog-item .content,
.blog-item div {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
}

.blog-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #007b5e;
}

.blog-item p {
  margin: 0 0 0.5rem 0;
  color: #333;
  line-height: 1.4;
}

/* внутренние ссылки — верхний слой */
.blog-item p a {
  color: #007b5e;
  text-decoration: underline;
  position: relative;
  z-index: 40;
  pointer-events: auto;
}

.blog-item time {
  align-self: flex-end;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  position: relative;
  z-index: 20;
}

@media (max-width: 600px) {
  .blog-item {
    display: block !important;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
  }

  .blog-item img {
    float: left;
    width: 70px;
    height: 70px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }

  .blog-item div {
    display: block !important;
    position: relative;
    z-index: 20;
  }

  .blog-item time {
    display: block;
    margin-top: 0.5rem;
    text-align: right;
  }

  .blog-item .card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
  }
}
