/* Nexme News - sửa lỗi khoảng cách và kéo giãn khối tin nổi bật */
.news-main {
  padding: 32px 0 42px;
}

.news-main__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 20px;
  align-items: start;
}

.news-main__content,
.news-main__sidebar {
  min-width: 0;
}

.news-main__content {
  display: grid;
  gap: 26px;
}

.news-main__sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.news-main .news-featured__content {
  align-items: start;
}

.news-main .featured-story {
  height: 430px;
  min-height: 0;
  align-self: start;
}

.news-main .featured-mini-list {
  height: 430px;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-self: start;
}

.news-main .featured-mini {
  min-height: 0;
  height: auto;
  overflow: hidden;
}

.news-main .featured-mini img {
  min-height: 0;
}

.news-main .latest-news__header {
  margin-bottom: 18px;
}

.news-main .news-sidebar--featured,
.news-main .ai-recommend {
  width: 100%;
}

.news-main .ai-recommend {
  position: static;
  top: auto;
}

@media (max-width: 1199px) {
  .news-main__layout {
    grid-template-columns: 1fr;
  }

  .news-main__sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-main__sidebar .news-sidebar--featured {
    grid-column: 1 / -1;
  }

  .news-main__sidebar .ai-recommend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023px) {
  .news-main .featured-story {
    height: 430px;
  }

  .news-main .featured-mini-list {
    height: auto;
    grid-template-rows: none;
  }

  .news-main .featured-mini {
    min-height: 170px;
  }
}

@media (max-width: 767px) {
  .news-main {
    padding-top: 24px;
  }

  .news-main__sidebar {
    grid-template-columns: 1fr;
  }

  .news-main .featured-story {
    height: 460px;
  }

  .news-main .featured-mini {
    min-height: 128px;
  }
}

@media (max-width: 479px) {
  .news-main .featured-story {
    height: auto;
    min-height: 490px;
  }
}
