@font-face {
  font-family: 'ESSC-light';
  src: url('../fonts/EncodeSansSemiCondensed-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ESSC-regular';
  src: url('../fonts/EncodeSansSemiCondensed-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ESSC-bold';
  src: url('../fonts/EncodeSansSemiCondensed-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body.newsList {
  background-image: url("/assets/images/wavy.png") !important;
}

#header.newsList {
  height: 80px !important;
  background-image: none;
}

#navbar.newsList {
  background: linear-gradient(180deg, #006084, transparent);

}

#navbar.newsList .nav-link {
  color: #eee;
  font-family: ESSC-regular;
  text-shadow: 0px 0px 1px #777;
}

#navbar.newsList .nav-link:hover {
  color: #fff;
}



.news-list-container {
  max-width: 90%;
  margin: 3rem auto;
  padding: 0 1rem;
  min-height: calc(100vh - 80px);
}

.page-title {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 4rem;
  color: white;
  font-family: ESSC-bold;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);

  .news-card-image {
    filter: hue-rotate(10deg);
  }
}

.news-card-image {
  width: calc(100% - 20px);
  margin: 10px;
  border-radius: 10px;
  height: 180px;
  object-fit: cover;
}

.news-card-content {
  padding: 1.2rem;
}

.news-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  font-family: ESSC-light;
}

.news-title {
  font-size: 1.2rem;
  margin: 0.3rem 0;
  color: #34495e;
  font-family: ESSC-bold;
}

.news-description {
  font-size: 0.95rem;
  color: #555;
  font-family: ESSC-light;
}