/* ===== Base Styles (used across the page) ===== */
html, body {
  height: 100%;
  margin: 0;
}


body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f4f4e8;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Header ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #155850;
  color: white;
}

.header-logo img {
  max-height: 180px;
  width: auto;
}

/* ===== Navigation ===== */
nav {
  background: #083f3d;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

nav a:hover {
  transform: scale(1.2);
  text-decoration: none;
}

/* ===== Main / Publications List ===== */
main {
  flex: 1;
  max-width: 800px;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 3rem auto;
  padding: 0 2.25rem;
}

main h2 {
  font-size: 2.5rem;
  color: #155850;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Cards */
.news-link {
  text-decoration: none;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-link:hover .news-item {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(21,88,80,0.4);
}

.news-item h3 {
  color: #155850;
  margin-top: 0;
  margin-bottom: 0.0rem;
}

.news-item .date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.0rem;
  margin-top: 0.0rem;
}

/* ===== Footer ===== */
footer {
  background: #083f3d;
  color: white;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
}

footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer a {
  color: #aad6d3;
  margin: 0 0.5rem;
  text-decoration: none;
}

footer a img {
  height: 48px;
  vertical-align: middle;
  transition: all 0.3s;
}

footer a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

.news-link,
.news-link:visited,
.news-link:hover,
.news-link:active,
.news-link:focus {
  color: inherit;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 500px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  .header-logo img {
    max-height: 60px;
    margin-bottom: 0.5rem;
  }
  .header-title { margin: 0; }
}

@media (min-width: 1100px) {
  main { max-width: 85ch; }
}
