/* ===== BASE ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f9fff9;
  color: #2f7e32;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


a {
  color: #2f7e32;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4f21;
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 2px solid #d6ecd6;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-logo img.logo-img {
  height: 40px;
  width: auto;
}

/* ===== SITE NAVIGATION ===== */
.site-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.site-footer {
  background-color: #f0fdf0;
  padding: 1.8rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #2f7e32;
  border-top: 2px solid #d6ecd6;
  margin-top: auto;
}

.site-navigation a {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: #2f7e32;
  color: white;
  padding: 3rem 1.5rem 3rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: 'Noto Sans JP', sans-serif;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: white;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.5rem;
}

.mobile-menu a span.jp {
  font-size: 14px;
  font-weight: 300;
  margin-left: 1rem;
  white-space: nowrap;
  opacity: 0.9;
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 32px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== HAMBURGUER BUTTON ===== */
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: #2f7e32;
  cursor: pointer;
}

/* ===== NOVIDADES ===== */
.news-section {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  background: #ffffff;
  border: 2px solid #d6ecd6;
  border-radius: 8px;
  padding: 2rem 3rem;
  box-shadow: 0 4px 12px rgba(47, 126, 50, 0.15);
}

.news-section h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.news-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid #d6ecd6;
  padding-bottom: 1rem;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item h2 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.news-item p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
  color: #3f7f3f;
}

.news-item time {
  font-size: 0.9rem;
  font-style: italic;
  color: #629662;
}

/* ===== FORMULÁRIO PARA ADICIONAR NOTÍCIAS ===== */
form#news-form {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  padding: 1.5rem 3rem;
  background: #e6f0e6;
  border: 2px solid #2f7e32;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form#news-form label {
  font-weight: 700;
}

form#news-form input[type="text"],
form#news-form textarea,
form#news-form input[type="date"] {
  padding: 0.6rem;
  font-size: 1rem;
  border: 2px solid #2f7e32;
  border-radius: 6px;
  font-family: inherit;
  color: #2f7e32;
  resize: vertical;
}

form#news-form textarea {
  min-height: 80px;
}

form#news-form button {
  width: 160px;
  padding: 0.7rem;
  font-size: 1.1rem;
  background-color: #2f7e32;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
  align-self: flex-start;
}

form#news-form button:hover {
  background-color: #1d4f21;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-navigation {
    display: none;
  }

  .site-logo img.logo-img {
    height: 35px;
  }

  .news-section,
  form#news-form {
    padding: 1.5rem 1rem;
    margin: 0 1rem 2rem;
  }

  .news-section h1 {
    font-size: 1.8rem;
  }

  .news-item h2 {
    font-size: 1.3rem;
  }

  .news-item p {
    font-size: 1rem;
  }

  form#news-form {
    width: 100%;
    padding: 1rem 1rem;
  }

  form#news-form button {
    width: 100%;
    font-size: 1rem;
  }
}
