.news-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(330px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-auto-flow: dense;
}

.news-page__grid-item--wide {
  grid-column: span 2;
}

.news-page__card {
  background-color: var(--color-white);
  color: var(--color-black);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-200);
  position: relative;
}

.news-page__card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.news-page__card:hover .news-page__card-img {
  transform: scale(1.05);
}

.news-page__card-content {
  padding: 15px 20px 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}

.news-page__card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-page__card-date {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
}

.news-page__card-categories {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-page__card-category {
  display: block;
  max-width: fit-content;
  padding: 7px 15px;
  border-radius: 130px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  backdrop-filter: blur(20px);
  text-decoration: none;
}

.news-page__card-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  flex-grow: 1;
  color: var(--color-black);
}

.news-page__load-more-btn {
  width: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  padding: 12px;
  border-radius: 100px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-700);
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-page__load-more-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.news-page__not-found {
  font-size: var(--font-size-3xl);
  color: var(--color-black);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  text-align: center;
  padding-top: 20px;
}

.news-page__pagination-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-page__card--wide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: transparent;
  color: var(--color-white);
  box-shadow: none;
  overflow: hidden;
  height: 100%;
  min-height: 410px;
}

.news-page__card--wide:hover {
  transform: translateY(-5px);
}

.news-page__card--wide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.news-page__card--wide-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.news-page__card--wide-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.news-page__card--wide-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-page__card--wide-date {
  font-size: var(--font-size-base);
  color: var(--color-secondary);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
}

.news-page__card--wide-title {
  font-size: var(--font-size-xl);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

@media (min-width: 1921px) {
  .news-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1700px) {
  .news-page__card-content {
    padding: 15px 15px 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 125px;
  }

  .news-page__card--wide {
    position: relative;
    min-height: 360px;
  }
}

@media (max-width: 1440px) {
  .news-page__grid {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .news-page__grid-item--wide {
    grid-column: 1;
  }

  .news-page__card--wide-title {
    font-size: 16px;
  }

  .news-page__card--wide {
    background-color: var(--color-white);
    color: var(--color-black);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-200);
    position: relative;
  }

  .news-page__card--wide::after {
    display: none;
  }

  .news-page__card--wide-img {
    position: static;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: all 0.3s ease;
    flex-shrink: 0;
    height: auto;
  }

  .news-page__card--wide-content {
    padding: 15px 20px 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: static;
    height: auto;
    min-height: 150px;
    flex-grow: 1;
  }

  .news-page__card--wide-meta {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .news-page__card--wide-date {
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-tight);
  }

  .news-page__card--wide-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    flex-grow: 1;
    color: var(--color-black);
  }

    .news-page__card-content {
    min-height: 100px;
  }

  /* .news-page__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: transparent;
  color: var(--color-white);
  box-shadow: none;
  overflow: hidden;
}

.news-page__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.news-page__card-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.news-page__card-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.news-page__card-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-page__card-date {
  font-size: var(--font-size-base);
  color: var(--color-secondary);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
}


.news-page__card-title {
    font-size: 16px;
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
} */
}
