:root {
  --green: #0C6B32;
  --green-dark: #084D24;
  --green-light: #E8F5EC;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --border: #DDEFE3;
  --max-width: 1080px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #F7FBF8;
  line-height: 1.65;
}
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
}
.logo { display: flex; align-items: center; }
.logo img { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  display: block;
  border-radius: 2px;
}

nav#siteNav { display: flex; align-items: center; gap: 20px; }
nav#siteNav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
nav#siteNav a:hover { text-decoration: underline; }

.nav-search input {
  margin: 0;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  width: 180px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.nav-search input::placeholder { color: rgba(255,255,255,0.75); }
.nav-search input:focus { background: var(--white); color: var(--text); outline: none; }

/* ---------- Layout ---------- */
main { min-height: 60vh; padding: 32px 20px; }
h1 { font-size: 28px; margin-top: 0; }
h1, h2, h3 { color: var(--green-dark); }
a { color: var(--green); }

/* ---------- Cards / grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.card h2 { font-size: 18px; margin: 6px 0 8px; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--green); }
.card p { color: var(--text-muted); font-size: 14px; margin: 0 0 10px; }
.card small { color: #8A8A8A; font-size: 12px; }

/* ---------- Article page ---------- */
article img { max-width: 100%; border-radius: 8px; margin: 18px 0; }
article { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 4px; color: var(--text-muted); }
input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; }

table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; }
table th, table td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; font-size: 14px; }
table th { background: var(--green-light); color: var(--green-dark); }

.badge { display: inline-block; background: var(--green); color: var(--white); font-size: 12px; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }

.pagination { margin: 28px 0; display: flex; align-items: center; gap: 16px; }
.pagination a { text-decoration: none; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--white); padding: 26px 0; margin-top: 48px; font-size: 13px; }
.site-footer .wrap p { margin: 4px 0; opacity: 0.9; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  nav#siteNav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 8px 0;
  }
  nav#siteNav.open { display: flex; }
  nav#siteNav a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-search { padding: 12px 20px; }
  .nav-search input { width: 100%; }
  h1 { font-size: 22px; }
  main { padding: 20px 16px; }
  article { padding: 18px; }
}
