.news-page-container {
  position: relative;
  background-color: rgb(250, 250, 250);
}

.sticky-article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0px auto;
  max-width: calc(1200px - 3rem);
  width: 70%;
  height: 250px;
  padding: 20px;
  position: absolute;
  top: 750px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(255, 255, 255);
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: inherit;
}

.sticky-article p {
  color: rgb(252, 180, 47);
  text-decoration: underline;
}

.news-main-image-container {
  position: relative;
  text-align: center;
  display: flex;
  width: 100%;
  height: 100vh;

  background-image: url('../assets/images/news_main.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.news-main-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(250, 250, 250);
  clip-path: polygon(0 86%, 100% 70%, 100% 100%, 0% 100%);
}

.news-content-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.news-content {
  background-color: rgb(250, 250, 250);
  max-width: 1200px;
  width: 100%;
  columns: 3;
  column-gap: 40px;
  padding: 0 2rem;
  margin: 3rem 0;
}

.news-article-preview-container {
  width: 100%;
  max-width: 500px;
  height: auto;
  cursor: pointer;
  background-color: white;
  overflow: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.news-article-preview-container :hover > h3 {
  color: rgb(252, 180, 47);
}

.news-article-preview-container:hover > img {
  opacity: 0.8;
}

.preview-data {
  background-color: white;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.preview-data h3 {
  font-weight: 800;
  font-size: 1.5rem;
  text-align: end;
}

.preview-data p {
  font-size: 1rem;
  line-height: 25px;
}

.news-vertical-text {
  display: block;
  position: absolute;
  top: 42rem;
  right: -10rem;
  transform: rotate(180deg);
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  line-height: 1;
  font-size: 11.25rem;
  letter-spacing: 25px;
  text-transform: uppercase;
  opacity: 0.03;
  pointer-events: none;
}

/* ------------------------MEDIA------------------------ */
@media (max-width: 500px) {
  .news-page-container {
    position: unset;
    display: flex;
    flex-direction: column;
  }
  .sticky-article {
    position: unset;
    transform: none;
    margin-top: 3rem;
  }

  .news-main-image-container {
    height: 40vh;
  }

  .news-main-image-container::after {
    content: none;
  }

  .sticky-article h1 {
    text-align: center;
  }

  .news-vertical-text {
    display: none;
  }
}

@media (501px <= width <= 1000px) {
  .news-vertical-text {
    display: none;
  }

  .news-content {
    columns: 2;
  }
}
