.latest_news_header{
    text-align: center;
    margin-top: 13rem;
    margin-bottom: 3rem;
    font-weight: 700;
    font-size: 35px;
}

.news_section {
    font-size: 20px;
    width: 100%;
    padding-bottom: 5rem;
    margin-top: -1%;
}


.all_news_items {
    width: 100%; /* Adjust based on your preference */
    text-align: center; /* Center the text within its container */
}

.achievement-header {
    text-align: center;
    color: beige; /* Change the color to beige */
    font-size: 35px;
    width: 100%; 
    margin-bottom: 2rem; /* Add space below the header */
}

.news_section p {
    text-align: justify; /* Aligns the text to justify */
    margin: 0 auto; /* Centers the paragraph within its container */
    max-width: 500px; /* Adjust the maximum width as needed */
    padding-bottom: 15px; /* Add bottom padding to increase space between sentences */
    line-height: 1.74;
    font-family: 'Manrope', sans-serif;
}

.all_news_items .button {
    margin-top: 3rem; /* Add space between paragraph and button */
    border-radius: 50px;
    margin-bottom: 100px;
}

.news_item{
    max-width: 300px;
    margin-left: 2rem;
    margin-right: 2rem;
    overflow: clip;
}

.news_img{
    width: auto;
    height: 220px;
}


/* Each card has its own width based on image width*/
  .news_img_container{
    overflow: clip;
  }

/* Images 3,4 and 6 are scaled 2x in te HTML */

.news_item_text{
    text-align: left;
    background-color: white;
    color: black;
    font-weight: 450;
    height: 250px;
    font-size: 24px;
    line-height: 1.4;
    padding-right: 2rem;
    padding-left: 1rem;
    padding-top: 2rem;
    display: block;
}

.news_date{
    background-color: white;
    color: rgb(41, 41, 41);
    text-align: left;
    padding-left: 1rem;
    padding-bottom: 2rem;
    font-size: 20px;
}



/* Infinite Scroll */
.scroller {
  max-width: 1500px;
  margin: 0 auto; /* Center the scroller horizontally */
  text-align: center; /* Center the content inside the scroller */
}

.scroller__inner {
  padding-block: 1rem;
  display: inline-flex; /* Use inline-flex to make it inline and center it */
  flex-wrap: wrap;
  gap: 1rem;
}

  
  .scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(
      90deg,
      transparent,
      white 20%,
      white 80%,
      transparent
    );
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  }
  
  .scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s)
      var(--_animation-direction, forwards) linear infinite;
  }
  
  .scroller[data-direction="right"] {
    --_animation-direction: reverse;
  }
  
  .scroller[data-direction="left"] {
    --_animation-direction: forwards;
  }
  
  .scroller[data-speed="fast"] {
    --_animation-duration: 20s;
  }
  
  .scroller[data-speed="slow"] {
    --_animation-duration: 280s;
  }
  
  @keyframes scroll {
    to {
      transform: translate(calc(-100% - 0.5rem));
    }
  }
  
  /* Styles */
  :root {
    --clr-neutral-100: hsl(0, 0%, 100%);
    --clr-primary-100: hsl(205, 15%, 58%);
    --clr-primary-400: hsl(215, 25%, 27%);
    --clr-primary-800: hsl(217, 33%, 17%);
    --clr-primary-900: hsl(218, 33%, 9%);
  }
  
  .tag-list {
    margin: 0;
    padding-inline: 0;
    list-style: none;
  }
  
  .tag-list li {
    padding: 0.3rem;
    background: var(--clr-primary-400);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem -0.25rem var(--clr-primary-900);
  }
  

  /* Mobile Styles */
@media (max-width: 768px) {
  .news_item{
    max-width: 250px;
    height: 445px;
    margin-left: 3rem;
    margin-right: 3rem;
  }
  .news_img {
    width: 100%; /* Full width for images */
    max-width: 250px; /* Limit max width of images */
    height: auto; /* Maintain aspect ratio */
  }
  .news_item_text {
    font-size: 23px; /* Reduce font size for news text */
    padding: 1rem; /* Add padding around text */
    line-height: 1.5; /* Adjust line height for readability */
    margin-bottom: -0.5rem;
  }

}
