

.news-list-content{
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    
    /* margin-top: 70px; */
}
.news-list-container {
    display: flex;
    flex-direction: column; 
    gap: 1.5rem;            
    width: 100%;
    /* margin-top: 70px; */
    margin-bottom: 50px;
    padding: 1rem;
  }

  .news-list-container {
    scrollbar-width: thin;
    scrollbar-color: #aaa transparent;
  }
  
  
  .news-list-items {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 750px;
    transition: trasform 0.3s ease;
    cursor: pointer;
  }

  .news-list-items:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
  
  .news-list-inner {
    display: flex;
    position: relative;
    align-items: stretch;
    background-color: #fefefe;
  }
  
  .news-date-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #140c49;
    color: white;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.6rem;
  }
  
  .news-date-badge .date-day {
    display: block;
    font-size: 1.2rem;
  }
  
  .news-date-badge .date-month {
    display: block;
    text-transform: uppercase;
    font-size: 0.5rem;
  }
  
  .news-image-container {
    flex: 1;
    max-width: 250px;
    overflow: hidden;
  }
  
  .news-image-container img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }
  
  .news-text-content {
    flex: 2;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .article-title {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    padding-right:40px;
    color: #140c49;
    cursor: pointer;
  }
  .header-news {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #140c49;
    border-bottom: 2px solid #140c49;
    padding-bottom: 0.5rem;
  }


  section {
    scroll-margin-top: 100px; /* cât de înalt e headerul tău */
}
  @media (max-width: 1200px) {
    .news-list-container {
        grid-auto-flow: row;
        grid-template-rows: none;
        grid-template-columns: 1fr;
      }
    
      .news-list-items{
        max-width: 550px;
      }
      .news-list-inner {
        flex-direction: column;
      }
    
      .news-image-container {
        max-width: 100%;
      }
    
      .news-text-content {
        padding: 1rem;
      }
  }