.post-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(120, 191, 155, 0.15);
}

.post-container {
  padding: 20px;
  position: relative;
}

.post-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}

.fixed-label {
  background: linear-gradient(135deg, #FD8D0D, #ff6b6b);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(253, 141, 13, 0.3);
}

.post-title {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #2E6D4D;
}

.post-link {
  color: #2E6D4D;
  text-decoration: none;
  transition: color 0.3s ease;
  background: linear-gradient(to right, #78BF9B, #78BF9B) no-repeat left 85%;
  background-size: 0 2px;
  padding-bottom: 3px;
}

.post-link:hover {
  color: #FD8D0D;
  background-size: 100% 2px;
}

.post-image-wrapper {
  margin: 0 -20px;
  overflow: hidden;
  border-radius: 8px;
}

.post-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image {
  transform: scale(1.02);
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  color: #718096;
  font-size: 0.85rem;
}

.post-date,
.post-views {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta i {
  font-size: 0.9em;
  color: #78BF9B;
}

.post-excerpt {
  color: #4a5568;
  line-height: 1.6;
  margin: 15px 0;
  font-size: 1rem;
}

.read-more {
  display: inline-block;
  color: #78BF9B;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #FD8D0D;
  transform: translateX(5px);
}

/* Article styles */
.post-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-header {
  margin-bottom: 25px;
  position: relative;
}

.post-article .post-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  position: relative;
  display: inline-block;
}

.post-article .post-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #78BF9B, #FD8D0D);
  border-radius: 3px;
}

.post-image-container {
  margin: 0 -20px 25px -20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-featured-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.post-image-container:hover .post-featured-image {
  transform: scale(1.02);
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body a {
  color: #78BF9B;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid rgba(120, 191, 155, 0.3);
  transition: all 0.3s ease;
}

.post-body a:hover {
  color: #FD8D0D;
  border-bottom-color: #FD8D0D;
}

.post-body h2,
.post-body h3 {
  color: #2E6D4D;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

.post-body h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.post-body h3 {
  font-size: 1.3rem;
}

.post-body blockquote {
  border-left: 4px solid #78BF9B;
  background: #f8f9fa;
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #4a5568;
  border-radius: 0 8px 8px 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
  .post-container {
    padding: 15px;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .post-image-wrapper {
    margin: 0 -15px;
  }

  .post-meta {
    font-size: 0.8rem;
    gap: 10px;
  }

  .post-article {
    padding: 15px;
    border-radius: 0;
  }

  .post-article .post-title {
    font-size: 1.8rem;
  }

  .post-image-container {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
  }

  .post-body {
    font-size: 1rem;
  }
}


/* Стили для изображения поста */
.post-image-container {
  position: relative;
  margin: 0 -20px 25px -20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f8f9fa;
  min-height: 200px;
}

.post-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(120, 191, 155, 0.1) 0%, rgba(253, 141, 13, 0.05) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-image-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.post-image-container:hover::before {
  opacity: 1;
}

.post-featured-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  object-fit: cover;
  background: linear-gradient(45deg, #f5f7fa, #e4e7eb);
}

.post-image-container:hover .post-featured-image {
  transform: scale(1.03);
}

/* Эффект загрузки изображения */
.post-featured-image.loading {
  filter: blur(5px);
  transform: scale(1.02);
}

/* Подпись к изображению */
.image-caption {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 8px;
  font-style: italic;
  padding: 0 20px;
}

/* Адаптивность для изображений */
@media (max-width: 768px) {
  .post-image-container {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 8px;
  }

  .post-featured-image {
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .post-image-container {
    border-radius: 6px;
  }

  .post-featured-image {
    min-height: 160px;
  }
}

/* ссылки категорий */
.post-category,
.post-author {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-category a,
.post-author a {
  color: #718096;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.post-category a:hover,
.post-author a:hover {
  color: #FD8D0D;
}

.post-category a::after,
.post-author a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #78BF9B;
  transition: width 0.3s ease;
}

.post-category a:hover::after,
.post-author a:hover::after {
  width: 100%;
  background: #FD8D0D;
}

.post-category i,
.post-author i {
  color: #78BF9B;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.post-category:hover i,
.post-author:hover i {
  color: #FD8D0D;
}


