/* === Hero секция === */
.post-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    padding: 40px 20px;
    color: var(--color-text);
	border-radius:var(--border-radius);
    background-size: cover;
    background-position: center;
    justify-content: center;
	bottom: 1px;
}
.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, var(--color-bg, #0a0a0a) 80%);
  z-index: 0;
}
.post-hero .container {
  position: relative;
  z-index: 1;
}
.post-hero h1 {
text-align: center;
line-height: var(--h1-size);
  max-width: 800px;
}

/* === Изображения в контенте === */
.post-content img,
.page-content img,
.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin: 30px auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content img:hover,
.page-content img:hover,
.content-body img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4);
}

/* Изображения с выравниванием */
.post-content .aligncenter,
.page-content .aligncenter {
  display: block;
  margin: 30px auto;
  text-align: center;
}

.post-content .alignleft,
.page-content .alignleft {
  float: left;
  margin: 10px 30px 20px 0;
  max-width: 50%;
}

.post-content .alignright,
.page-content .alignright {
  float: right;
  margin: 10px 0 20px 30px;
  max-width: 50%;
}

/* Изображения в ссылках */
.post-content a img,
.page-content a img {
  border: 2px solid transparent;
}

.post-content a:hover img,
.page-content a:hover img {
  border-color: rgba(255, 215, 0, 0.5);
}

/* Подписи к изображениям */
.post-content .wp-caption,
.page-content .wp-caption {
  max-width: 100%;
  margin: 30px auto;
}

.post-content .wp-caption-text,
.page-content .wp-caption-text {
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Адаптивность для изображений */
@media (max-width: 768px) {
  .post-content img,
  .page-content img,
  .content-body img {
    margin: 20px auto;
    border-radius: 8px;
  }
  
  .post-content .alignleft,
  .page-content .alignleft,
  .post-content .alignright,
  .page-content .alignright {
    float: none;
    max-width: 100%;
    margin: 20px auto;
    display: block;
  }
}

/* === Основной контент + сайдбар === */
.single-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0;
}
.single-main {
  flex: 1 1 640px;
}
.single-sidebar {
  flex: 1 1 300px;
}

/* === Баннер === */
.single-banner {
  margin: 60px 0 30px;
  text-align: center;
}
.single-banner img {
  max-width: 100%;
  height: auto;
}

/* === Хлебные крошки на single странице === */
.single .breadcrumbs {
  margin: 20px 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
}

/* === Секция "Еще интересное" === */
.more-news {
  padding: 40px 0;
  margin: 0 -20px; /* Выходим за пределы контейнера */
  width: calc(100% + 40px); /* Компенсируем отступы */
}

/* Исправление для мобильных - убираем отрицательные margin */
@media (max-width: 768px) {
  .more-news {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }
}

.more-news .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.more-news .section-header {
  margin-bottom: 24px;
}

.more-news .news-grid,
.more-news .archive-posts-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important; /* Фиксированно 2 колонки */
  gap: 24px !important;
  align-items: stretch !important; /* Выравниваем по высоте */
  width: 100% !important;
}

/* === Карточки новостей === */
.more-news .news-card {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important; /* Равная высота для всех карточек */
}

.more-news .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.more-news .news-card .thumb {
  height: 200px;
  overflow: hidden;
}

.more-news .news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.more-news .news-card:hover .thumb img {
  transform: scale(1.05);
}

.more-news .news-card .news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Занимает все доступное пространство */
}

.more-news .news-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-family: 'Noto Sans', var(--font-main);
  font-weight: 900;
  line-height: 1.4;
}

.more-news .news-card h3 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.more-news .news-card h3 a:hover {
  color: var(--color-accent);
}

.more-news .news-card .excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1; /* Занимает доступное пространство */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Ограничиваем количество строк */
  -webkit-box-orient: vertical;
}

.more-news .news-card .news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Прижимаем к низу карточки */
}

.more-news .news-card .date {
  color: #888;
  font-size: 0.9rem;
}

.more-news .news-card .read-btn {
  background: var(--color-accent);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.more-news .news-card .read-btn:hover {
  background: var(--color-accent-alt);
  color: white;
}

/* Стили для карточек в стиле архивов */
.more-news .slider-post-card .slider-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.more-news .slider-post-card .read-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
  color: var(--color-text);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: auto;
  white-space: nowrap;
}

.more-news .slider-post-card .read-btn:hover {
  background: linear-gradient(135deg, #FFD700 0%, #B87EF8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Адаптивность для карточек новостей */
@media (max-width: 768px) {
  .more-news .news-grid,
  .more-news .archive-posts-grid {
    grid-template-columns: 1fr !important; /* 1 колонка на мобильных */
    gap: 16px !important;
  }
}
