.blog_articles {

    width: 100%;
    position: relative;
    /* padding: 80px 0; */
    overflow: hidden;
    /* margin-bottom: 100px; */

    @media (min-width:280px) and (max-width:359.98px) {
        padding: 0;
        margin-bottom: 50px;
        padding-top: 30px;
    }

    @media (min-width:360px) and (max-width:543.98px) {
        padding-top: 98px;
        margin-bottom: 0px;
        margin-bottom: 0px;
    }


    @media (min-width:544px) and (max-width:767.98px) {
        padding-top: 98px;
        margin-bottom: 0px;
        margin-bottom: 0px;
    }

    @media (min-width:768px) and (max-width:1023.98px) {
        padding-top: 138px;
        margin-bottom: 0px;
        margin-bottom: 0px;
    }

    @media (min-width:1024px) and (max-width:1169.98px) {
        padding-top: 138px;
        margin-bottom: 0px;
        margin-bottom: 0px;
    }

    @media (min-width:1170px) and (max-width:1279.98px) {
        padding-top: 138px;
        margin-bottom: 0px;
        margin-bottom: 0px;
    }

    @media (min-width:1280px) and (max-width:1599.98px) {
        padding-top: 138px;
        margin-bottom: 0px;
        margin-bottom: 0px;
    }

    @media (min-width:1600px) {
        padding: 190px 0 80px 0;
    }

    .title {
        margin-bottom: 25px;
        display: flex;
        justify-content: flex-start;

        @media (min-width:280px) and (max-width:767.98px) {
            margin-bottom: 20px;
        }

        h1 {
            color: #fff;
            font-size: 65px;
            font-weight: 500;
            line-height: 130%;
            letter-spacing: 0%;
            text-align: left;
            text-transform: uppercase;

            @media (min-width:280px) and (max-width:359.98px) {
                text-align: center;
                font-size: 30px;
                line-height: 130%;
            }

            @media (min-width:360px) and (max-width:543.98px) {
                text-align: center;
                font-size: 30px;
                line-height: 130%;
            }

            @media (min-width:544px) and (max-width:767.98px) {
                text-align: center;
                font-size: 30px;
                line-height: 130%;
            }

            @media (min-width:768px) and (max-width:1023.98px) {
                text-align: center;
                font-size: 30px;
                line-height: 130%;
            }

            @media (min-width:1024px) and (max-width:1169.98px) {}

            @media (min-width:1170px) and (max-width:1279.98px) {}

            @media (min-width:1280px) and (max-width:1439.98px) {}

            span {
                color: rgb(44, 141, 250);
            }
        }
    }
}

/* news grid */
/* Общая сетка для карточек (Grid) */
.news-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 колонка на мобильных */
  row-gap: 14px;
  column-gap: 10px;
}

/* Вертикальные планшеты */
@media (min-width: 600px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
  }
}

/* Десктоп */
@media (min-width: 901px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  }
}

/* Сама карточка (Flex) */
.news-card {
  position: relative;
  height: 240px; /* Минимальная высота, чтобы на мобилках контент не вылезал */
  border-radius: 10px;
  overflow: hidden;
  
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Прижимает весь текст к низу карточки */

  @media(max-width:767.98px) {
    height: 200px;
  }

  @media(min-width:768px) and (max-width:1023.98px) {
    height: 200px;
  }


  &::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 2;
    /* color: rgb(2, 15, 29); */
  }

  &::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    /* background-image: linear-gradient(180deg, transparent 60.46%, #020f1d); */
    background: linear-gradient(to top, rgba(2, 15, 29, 0.9) 25%, rgba(0, 0, 0, 0) 100%);
    border-radius: inherit;
    z-index: 3;
    /* opacity: .9; */
    transition: opacity .2s;
    pointer-events: none;
  }

  .article_abs_link {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 5;
  }
}

/* Картинка-подложка строго на весь фон */
.news-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Контейнер для текста поверх картинки */
.news-card__content {
  position: relative;
  z-index: 4;
  padding: 24px;
  padding-right: 10px;
  
  display: flex;
  flex-direction: column;
  gap: 8px; /* Одинаковый отступ между датой, заголовком и текстом */

  @media(max-width:767.98px) {
    padding: 0px 8px 20px 8px;
  }

  @media(min-width:768px) and (max-width:1023.98px) {
    padding: 0px 8px 20px 8px;
  }
}

/* Дата */
.news-card__date {
  font-family: Montserrat-Regular, sans-serif;
  font-size: .7rem;
  line-height: 140%;
  color: #a3a2a2;

  @media(max-width:767.98px) {
    font-size: 12px;
  }

  @media(min-width:768px) and (max-width:1023.98px) {
    font-size: 14px;
  }
}

/* Заголовок (Строго 2 строки с троеточием и фиксацией высоты) */
.news-card__title {
 font-family: Manrope-Bold, sans-serif;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 140%;
  margin: 0;
  /* text-transform: uppercase; */
 
  
  /* Обрезка текста до 2 строк с троеточием */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* Главный секрет: резервируем место ровно под 2 строки. 
     Даже если заголовок в 1 строку, его блок займет высоту двух, 
     и текст ниже во всех карточках ряда начнется на одном уровне. */
  min-height: calc(1.3em * 2); 

  @media(max-width:767.98px) {
    font-size: 16px;
    min-height: auto;
  }

  @media(min-width:768px) and (max-width:1023.98px) {
    font-size: 16px;
  }
}

/* Описание */
.news-card__text {
 font-family: Montserrat-Regular, sans-serif;
  margin: 0;
  font-size: .8rem;
  line-height: 140%;
  /* color: #fff; */
  color: #a3a2a2;

  @media(max-width:767.98px) {
    font-size: 12px;
  }

  @media(min-width:768px) and (max-width:1023.98px) {
    font-size: 14px;
  }
}
