:root {
  --green-900: #12452b;
  --green-700: #1f7a4d;
  --green-500: #3fae6a;
  --green-100: #e4f4e8;
  --cream: #f7faf5;
  --sun: #f4c542;
  --text: #1d2a22;
  --muted: #5b6b61;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(18, 69, 43, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a { color: var(--green-700); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-900);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.8; }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #dff2e5;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.93rem;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, 0.12); }
.nav a.active { background: var(--green-500); color: var(--white); }

.header-right { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-switch button.active { background: var(--sun); color: var(--green-900); border-color: var(--sun); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--green-900);
    padding: 10px 4%;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700) 60%, var(--green-500));
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "🌿";
  position: absolute;
  right: 6%;
  bottom: -30px;
  font-size: 12rem;
  opacity: 0.12;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; max-width: 720px; }
.hero p { margin-top: 16px; max-width: 600px; font-size: 1.1rem; opacity: 0.95; }
.hero .badge-school {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.hero-buttons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn-primary { background: var(--sun); color: var(--green-900); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-900); }

/* ---------- Page title ---------- */
.page-title {
  background: var(--green-100);
  padding: 48px 0 40px;
  border-bottom: 4px solid var(--green-500);
}
.page-title h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green-900); }
.page-title p { color: var(--muted); margin-top: 8px; max-width: 700px; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-title { font-size: 1.8rem; color: var(--green-900); margin-bottom: 28px; text-align: center; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card .icon { font-size: 2.4rem; margin-bottom: 10px; }
.card h3 { color: var(--green-900); margin-bottom: 8px; }
.card p { color: var(--muted); }

/* stats */
.stats { background: var(--green-700); color: var(--white); padding: 40px 0; }
.stats .grid { text-align: center; }
.stat-num { font-size: 2.6rem; font-weight: 800; color: var(--sun); }
.stat-label { opacity: 0.9; }

/* CTA */
.cta {
  background: var(--green-100);
  text-align: center;
  border-radius: var(--radius);
  padding: 44px 24px;
}
.cta h2 { color: var(--green-900); }
.cta p { margin: 10px auto 22px; max-width: 560px; color: var(--muted); }

/* team */
.member { text-align: center; }
.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-100);
  border: 4px solid var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.role { color: var(--green-700); font-weight: 600; font-size: 0.92rem; }

/* news */
.news-item { border-left: 6px solid var(--green-500); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.85rem; color: var(--muted); }
.tag {
  background: var(--green-100);
  color: var(--green-900);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
}
.tag-event { background: var(--sun); }

/* awards */
.award { display: flex; gap: 16px; align-items: flex-start; }
.award .trophy { font-size: 2.4rem; }
.award .year { color: var(--green-700); font-weight: 700; font-size: 0.9rem; }

/* contact */
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 18px; display: flex; gap: 12px; }
.contact-list .ci { font-size: 1.5rem; }
.contact-list strong { display: block; color: var(--green-900); }

form label { display: block; font-weight: 600; margin: 12px 0 4px; color: var(--green-900); }
form input, form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #cfe3d5;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--green-500); }
form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #cfe8d8;
  text-align: center;
  padding: 28px 0;
  font-size: 0.9rem;
}

/* v3 additions */
.hero .badge-school:empty, .brand small:empty { display: none; }
.goal .tag { margin-bottom: 8px; display: inline-block; }
.team-note { text-align: center; color: var(--muted); margin-top: 28px; }
.contact-soon { color: var(--muted); }
.hidden { display: none !important; }

/* v4: team grid */
.grid-team { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.member { padding: 22px 14px; }
.member h3 { font-size: 1.05rem; margin-bottom: 6px; }
.member .role { font-size: 0.85rem; line-height: 1.35; margin-top: 3px; }
.member .avatar { width: 120px; height: 120px; }
.tg-embed { margin: 14px 0 8px; max-width: 560px; }
.tg-embed iframe { max-width: 100% !important; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 14px 0 8px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e6efe8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
