.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 25px;
}

.news-box {
  background: var(--background-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
  overflow: hidden;
}


.news-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #004080;
}

.news-title a {
  text-decoration: none;
  color: inherit;
}

.news-title a:hover {
  text-decoration: underline;
}


.news-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 15px;
}


.news-description {
  flex-grow: 1;
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
}


.news-box button {
  align-self: flex-start;
  font-size: 1rem;
}

@media (max-width: 500px) {
  .news-box {
    flex: 1 1 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
  }
}



.news-image {
  margin: 10px 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



@media (prefers-color-scheme: dark)
{
  .news-box {
    background-color: #000;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  }

  .news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #3090FF;
  }

  .news-date {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 15px;
  }


  .news-description {
    flex-grow: 1;
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 20px;
  }
}