/* ХЕРО БЛОК ХЕРО БЛОК ХЕРО БЛОК ХЕРО БЛОК */

.hero {
  margin-top: 100px;
  margin-bottom: 100px;
}

.news__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  align-self: stretch;
}

.news__heading {
  color: #171717;
  font-family: "SegoeUIWeb";
  font-size: 50px;
  font-style: normal;
  font-weight: 350;
  line-height: normal;
  text-transform: uppercase;
}

.news__description-container {
  display: flex;
  /*justify-content: space-between;
  */
  align-items: center;
  flex-direction: column;
  gap: 5px;
  align-self: stretch;
}

.news__description {
  color: rgba(23, 23, 23, 0.7);
  font-family: "SegoeUIWeb";
  font-size: 24px;
  font-style: normal;
  font-weight: 350;
  line-height: normal;
}

/* NEWS NEWS NEWS NEWS NEWS NEWS */

.news {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

:root {
  --editorial-card-height: 520px;
  --editorial-card-mobile-image-height: 320px;
}

.news__container {
  display: flex;
  align-items: stretch;
  flex-direction: row;
  gap: 40px;
  border-radius: 15px;
  background: #f9f9f9;
  overflow: hidden;
}

.news__img {
  display: block;
  width: 22%;
  max-width: 22%;
  flex: 0 0 22%;
  height: auto;
  min-height: 100%;
  border-radius: 15px 0 0 15px;
  object-fit: cover;
}

.news__content {
  display: flex;
  height: auto;
  padding: 40px 60px 40px 0;
  flex-direction: column;
  flex: 1 1 0;
  justify-content: flex-start;
  gap: 15px;
  align-items: flex-start;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.news__top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.news__category {
  width: 100%;
  color: rgba(23, 23, 23, 0.4);
  font-family: "SegoeUIWeb";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.72px;
  text-transform: uppercase;
}

.news__subheading {
  width: 100%;
  color: #171717;
  font-family: "SegoeUIWeb";
  font-size: 20px;
  font-style: normal;
  font-weight: 350;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-transform: none;
  overflow-wrap: anywhere;
  white-space: normal;
  overflow: visible;
  max-height: none;
}

.news__subheading a {
  color: inherit;
  text-decoration: none;
  display: block;
  white-space: normal;
  overflow: visible;
}

.news__text {
  width: 100%;
  color: rgba(23, 23, 23, 0.7);
  font-family: "SegoeUIWeb";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.72px;
  margin: 0;
}

.news__container:nth-child(even) {
  flex-direction: row-reverse;
}

.news__container:nth-child(even) .news__content {
  padding: 40px 0 40px 60px;
  text-align: right;
}

@media (max-width: 980px) {
  .hero {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .news__heading {
    font-size: 36px;
  }

  .news__description-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
  }

  .news__description {
    font-size: 20px;
  }

  /* На мобилке оборачиваем весь список карточек в боковой padding, 
     чтобы картинки не тянулись на всю ширину вьюпорта */
  .news,
  .news--editorial-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .news__container,
  .news__container:nth-child(even) {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    gap: 0;
    width: 100%;
  }

  .news__img {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 4;
    flex: none;
    border-radius: 15px 15px 0 0;
  }

  .news__container:nth-child(even) .news__content,
  .news__content {
    text-align: left;
    display: flex;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 14px 10px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    align-self: stretch;
  }

  .news__subheading {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  .pagination {
    display: none;
  }
}

/* SINGLE POST SINGLE POST SINGLE POST */

.news-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-bottom: 50px;
}

.news-single__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  max-width: 1240px;
  width: 100%;
}

/* Хлебные крошки с фоном */
.breadcrumbs {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  margin-bottom: 100px;
}

.breadcrumbs__container {
  width: 100%;
  max-width: 1240px;
  padding: 10px 40px;
  background: #FBFBFB;
  border-radius: 15px;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.breadcrumbs__item a {
  color: #171717;
  font-family: "SegoeUIWeb";
  font-size: 18px;
  font-weight: 350;
  line-height: 1.33;
  text-decoration: none;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  color: #171717;
  font-family: "SegoeUIWeb";
  font-size: 18px;
  font-weight: 350;
}

/* Главное изображение */
.news-single__img {
  width: 100%;
  height: 557px;
  object-fit: cover;
  border-radius: 15px;
}

/* Контент */
.news-single__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.news-single__content .news__category {
  text-align: center;
  color: rgba(23, 23, 23, 0.4);
  font-family: "Golos Text", "SegoeUIWeb", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  text-transform: uppercase;
}

.news-single__content .news__subheading {
  text-align: center;
  color: #171717;
  font-family: "Golos Text", "SegoeUIWeb", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.96px;
  text-transform: uppercase;
}

.news-single__text {
  max-width: 656px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-single__text p {
  color: rgba(23, 23, 23, 0.7);
  font-family: "Golos Text", "SegoeUIWeb", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  text-align: center;
  margin: 0;
}

/* Кнопка возврата */
.news-single__back {
  width: 100%;
  max-width: 1240px;
  display: flex;
  justify-content: flex-start;
}

.news__back-link {
  color: rgba(23, 23, 23, 0.7);
  font-family: "SegoeUIWeb";
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.news__back-link:hover {
  color: #171717;
}

@media (max-width: 980px) {
  .news-single__container {
    gap: 30px;
  }

  .breadcrumbs {
    padding: 0 25px;
  }

  .breadcrumbs__container {
    padding: 10px 25px;
  }

  .breadcrumbs__item a {
    font-size: 16px;
  }

  .news-single__img {
    height: 300px;
  }

  .news-single__content .news__category {
    font-size: 16px;
  }

  .news-single__content .news__subheading {
    font-size: 20px;
  }

  .news-single__text {
    max-width: 100%;
    padding: 0 25px;
  }

  .news-single__text p {
    font-size: 16px;
  }

  .news-single__back {
    padding: 0 25px;
  }
}

/* =============================================
   BLOG SINGLE — COUTURE-STYLE LAYOUT
   ============================================= */

.news-single-page {
  padding: 36px 0 56px;
}

.news-single__text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  text-align: center;
  padding: 0 36px;
  box-sizing: border-box;
}

.news-single__text-block--narrow {
  max-width: 700px;
}

.news-single__text-block--wide {
  max-width: 800px;
}

.news-single__intro {
  margin: 60px 0 54px;
}

.news-single__eyebrow {
  margin: 0;
  color: rgba(23, 23, 23, 0.4);
  text-align: center;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 18px;
  font-weight: 350;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.news-single__title {
  margin: 0;
  color: #171717;
  text-align: center;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 28px;
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.news-single__copy {
  margin: 0;
  color: rgba(23, 23, 23, 0.7);
  text-align: center;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 18px;
  font-weight: 350;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.news-single__copy p {
  margin: 0;
}

.news-single__copy p + p {
  margin-top: 0.8em;
}

.news-single__copy--intro {
  max-width: 540px;
}

/* Hero media */
.news-single__hero-media-section {
  margin-bottom: 80px;
}

.news-single__container--hero-media {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.news-single__hero-media {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #f4f4f4;
}

.news-single__hero-image {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center top;
}

/* History / content section */
.news-single__history {
  margin-bottom: 60px;
}

.news-single__copy--history {
  max-width: 700px;
  text-align: left;
}

.news-single__copy--history p {
  color: rgba(23, 23, 23, 0.7);
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 18px;
  font-weight: 350;
  line-height: 1.5;
  letter-spacing: -0.04em;
  margin: 0;
}

.news-single__copy--history p + p {
  margin-top: 1em;
}

/* Images inside blog content - gallery style */
.news-single__copy--history img {
  display: block;
  width: 100%;
  border-radius: 18px;
  margin: 32px 0;
  object-fit: cover;
}

.news-single__copy--history .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 32px 0;
}

.news-single__copy--history .wp-block-gallery img {
  margin: 0;
  height: 100%;
  min-height: 300px;
}

.news-single__copy--history .wp-block-image {
  margin: 32px 0;
}

.news-single__copy--history .wp-block-image img {
  margin: 0;
}

/* Back link in couture format */
.news-single-page .news-single__back {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
}

/* ===== Responsive: Blog couture-style ===== */
@media (max-width: 980px) {
  .news-single-page {
    padding: 20px 0 40px;
  }

  .news-single__intro {
    margin: 30px 0 30px;
  }

  .news-single__text-block {
    padding: 0 20px;
  }

  .news-single__title {
    font-size: 24px;
  }

  .news-single__eyebrow {
    font-size: 16px;
  }

  .news-single__hero-media-section {
    margin-bottom: 40px;
  }

  .news-single__container--hero-media {
    padding: 0 20px;
  }

  .news-single__hero-image {
    max-height: 400px;
  }

  .news-single__history {
    margin-bottom: 40px;
  }

  .news-single__copy--history p {
    font-size: 16px;
  }

  .news-single__copy--history .wp-block-gallery {
    grid-template-columns: 1fr;
  }

  .news-single-page .news-single__back {
    padding: 0 20px;
  }
}

/* --- FIX: на мобиле скрываем десктопные крошки и показываем мобильные ---
   Нужно, так как news.css подключён после breadcrumbs.css
   и его правила .breadcrumbs { display: flex } перебивают
   глобальный брейкпойнт из breadcrumbs.css */
@media (max-width: 480px) {
  .breadcrumbs {
    display: none !important;
  }

  .breadcrumbs__mob {
    display: block !important;
  }
}


/* === Список «Неделя моды» на мобилке ===================================
   .news--editorial-list { margin: 0 auto } обнулял боковые поля секции,
   карточки прилипали к краям экрана. Ниже 480px одна карточка в
   двухколоночной сетке занимала полэкрана, и длинный анонс шёл узкой
   колонкой в 150px — переводим в одну колонку. */
@media (max-width: 980px) {
  .news--editorial-list {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 480px) {
  .editorial-page--fashionweek .news--editorial-list {
    grid-template-columns: 1fr;
  }
}
