/* BUMDes Maju Bersama — style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --accent: #a5d6a7;
  --bg: #f1f8e9;
  --bg-white: #ffffff;
  --text: #1a2e1a;
  --text-muted: #4a6741;
  --border: #c8e6c9;
  --shadow: 0 2px 12px rgba(46,125,50,0.10);
  --radius: 10px;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Demo Bar ── */
.demo-bar {
  background: #1b5e20;
  color: #e8f5e9;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}
.demo-bar a { color: #a5d6a7; text-decoration: underline; }
.demo-bar a:hover { color: #ffffff; }

/* ── Header / Nav ── */
header {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  position: sticky; top: 0; z-index: 100;
}
.header-top {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.logo-icon {
  width: 46px; height: 46px; flex-shrink: 0;
}
.brand h1 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.brand p  { font-size: .75rem; opacity: .82; }

/* mobile nav toggle (checkbox hack) */
.nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-label span,
.nav-label span::before,
.nav-label span::after {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  position: relative; transition: .3s;
}
.nav-label span::before,
.nav-label span::after {
  content: ''; position: absolute; left: 0;
}
.nav-label span::before { top: -7px; }
.nav-label span::after  { top:  7px; }

nav { background: var(--primary-dark); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; }
nav ul li a {
  display: block; padding: 11px 18px;
  color: #e8f5e9; text-decoration: none;
  font-size: .88rem; font-weight: 500;
  transition: background .2s, color .2s;
}
nav ul li a:hover,
nav ul li a.active { background: var(--primary-light); color: #fff; }

@media (max-width: 640px) {
  .nav-label { display: block; }
  nav ul { flex-direction: column; display: none; }
  .nav-toggle:checked ~ nav ul { display: flex; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 55%, #388e3c 100%);
  color: #fff;
  padding: 56px 20px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(165,214,167,.18) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 14px; font-size: .78rem;
  margin-bottom: 14px; letter-spacing: .05em; text-transform: uppercase;
}
.hero h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.hero p  { font-size: 1rem; opacity: .88; max-width: 560px; margin: 0 auto 24px; }
.btn {
  display: inline-block; padding: 12px 28px;
  border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: .95rem; transition: .2s;
}
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--accent); }
.btn-primary { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); margin-left: 10px; }
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* ── Section ── */
section { padding: 48px 20px; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-size: 1.5rem; color: var(--primary-dark); font-weight: 800; }
.section-header p { color: var(--text-muted); margin-top: 6px; }
.section-alt { background: #fff; }

/* ── Stat Strip ── */
.stats {
  background: var(--primary);
  color: #fff; padding: 32px 20px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr));
  gap: 20px; max-width: 860px; margin: 0 auto; text-align: center;
}
.stat-item .num { font-size: 2rem; font-weight: 800; }
.stat-item .lbl { font-size: .82rem; opacity: .85; margin-top: 2px; }

/* ── Card Grid ── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 20px; max-width: 1040px; margin: 0 auto;
}
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 18px;
  border-top: 4px solid var(--primary);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(46,125,50,.15); }
.card-icon { margin-bottom: 12px; }
.card h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 6px; }
.card p  { font-size: .88rem; color: var(--text-muted); }

/* ── Berita / News ── */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr));
  gap: 22px; max-width: 1040px; margin: 0 auto;
}
.news-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s;
}
.news-card:hover { transform: translateY(-3px); }
.news-thumb {
  height: 110px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-body { padding: 16px; }
.news-meta { display: flex; gap: 8px; font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; }
.news-cat {
  background: var(--accent); color: var(--primary-dark);
  border-radius: 4px; padding: 1px 7px; font-weight: 600;
}
.news-body h3 { font-size: .95rem; color: var(--primary-dark); margin-bottom: 6px; line-height: 1.3; }
.news-body p  { font-size: .83rem; color: var(--text-muted); }

/* ── Announcement list ── */
.announce-list { max-width: 800px; margin: 0 auto; }
.announce-item {
  background: #fff; border-radius: var(--radius);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow); padding: 16px 20px;
  margin-bottom: 14px; display: flex; gap: 14px; align-items: flex-start;
}
.announce-date {
  background: var(--primary); color: #fff;
  border-radius: 8px; padding: 6px 12px;
  text-align: center; font-size: .78rem; flex-shrink: 0; min-width: 58px;
}
.announce-date .day { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.announce-body h4 { font-size: .95rem; color: var(--primary-dark); }
.announce-body p  { font-size: .83rem; color: var(--text-muted); margin-top: 2px; }
.announce-num { font-size: .75rem; color: var(--text-muted); font-style: italic; }

/* ── Layanan ── */
.layanan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 22px; max-width: 1040px; margin: 0 auto;
}
.layanan-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px; border-top: 4px solid var(--primary-light);
  transition: transform .2s;
}
.layanan-card:hover { transform: translateY(-3px); }
.layanan-card .licon { margin-bottom: 12px; }
.layanan-card h3 { color: var(--primary-dark); font-size: 1rem; margin-bottom: 10px; }
.layanan-detail { font-size: .84rem; color: var(--text-muted); }
.layanan-detail li { margin-bottom: 4px; padding-left: 14px; position: relative; }
.layanan-detail li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-size: .8rem; }
.tag-gratis { display: inline-block; background: #e8f5e9; color: var(--primary); border-radius: 12px; padding: 2px 10px; font-size: .75rem; font-weight: 700; margin-top: 10px; }

/* ── Profil ── */
.visi-misi {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius); padding: 30px; margin: 24px auto;
  max-width: 800px;
}
.visi-misi h3 { font-size: 1.1rem; margin-bottom: 10px; }
.visi-misi ul { padding-left: 20px; }
.visi-misi ul li { margin-bottom: 6px; font-size: .92rem; }

