/* Custom overrides go here later */


/* === Custom post list layout === */
.newsium-post-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.newsium-post-item .post-thumb-left {
  flex: 0 0 58%;
  max-width: 58%;
  text-align: center;
}

.newsium-post-item .post-thumb-left img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.newsium-post-item .post-right {
  flex: 1 1 40%;
  max-width: 40%;
  color: #fff;
}

/* категория */
.newsium-post-item .post-cat {
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.newsium-post-item .post-cat a {
  color: #ff4444;
  text-decoration: none;
  margin-right: 6px;
}

/* заголовок */
.newsium-post-item .entry-title {
  font-size: 20px;
  line-height: 1.3;
  margin: 5px 0 8px;
}

.newsium-post-item .entry-title a {
  color: #000; /* всегда чёрный */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.newsium-post-item .entry-title a:hover {
  color: #888; /* при наведении — серый */
}


.newsium-post-item .entry-meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 10px;
}

.newsium-post-item .entry-summary {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
}

/* адаптив для телефонов */
@media (max-width: 768px) {
  .newsium-post-item {
    flex-direction: column;
  }
  .newsium-post-item .post-thumb-left,
  .newsium-post-item .post-right {
    max-width: 100%;
    flex: 0 0 100%;
  }
}





/* === SINGLE POST FIXES === */

/* Центрируем все картинки в посте */
.single-post .entry-content img {
  display: block;
  margin: 0 auto 20px auto;
  height: auto;
  max-width: 100%;
}

/* Уменьшаем размер тайтла внутри поста */
.single-post .entry-title {
  font-size: 28px !important;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 20px;
}

/* Делаем категории над заголовком по центру */
.single-post .cat-links {
  display: block;
  text-align: center;
  font-size: 13px;
  margin-bottom: 5px;
  color: #ff4444;
}

/* Убираем лишние отступы под навигацией */
.single-post .post-navigation {
  margin-top: 40px;
}




/* === SINGLE POST TEXT LAYOUT === */

/* Основной контейнер контента */
.single-post .entry-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 30px;
  line-height: 1.7;
  font-size: 16px;
  color: #222;
}

/* Абзацы */
.single-post .entry-content p {
  margin-bottom: 1.2em;
}

/* Ссылки в тексте */
.single-post .entry-content a {
  color: #0066cc;
  text-decoration: underline;
}

.single-post .entry-content a:hover {
  color: #333;
}

