/* Blog Page (Блог) */

.blog-hero-section__title {
  font-size: 34px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
  padding-top: 32px;
  padding-bottom: 12px;
}

.blog-hero-section__description {
  font-size: 16px;
  margin: 0;
  color: var(--color-text, #333);
  line-height: 1.5;
}

/* Blog Feed Section */
.blog-feed-section {
  padding-top: 15px;
  padding-bottom: 60px;
}

/* Blog Cards */
.blog-cards {
  margin-top: 30px;
}

.blog-cards__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-cards__item {
  display: flex;
  flex-direction: column;
}

.blog-cards__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-cards__link:hover {
  transform: translateY(-5px);
}

.blog-cards__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.blog-cards__link:hover .blog-cards__content {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-cards__image-wrapper {
  position: relative;
  padding-bottom: 60%; /* 3:5 aspect ratio */
  overflow: hidden;
  background: #f5f5f5;
}

.blog-cards__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.blog-cards__link:hover .blog-cards__image {
  transform: scale(1.05);
}

.blog-cards__text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.blog-cards__date {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  display: block;
  line-height: 1.4;
}

.blog-cards__title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-cards__link:hover .blog-cards__title {
  color: var(--color-primary, #174783);
}

.blog-cards__description {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin: 0;
  flex-grow: 1;
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .blog-cards__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 980px) {
  .blog-feed-section {
    padding-bottom: 40px;
  }

  .blog-cards {
    margin-top: 20px;
  }

  .blog-cards__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-hero-section__title {
    font-size: 28px;
  }
}

@media screen and (max-width: 640px) {
  .blog-feed-section {
    padding-bottom: 30px;
  }

  .blog-cards__container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-hero-section {
    padding-top: 20px;
  }

  .blog-hero-section__title {
    padding-top: 12px;
  }


  .blog-cards__text-wrapper {
    padding: 20px;
  }

  .blog-cards__title {
    font-size: 18px;
  }

  .blog-cards__description {
    font-size: 15px;
  }
}
