@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #F9F5F0;
  color: #333;
  line-height: 1.7;
}

/* ===== SIDEBAR ===== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background-color: #2E7D32;
  display: flex;
  flex-direction: column;
  padding: 2rem 0 1.5rem;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.5rem;
}

.sidebar-title a {
  color: inherit;
  text-decoration: none;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav > ul > li > a {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar nav > ul > li > a:hover,
.sidebar nav > ul > li > a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.sidebar nav ul ul {
  list-style: none;
}

.sidebar nav ul ul li a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.4rem 1.5rem 0.4rem 2.5rem;
  font-size: 0.87rem;
  font-weight: 400;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar nav ul ul li a:hover,
.sidebar nav ul ul li a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ===== TOP BAR (mobile only) ===== */

.top-bar {
  display: none;
}

/* ===== HAMBURGER ===== */

.menu-toggle {
  background-color: transparent;
  color: #fff;
  border: none;
  padding: 0.3rem 0.6rem;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
}

.menu-overlay.visible {
  display: block;
}

/* ===== MAIN CONTENT ===== */

.main-content {
  margin-left: 260px;
  padding: 3rem 4rem 2rem;
  max-width: 960px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

/* ===== TYPOGRAPHY ===== */

h1 {
  color: #4CAF50;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

h2 {
  color: #4CAF50;
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
}

h3 {
  color: #4CAF50;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ===== LISTS ===== */

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

li ul,
li ol {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

/* ===== LINKS ===== */

.content a {
  color: #4CAF50;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.content a:hover {
  color: #388E3C;
}

/* ===== TABLE ===== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

thead th {
  background-color: #4CAF50;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 1rem;
}

tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e0d9cf;
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background-color: rgba(76, 175, 80, 0.04);
}

/* ===== INFO BOX ===== */

.info-box {
  background-color: #fff;
  border-left: 4px solid #4CAF50;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

/* ===== DONATION NOTE ===== */

.donation-note {
  background-color: #E8F5E9;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* ===== CARD ===== */

.card {
  background-color: #fff;
  border: 1px solid #e0d9cf;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ===== COVER IMAGE ===== */

.cover-image {
  display: block;
  max-width: 360px;
  width: 100%;
  margin: 1.5rem auto 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* ===== NOTICE (placeholder) ===== */

.notice {
  color: #999;
  font-style: italic;
  margin: 1rem 0;
}

/* ===== ADDRESS BLOCK ===== */

address {
  font-style: normal;
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #888;
}

.footer p {
  margin-bottom: 0.3rem;
}

.footer a {
  color: #4CAF50;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .main-content {
    padding: 3rem 2rem 2rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background-color: #2E7D32;
    padding: 0 1rem;
    z-index: 300;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    top: 48px;
    height: calc(100vh - 48px);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 3.5rem 1.25rem 2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.82rem;
  }

  thead th,
  tbody td {
    padding: 0.5rem 0.6rem;
  }
}