/* Блоки изображений */
.single-post .entry-content img {
  display: block;
  margin: 25px auto;
  height: auto;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

/* Центрируем заголовок поста и убираем лишние поля */
.single-post .entry-header {
  text-align: center;
  margin-bottom: 20px;
}




/* === Download buttons from BBCode === */
.entry-content a img[src*="download"] {
  display: inline-block;
  width: 200px;   /* ширина кнопки */
  height: auto;
  margin: 15px auto;
  border-radius: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Эффект при наведении */
.entry-content a img[src*="download"]:hover {
  transform: scale(1.05);
  opacity: 0.9;
}





/* === Ограничиваем ширину изображений внутри поста === */
.single-post .entry-content img {
  display: block;
  margin: 25px auto;
  max-width: 600px;  /* <= Устанавливаем ограничение по ширине */
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}








/* === Внутри single-поста: изображение 600px и текст под ним в тот же коридор === */

/* картинка */
.single-post .entry-content img {
  display: block;
  margin: 25px auto 12px;  /* по центру */
  max-width: 600px;        /* ширина коридора */
  width: 100%;
  height: auto;
}

/* обычный текст сразу под картинкой и вообще абзацы поста */
.single-post .entry-content p {
  max-width: 600px;        /* тот же коридор, что и у изображения */
  margin: 0 auto 20px;     /* центрируем блок абзаца */
  text-align: left;        /* сам текст — по левому краю */
  line-height: 1.7;
  font-size: 16px;
  color: #222;
}

/* на всякий случай выключим глобальное центрирование, если оно стояло раньше */
.single-post .entry-content { text-align: left; }

/* download-кнопку по центру оставляем */
.single-post .entry-content a img[src*="download"] {
  display: inline-block;
  margin: 20px auto;
}




/* === "More Stories" — точная подгонка ширины и позиционирования === */
.single-post .child-related-fw {
  width: 100vw; /* было 95vw — чуть уже */
  margin-left: calc(50% - 45vw); /* сдвинуто чуть правее */
  margin-right: calc(50% - 50vw);
  padding: 0 20px;
  box-sizing: border-box;
}

/* Внутренний контейнер */
.single-post .child-related {
  max-width: 1150px;
  margin: 50px auto;
}

/* Сетка и карточки */
.single-post .child-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.single-post .child-related__item {
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.single-post .child-related__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Изображения */
.single-post .child-related__thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

/* Текст */
.single-post .child-related__name {
  font-size: 15.5px;
  line-height: 1.45;
  margin: 10px 14px 5px;
  font-weight: 600;
  text-align: center;
}

.single-post .child-related__meta {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin: 0 14px 16px;
}

/* Адаптивность */
@media (max-width: 1100px) {
  .single-post .child-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .single-post .child-related__grid {
    grid-template-columns: 1fr;
  }

  .single-post .child-related-fw {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}









/* === "More Stories" — бейдж категории всегда видим (фикс слоя) === */
.single-post .child-related__thumb {
  position: relative;
  overflow: visible !important; /* бейдж не обрезается */
}

.single-post .child-related__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  z-index: 50; /* 🔹 выше всего */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 1 !important; /* 🔹 всегда видим */
  transition: background 0.25s ease-in-out, transform 0.25s ease-in-out;
}

/* При наведении — только лёгкий эффект */
.single-post .child-related__item:hover .child-related__cat {
  background: #ff5a47;
  transform: translateY(-1px);
}






/* === "More Stories" — цвет заголовков === */
.single-post .child-related__name a {
  color: #111 !important; /* 🔹 всегда чёрный */
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-post .child-related__name a:hover {
  color: #1a73e8 !important; /* 🔹 синий при наведении (Google blue) */
}






/* === "More Stories" — оформление заголовка с чёрно-красным подчёркиванием === */
.single-post .child-related__title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  letter-spacing: 0.04em;
  margin: 0 0 25px;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

/* Подчёркивание: чёрная линия + красный акцент */
.single-post .child-related__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #111 60%, #e74c3c 40%);
  border-radius: 2px;
}










/* Отступ перед блоком тегов + Edit (оба внутри .post-item-metadata.entry-meta) */
.single-post .post-item-metadata.entry-meta {
  margin-top: 60px !important;   /* увеличь до 80 при желании */
  padding-top: 12px !important;
  border-top: 1px solid #ddd !important;
}

/* Чуть отступа для ссылки Edit, если она стоит рядом с тегами */
.single-post .post-item-metadata.entry-meta .edit-link {
  display: inline-block;
  margin-top: 6px;
}






/* Убираем надпись "Search" из виджета поиска */
.widget_search label,
.wp-block-search__label {
  display: none !important;
}






/* === Прячем блок "More Stories" на мобильных устройствах === */
@media (max-width: 768px) {
  .single-post .child-related {
    display: none !important;
  }
}





.single-post .child-related__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1px;
}









/* Заголовок поста — немного жирнее, но без увеличения размера */
.single-post .entry-title {
  font-weight: 600;
  color: #000;
  margin: 15px 0;
}








/* Сдвиг заголовка и категории чуть левее в single */
.single-post .entry-title {
  position: relative;
  left: -82px; /* ← подбери: -6px, -10px, -14px */
}

.single-post .min-read-post-format {
  position: relative;
  left: -12px; /* тот же сдвиг, чтобы были на одной оси */
}

/* На мобильных — возвращаем на место, чтобы не уезжало */
@media (max-width: 600px) {
  .single-post .entry-title,
  .single-post .min-read-post-format {
    left: 0;
  }
}