.org-chart {
  max-width: 700px; margin: 0 auto; text-align: center;
}
.org-box {
  display: inline-block; background: var(--primary); color: #fff;
  border-radius: 8px; padding: 10px 20px; font-size: .88rem;
  margin: 6px; font-weight: 600; min-width: 150px;
}
.org-box.secondary { background: var(--primary-light); }
.org-box.tertiary  { background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); }
.org-line { width: 2px; height: 24px; background: var(--primary); margin: 0 auto; }
.org-row  { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

.pejabat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 20px; max-width: 820px; margin: 24px auto 0;
}
.pejabat-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center; padding: 22px 14px; border-top: 4px solid var(--primary);
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
}
.pejabat-card h4 { font-size: .92rem; color: var(--primary-dark); margin-bottom: 4px; }
.pejabat-card p  { font-size: .78rem; color: var(--text-muted); }

/* ── Kontak ── */
.kontak-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; max-width: 900px; margin: 0 auto;
}
@media (max-width: 640px) { .kontak-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; }
.info-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.info-list li:last-child { border-bottom: none; }
.info-icon { flex-shrink: 0; margin-top: 2px; }

.form-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-box h3 { color: var(--primary-dark); margin-bottom: 18px; font-size: 1.05rem; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-family: inherit; font-size: .9rem;
  background: var(--bg); color: var(--text);
  transition: border .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-submit {
  background: var(--primary); color: #fff; border: none;
  padding: 12px 28px; border-radius: 8px;
  font-size: .95rem; font-weight: 700; cursor: pointer; width: 100%;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* ── Jam Layanan ── */
.jam-box {
  background: var(--bg); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); margin-top: 20px;
}
.jam-box h4 { color: var(--primary-dark); margin-bottom: 10px; font-size: .95rem; }
.jam-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .88rem; border-bottom: 1px dashed var(--border); }
.jam-row:last-child { border-bottom: none; }
.jam-row .hari { color: var(--text-muted); }
.jam-row .waktu { font-weight: 600; color: var(--primary-dark); }

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 36px 20px; text-align: center;
}
.page-header h2 { font-size: 1.7rem; font-weight: 800; }
.page-header p  { opacity: .85; margin-top: 6px; }

/* ── Breadcrumb ── */
.breadcrumb { background: #fff; padding: 10px 20px; font-size: .82rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Sejarah ── */
.timeline { max-width: 720px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.tl-item { display: flex; gap: 20px; margin-bottom: 28px; position: relative; }
.tl-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--accent);
  flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1;
  margin-left: 20px;
}
.tl-content { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; flex: 1; }
.tl-content .year { color: var(--primary); font-weight: 800; font-size: .88rem; }
.tl-content h4 { margin: 4px 0; font-size: .95rem; color: var(--primary-dark); }
.tl-content p  { font-size: .85rem; color: var(--text-muted); }

/* ── Berita page ── */
.berita-full-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 22px; max-width: 1060px; margin: 0 auto;
}

/* ── Footer ── */
footer {
  background: #1b5e20; color: #c8e6c9;
  padding: 40px 20px 16px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 28px; max-width: 1040px; margin: 0 auto 28px;
}
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: .95rem; }
.footer-col p, .footer-col li { font-size: .84rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li a { color: #a5d6a7; text-decoration: none; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: .78rem; color: #81c784; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }

/* ── Utilities ── */
.container { max-width: 1040px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
