.news-wrapper {
  display: flex;
  flex-direction: column;
  padding-block: 1.5rem;
  align-items: start;
  gap: 2rem;
}

.news-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(
    90deg,
    rgba(252, 223, 170, 0.212) 0%,
    rgba(238, 232, 222, 0.53) 100%
  );
}

.news-categories {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  border-radius: 0.5rem;
  z-index: 2;
  padding-block: 0.5rem;

  &::-webkit-scrollbar {
    display: none;
  }

  &:active {
    cursor: grabbing;
  }
}

.news-category {
  padding: 0.75rem 1rem;
  color: #453b27;
  background-color: white;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.3s;
  white-space: nowrap;

  &.active,
  &:hover {
    background-color: #ffdb9b;
  }
}
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: #453b27;
  transition: box-shadow 0.3s;

  &:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }
}

.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  flex: 1;
}

.news-date {
  font-size: 0.8125rem;
  color: #9e8e70;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.news-card-text {
  font-size: 0.875rem;
  color: #6b5d45;
  line-height: 1.5;
  flex: 1;
}

.news-card-link {
  font-size: 0.875rem;
  color: #b07d3a;
  text-decoration: underline;
  margin-top: auto;
}

.news-projects {
  padding: 0.5rem;
  right: 0.75rem;
  top: 0.75rem;
  position: absolute;
  background: linear-gradient(
    90deg,
    rgba(255, 175, 64, 0.8) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
}
@media all and (max-width: 1199px) {
  .news-list {
    gap: 1rem;
  }
}
@media all and (max-width: 940px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media all and (max-width: 767px) {
  .news-list {
    grid-template-columns: repeat(1, 1fr);
  }
  .news-section {
    padding: 1rem;
  }
  .news-categories {
    gap: 0.5rem;
  }

  .news-category {
    font-size: 0.875rem;
    padding: 0.75rem;
  }
}
