.news-item {
  display: flex;
  flex-direction: column;
}

.news-header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  font-size: var(--text-3xl);
  color: var(--text-color);
  margin-bottom: 26px;
}

.news-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 31px;
  margin-bottom: 32px;
}

.stroke {
  margin-left: 12px;
  height: 2px;
  flex: 1;
  background-color: var(--dark-card-backgroundcolor);
}

.news-item__image {
  width: 100%;
  margin-bottom: 17px;
  aspect-ratio: 16 / 8;
}

.news-item__title {
  color: var(--text-color);
  font-weight: bold;
  text-align: left;
  font-size: var(--text-sm);
  margin-bottom: 17px;
}

.news-item__text {
  color: var(--text-color);
  text-align: left;
  font-size: var(--text-sm);
  width: 100%;
  white-space: normal;
  word-wrap: break-word;
  letter-spacing: 0px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  display: -webkit-box;
}

/* Small devices (sm) - 640px */
@media (max-width: 640px) {
  .news-content {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 25px; /* Adjust the gap as needed */
  }

  .news-item {
    background-color: var(--dark-card-backgroundcolor);
    padding: 30px 25px;
    box-shadow: 0px 3px 10px #0000005c;
  }

  .news-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: var(--text-xl);
    margin-bottom: 12px;
  }

  .news-header__second {
    font-size: var(--text-sm);
  }
}

/* Medium devices (md) - 768px */
@media (min-width: 641px) and (max-width: 768px) {
  .news-content {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 25px; /* Adjust the gap as needed */
  }
  .news-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    font-size: var(--text-xl);
  }
  .news-header__second {
    font-size: var(--text-sm);
  }
}

/* Extra-large devices (xl) - 1280px */
@media (min-width: 769px) and (max-width: 1280px) {
  .news-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 31px; /* Adjust the gap as needed */
  }
}

/* Double extra-large devices (2xl) - 1536px */
@media (min-width: 1281px) and (max-width: 1536px) {
  /* Your styles for double extra-large devices here */
}
