:root {
  --hijau: #1b7a43;
  --hijau-tua: #145c33;
  --hijau-muda: #e8f5ee;
  --emas: #d4a017;
  --emas-muda: #f7e9c6;
  --teks: #2b2b2b;
  --abu: #6b7280;
  --bg: #f6f8f7;
  --putih: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
}

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

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--teks);
  background: var(--bg);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.topbar {
  background: var(--hijau-tua);
  color: #fff;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 20px;
}
.topbar a { color: var(--emas-muda); }

header.main {
  background: var(--putih);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header.main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--emas);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.brand h1 { font-size: 1.05rem; color: var(--hijau-tua); line-height: 1.2; }
.brand span { font-size: .75rem; color: var(--abu); font-weight: 400; }

nav.menu { display: flex; gap: 4px; align-items: center; }
nav.menu a {
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--teks);
  transition: .2s;
}
nav.menu a:hover, nav.menu a.active { background: var(--hijau-muda); color: var(--hijau-tua); }
nav.menu a.login-btn {
  background: var(--emas);
  color: #fff;
}
nav.menu a.login-btn:hover { background: #b8890f; color:#fff; }

.hamburger { display: none; font-size: 1.6rem; background: none; border: none; cursor: pointer; color: var(--hijau-tua); }

.lang-switch { display: flex; gap: 2px; margin-left: 8px; border: 1.5px solid var(--hijau); border-radius: 8px; overflow: hidden; }
.lang-switch button { background: #fff; border: none; padding: 7px 11px; font-weight: 700; font-size: .82rem; cursor: pointer; color: var(--hijau); transition: .2s; }
.lang-switch button.active { background: var(--hijau); color: #fff; }
.lang-switch button:hover:not(.active) { background: var(--hijau-muda); }

/* ===== HERO / BANNER ===== */
.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--hijau-tua);
}
.slides { height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,92,51,.85), rgba(20,92,51,.25));
}
.slide .caption {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8%; color: #fff; z-index: 2; max-width: 640px;
}
.slide .caption h2 { font-size: 2.2rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.slide .caption p { font-size: 1.05rem; }
.hero-dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button.active { background: var(--emas); }

/* ===== SECTIONS ===== */
section.block { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 1.8rem; color: var(--hijau-tua); position: relative; display: inline-block; }
.section-title h2::after {
  content: ""; display: block; width: 60px; height: 4px;
  background: var(--emas); margin: 10px auto 0; border-radius: 3px;
}
.section-title p { color: var(--abu); margin-top: 6px; }

.bg-white { background: var(--putih); }

/* ===== CARDS ARTIKEL ===== */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--putih);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card .thumb {
  height: 190px; background: var(--hijau-muda);
  background-size: cover; background-position: center;
  display: grid; place-items: center; color: var(--hijau);
}
.card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 1.08rem; color: var(--hijau-tua); margin-bottom: 8px; }
.card .meta { font-size: .8rem; color: var(--abu); margin-bottom: 10px; }
.card .excerpt { font-size: .92rem; color: #444; flex: 1; }
.card .more { margin-top: 12px; color: var(--emas); font-weight: 700; font-size: .9rem; }

/* ===== GALERI ===== */
.galeri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.galeri-grid .item {
  position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
  background: var(--hijau-muda); cursor: pointer;
}
.galeri-grid .item img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.galeri-grid .item:hover img { transform: scale(1.08); }
.galeri-grid .item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; padding: 20px 10px 8px; font-size: .82rem;
}

/* ===== KONTAK ===== */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.kontak-info { background: var(--hijau); color: #fff; border-radius: var(--radius); padding: 30px; }
.kontak-info h3 { margin-bottom: 18px; color: var(--emas-muda); }
.kontak-info .row { display: flex; gap: 12px; margin-bottom: 16px; }
.kontak-info .row .ic { font-size: 1.3rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ===== KONTEN PAGE ===== */
.page-header {
  background: linear-gradient(120deg, var(--hijau-tua), var(--hijau));
  color: #fff; padding: 50px 0; text-align: center;
}
.page-header h1 { font-size: 2rem; }
.page-header p { opacity: .9; margin-top: 6px; }
.prose { background: var(--putih); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.prose h1,.prose h2,.prose h3 { color: var(--hijau-tua); margin: 16px 0 8px; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 12px 22px; }
.prose li { margin-bottom: 6px; }

/* ===== PERSON GRID (guru & pengurus) ===== */
.person {
  background: var(--putih); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: center; padding-bottom: 18px;
}
.person .foto {
  height: 220px; background: var(--hijau-muda);
  background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: 3rem; color: var(--hijau);
}
.person h3 { margin-top: 14px; color: var(--hijau-tua); font-size: 1.05rem; padding: 0 10px; }
.person .jabatan { color: var(--emas); font-weight: 700; font-size: .88rem; }
.person .desc { color: var(--abu); font-size: .84rem; padding: 8px 14px 0; }

/* ===== FOOTER ===== */
footer.site {
  background: var(--hijau-tua); color: #d9e8df; margin-top: 40px;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 30px; padding: 44px 0 28px; }
footer.site h4 { color: #fff; margin-bottom: 14px; }
footer.site a { color: #cfe3d7; }
footer.site a:hover { color: var(--emas); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 16px; font-size: .85rem; }

/* ===== BUTTON ===== */
.btn {
  display: inline-block; background: var(--hijau); color: #fff;
  padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer;
  border: none; font-size: .95rem; transition: .2s;
}
.btn:hover { background: var(--hijau-tua); }
.btn.emas { background: var(--emas); }
.btn.emas:hover { background: #b8890f; }
.btn.danger { background: #c0392b; }
.btn.ghost { background: transparent; color: var(--hijau); border: 2px solid var(--hijau); }

.empty { text-align: center; color: var(--abu); padding: 30px; }

/* ===== MODAL LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; place-items: center; z-index: 999; padding: 20px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
.lightbox .close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .galeri-grid { grid-template-columns: repeat(2, 1fr); }
  .kontak-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  nav.menu {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 260px;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 70px 16px; box-shadow: -6px 0 20px rgba(0,0,0,.15); transition: right .3s; z-index: 200;
  }
  nav.menu.open { right: 0; }
  nav.menu a { padding: 12px; }
  .lang-switch { margin: 10px 0 0; align-self: flex-start; }
  .hamburger { display: block; z-index: 210; }
  .hero { height: 340px; }
  .slide .caption h2 { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .grid.cols-3, .grid.cols-4, .galeri-grid { grid-template-columns: 1fr; }
  .brand h1 { font-size: .92rem; }
}
