/* ===== Блок тем в блоге (2026-08-29) ===== */
/* Оформление всего блока с темами */
.wp-block-group.alignfull.is-layout-constrained.is-layout-flow {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  padding: 40px 32px;
  margin: 32px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Заголовок блога */
.wp-block-post-title.has-superbfont-xxlarge-font-size {
  margin-bottom: 16px;
}

/* Подзаголовок */
.wp-block-paragraph.has-superbfont-small-font-size {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Карточки тем */
.wp-block-latest-posts__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .wp-block-latest-posts__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wp-block-latest-posts__list li {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  border: 1px solid rgba(148, 163, 184, 0.15);
  position: relative;
  overflow: hidden;
}

.wp-block-latest-posts__list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #2563EB 0%, #22D3EE 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wp-block-latest-posts__list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

.wp-block-latest-posts__list li:hover::before {
  opacity: 1;
}

/* Заголовок темы */
.wp-block-latest-posts__post-title {
  color: #111827;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  line-height: 1.5;
  padding-left: 12px;
}

.wp-block-latest-posts__post-title:hover {
  color: #2563EB;
}

/* Мобильная адаптация */
@media (max-width: 781px) {
  .wp-block-group.alignfull.is-layout-constrained.is-layout-flow {
    padding: 24px 20px;
    margin: 24px 0;
  }
  
  .wp-block-paragraph.has-superbfont-small-font-size {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  
  .wp-block-latest-posts__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .wp-block-latest-posts__list li {
    padding: 20px;
  }
  
  .wp-block-latest-posts__post-title {
    font-size: 1.05rem;
  }
}
