/* ==================== Стили для категорий ==================== */

/* Заголовок */
.title-category {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.title-category span {
    text-align: center;
    color: #7d7c7a;
}
.title-category:before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin-bottom: 10px;
}
.title-category:after {
    content: "";
    display: block;
    width: 50%;
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
}

/* -------------------- Большая новость -------------------- */
#block-category .news-big.descktop-only {
    display: flex;
    gap: 20px;
    align-items: stretch; /* растягиваем оба блока по высоте */
    border-bottom: 1px solid #fff;
    padding-bottom: 20px;
    box-sizing: border-box;
}

/* Делим пополам: изображение и контент */
#block-category .news-big.descktop-only > a,
#block-category .news-big.descktop-only > div {
    flex: 1 1 50%;
    box-sizing: border-box;
}

/* Изображение */
#block-category .news-big.descktop-only > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент */
#block-category .news-big.descktop-only > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    gap: 10px;
    padding: 0 10px; /* внутренний отступ */
    position: relative; /* для градиента */
    overflow: hidden;
}

/* Градиент для текста большой новости */
#block-category .news-big.descktop-only .article-category::after {
    content: "";
    position: absolute;
    bottom: 10px; /* отступ снизу */
    left: 0;
    width: 100%;
    height: 100px; /* увеличиваем высоту, чтобы градиент был выше */
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    pointer-events: none;
}


/* -------------------- Маленькие новости -------------------- */
#block-category .news-small-wrapper.descktop-only {
    display: flex;
    gap: 40px;
    position: relative; /* для ::before */
}

#block-category .news-small.descktop-only {
    flex: 1;
    padding: 20px 0; /* убрали лишние отступы слева/справа */
    position: relative; /* для ::after */
}

#block-category .news-small.descktop-only:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    right: -20px;
    width: 1px;
    height: 90%;
    background-color: #ccc;
}

#block-category .news-small-wrapper.descktop-only:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #ccc;
}

/* Миниатюра */
#block-category .news-small img,
#block-category .news-big img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Высота изображений */
#block-category .news-small img {
    height: 200px;
    margin-bottom: 10px;
}
#block-category .news-big img {
    height: auto;
}

/* Контент под изображением */
#block-category .news-small div,
#block-category .news-big div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Линии для маленьких новостей */
#block-category .news-small.with-white-lines {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

/* Стили для tablet*/
@media (max-width: 1024px) {
  .title-category:before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin-bottom: 10px;
  }
}


/* Стили для мобильного*/
@media (max-width: 500px) {
  .title-category:before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin-bottom: 10px;
}
  #block-category {
    padding-bottom: 20px;
  }
  
  .news-small-mobile  {
  display: flex;
  gap: 12px;
  }
  .world-bg{
    background-color:  #17b5cc;
  }
  .news-small-mobile a {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    line-height: 19px;
  }
  .margin-top-10 {
    margin-top: 20px;
  }
  .padding-top-10 {
    padding-top: 10px;
  }
  .news-small-mobile img {
    flex-shrink: 0; 
    width: 100px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 4px;
  }
  .news-small-mobile {
    border-top: 1px solid #ccc;
  }
  /* Большая новость мобильная */
.news-big-mobile.mobile-only {
    display: flex;
    flex-direction: column;
    gap: 10px; /* расстояние между изображением и контентом */
    width: 100%;
}

.news-big-mobile.mobile-only a:first-child {
    display: block;
    width: 100%;
}

.news-big-mobile.mobile-only a:first-child img {
    width: 100%;
    height: auto; /* сохраняем пропорции */
    display: block;
    object-fit: cover;
}

}
/* Стили для мобильного конец*/
 #block-category .news-small-wrapper.descktop-only.category-last {
  display: flex;
  gap: 15px;
  flex-direction: column!important;
}
 #block-category .news-small-wrapper.descktop-only.category-last:before {
  background-color: #fff;
}
#block-category .news-small-wrapper.descktop-only.category-last .news-small-mobile.margin-top-10.padding-top-10 {
    display: flex;
    gap: 15px;
    flex-direction: row!important;
}
 #block-category .news-small-wrapper.descktop-only .news-small-mobile > div {
  flex: 1 1 33.333%;
  box-sizing: border-box;
}

/* Дата */
.day-of-the-week {
  font-family: "Bona Nova", serif;
  font-size: 25px;
}

/* Текст с ограничением */
 #block-category .news-small-wrapper.descktop-only .article-category {
  position: relative;
  overflow: hidden;
  max-height: 4.5em; /* 3 строки */
}

 #block-category .news-small-wrapper.descktop-only .article-category p {
  font-size: 15px;
  line-height: 1.5em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

 #block-category .news-small-wrapper.descktop-only .article-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5em;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* Изображения */
 #block-category .news-small-wrapper.descktop-only .large-img-category {
  position: relative;
  overflow: hidden;       /* чтобы обрезалось по контейнеру */
  height: 250px;          /* фиксированная высота (подбери под макет) */
}

 #block-category .news-small-wrapper.descktop-only .large-img-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* картинка заполняет контейнер */
  transition: transform 0.6s ease; /* плавный эффект */
}

 #block-category .news-small-wrapper.descktop-only .large-img-category:hover img {
  transform: scale(1.1); /* эффект «лупы» */
}


/*Блок мнение*/
/* Контейнеры */
#block-category-expert .news-small-wrapper.descktop-only .news-small-mobile {
  display: flex;
  gap: 15px;
}

#block-category-expert .news-small-wrapper.descktop-only .news-small-mobile > div {
  flex: 1 1 33.333%;
  box-sizing: border-box;
}

/* Дата */
.day-of-the-week {
  font-family: "Bona Nova", serif;
  font-size: 25px;
}

/* Текст с ограничением */
#block-category-expert .news-small-wrapper.descktop-only .article-category {
  position: relative;
  overflow: hidden;
  max-height: 4.5em; /* 3 строки */
}

#block-category-expert .news-small-wrapper.descktop-only .article-category p {
  font-size: 15px;
  line-height: 1.5em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#block-category-expert .news-small-wrapper.descktop-only .article-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5em;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* Изображения */
#block-category-expert .news-small-wrapper.descktop-only .large-img-category {
  position: relative;
  overflow: hidden;       /* чтобы обрезалось по контейнеру */
  height: 250px;          /* фиксированная высота (подбери под макет) */
}

#block-category-expert .news-small-wrapper.descktop-only .large-img-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* картинка заполняет контейнер */
  transition: transform 0.6s ease; /* плавный эффект */
}

#block-category-expert .news-small-wrapper.descktop-only .large-img-category:hover img {
  transform: scale(1.1); /* эффект «лупы» */
}



@media (max-width: 500px) {
     #block-category-expert .news-big-mobile.mobile-only, #block-category .news-big-mobile.mobile-only {
        padding: 20px 20px!important;
    }

    .news-big {
        display: flex;
        flex-direction: column;
    }
    .category .title-category {
      padding: 0 20px;
    }
}