/* Reset and base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: #f0f8f4;
  color: #2a3a2b;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  left: 1rem;
}

header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #3b6e41; /* dark green */
  margin-bottom: 0.2rem;
  padding-top: 0;
  margin-top: 0;
}

header h2 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #3b6e41; /* dark green */
  margin-bottom: 0;
  position: relative;
  top: 1.2rem;
  right: 1rem;
}

header h1 span {
  font-size: 2rem;
  color: #000;
  font-weight: 100;
  margin: 0 0.2rem;
}

header h1 span span {
  transform: scale(1, 2.2);
  transform-origin: center;
  display: inline-block;
  position: relative;
  top: -0.8rem;
}

header h1 span img {
  top: 0.6rem;
  position: relative;
  height: 4rem;
  padding: 0 -0.2rem;
  margin: 0 -0.2rem;
}

header p {
  font-style: italic;
  color: #557755;
  font-size: 1.2rem;
  position: relative;
  top: -0.8rem;
  right: 1rem;
}

/* News container */
#news-container {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* News post box */
.news-post {
  background: white;
  border-left: 8px solid #88b04b; /* green dike-like bar */
  box-shadow: 0 4px 8px rgb(136 176 75 / 0.25);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

/* Slight wave background (dike/water theme) */
.news-post::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at center, #d9e9d3 30%, transparent 70%);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.news-post h2 {
  margin-top: 0;
  color: #2c5222;
}

.news-post p {
  position: relative;
  z-index: 1;
}

/* Images */
.news-image {
  display: block;
  margin: 1rem auto;
  max-width: 60%;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgb(136 176 75 / 0.3);
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  #news-container {
    max-width: 100%;
  }
}

/* Splash screen */
#splash {
  position: fixed;
  inset: 0;
  background: #fffef6;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeOut 1s ease-in-out 2s forwards;
}

#splash img {
  max-width: 40%;
  height: auto;
  opacity: 0.9;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.news-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.news-title {
  margin: 0;
  font-size: 1.3rem;
  color: #2c5222;
  flex-grow: 1;
}

.news-date {
  font-size: 0.9rem;
  color: #4c6e44;
  white-space: nowrap;
  text-align: right;
}

/* Hamburger button */
#hamburger {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #3b6e41;
  z-index: 1100;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#hamburger.open {
  transform: rotate(90deg);
}

/* Side menu */
#side-menu {
  position: fixed;
  top: 0;
  left: -240px;
  width: 180px;
  height: 100vh;
  background: #f5fdf7;
  border-right: 2px solid #88b04b;
  box-shadow: 4px 0 8px rgba(0,0,0,0.1);
  padding: 6rem 1rem;
  z-index: 1000;
  transition: left 0.3s ease;
}

#side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#side-menu li {
  margin-bottom: 1rem;
}

#side-menu a {
  text-decoration: none;
  font-weight: bold;
  color: #2a3a2b;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

#side-menu a:hover {
  color: #3b6e41;
}

#side-menu.open {
  left: 0;
}

