/* DLH Kab. Hijau — style.css */
:root {
  --hijau: #1b5e20;
  --hijau-mid: #2e7d32;
  --hijau-light: #388e3c;
  --neon: #76ff03;
  --neon-dim: #ccff90;
  --bg: #f1f8e9;
  --bg2: #dcedc8;
  --white: #ffffff;
  --dark: #1a1a1a;
  --text: #263238;
  --text-mid: #546e7a;
  --border: #c8e6c9;
  --shadow: 0 2px 12px rgba(27,94,32,0.10);
  --radius: 10px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--hijau); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--hijau-mid); }

img { display: block; max-width: 100%; }

/* DEMO BAR */
.demo-bar {
  background: #0a2e0c;
  color: #ccff90;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 16px;
  letter-spacing: .02em;
}
.demo-bar a { color: var(--neon); font-weight: 700; }

/* HEADER */
header {
  background: var(--hijau);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-top {
  background: #0d3b10;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.header-brand h1 { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.header-brand p { font-size: 11px; opacity: .8; }

nav {
  background: var(--hijau);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* checkbox hack */
#nav-toggle { display: none; }
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: .25s;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}
.nav-links a {
  display: block;
  color: #c8e6c9;
  padding: 12px 13px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(118,255,3,.15);
  color: var(--neon);
  text-decoration: none;
}

@media (max-width: 700px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #1a5c1e;
    flex-direction: column;
    padding: 8px 0 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
  }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  nav { position: relative; flex-wrap: wrap; padding: 0 12px; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0d3b10 0%, #1b5e20 50%, #2e7d32 100%);
  color: var(--white);
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(118,255,3,.07);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(118,255,3,.05);
}
.hero-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
}
.hero h2 {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero h2 span { color: var(--neon); }
.hero p {
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: .88;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
}
.btn-neon { background: var(--neon); color: #0d3b10; }
.btn-neon:hover { background: #aaff44; text-decoration: none; color: #0d3b10; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--neon); color: var(--neon); text-decoration: none; }

/* STATS BAR */
.stats-bar {
  background: var(--hijau-mid);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  text-align: center;
}
.stat-item { padding: 14px 8px; }
.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--neon);
  display: block;
}
.stat-label { font-size: 11.5px; color: #c8e6c9; margin-top: 2px; }

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2,1fr); }
}

/* SECTION */
section { padding: 50px 20px; }
.container { max-width: 1060px; margin: 0 auto; }
.sec-title {
  text-align: center;
  margin-bottom: 36px;
}
.sec-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hijau);
  margin-bottom: 6px;
}
.sec-title p { color: var(--text-mid); font-size: 14px; }
.sec-title .line {
  width: 48px; height: 4px;
  background: var(--neon);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* LAYANAN CARDS */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.layanan-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.layanan-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(27,94,32,.15); }
.layanan-card .icon-wrap {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.layanan-card svg { color: var(--hijau); }
.layanan-card h3 { font-size: 14px; font-weight: 700; color: var(--hijau); margin-bottom: 6px; }
.layanan-card p { font-size: 13px; color: var(--text-mid); }
.layanan-card a.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hijau-light);
}

/* BERITA */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.berita-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.berita-card:hover { transform: translateY(-2px); }
.berita-thumb {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.berita-body { padding: 16px; }
.berita-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: #e8f5e9;
  color: var(--hijau);
}
.berita-date { font-size: 11.5px; color: var(--text-mid); }
.berita-card h3 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.4; }
.berita-card p { font-size: 13px; color: var(--text-mid); }
.read-more { font-size: 12.5px; font-weight: 600; color: var(--hijau-light); margin-top: 10px; display: inline-block; }

/* PENGUMUMAN LIST */
.pengumuman-list { list-style: none; }
.pengumuman-list li {
  background: var(--white);
  border-left: 4px solid var(--neon);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pengumuman-list .icon-p {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: #e8f5e9;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pengumuman-list h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.pengumuman-list small { font-size: 11.5px; color: var(--text-mid); }

/* SECTION BG ALT */
.bg-alt { background: #e8f5e9; }
.bg-dark { background: var(--hijau); }

/* PROFIL */
.profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) { .profil-grid { grid-template-columns: 1fr; } }

.profil-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.profil-box h3 { font-size: 15px; font-weight: 700; color: var(--hijau); margin-bottom: 12px; border-bottom: 2px solid var(--neon); padding-bottom: 8px; }
.profil-box p, .profil-box li { font-size: 14px; color: var(--text-mid); margin-bottom: 6px; }
.profil-box ul { padding-left: 18px; }

/* ORG CHART */
.org-chart { text-align: center; }
.org-box {
  display: inline-block;
  background: var(--hijau);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 4px;
}
.org-box.sub { background: var(--hijau-mid); font-size: 12px; }
.org-box.sub2 { background: var(--hijau-light); font-size: 12px; }
.org-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.org-line { width: 2px; height: 24px; background: var(--neon); margin: 0 auto; }

/* PEJABAT */
.pejabat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.pejabat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pejabat-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b5e20, #76ff03);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #0d3b10;
}
.pejabat-card h4 { font-size: 13.5px; font-weight: 700; color: var(--dark); }
.pejabat-card p { font-size: 12px; color: var(--text-mid); }

/* LAYANAN PAGE */
.layanan-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.layanan-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.layanan-detail-header {
  background: var(--hijau);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.layanan-detail-header h3 { font-size: 14px; font-weight: 700; }
.layanan-detail-body { padding: 16px 18px; }
.layanan-detail-body h4 { font-size: 12.5px; font-weight: 700; color: var(--hijau); margin: 10px 0 5px; text-transform: uppercase; letter-spacing: .04em; }
.layanan-detail-body ul { padding-left: 16px; }
.layanan-detail-body li { font-size: 13px; color: var(--text-mid); margin-bottom: 4px; }
.biaya-badge {
  display: inline-block;
  background: #e8f5e9;
  color: var(--hijau);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 10px;
}

/* BERITA PAGE */
.berita-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* PENGUMUMAN PAGE */
.pengumuman-full {
  list-style: none;
}
.pengumuman-full li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pengumuman-full .pnum {
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 4px;
}
.pengumuman-full h4 { font-size: 14.5px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.pengumuman-full p { font-size: 13px; color: var(--text-mid); }
.peng-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.badge-peng {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  margin-right: 6px;
}
.badge-sk { background: #fff9c4; color: #f57f17; }
.badge-pm { background: #e3f2fd; color: #1565c0; }
.badge-pg { background: #e8f5e9; color: #1b5e20; }

/* KONTAK */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
@media (max-width: 640px) { .kontak-grid { grid-template-columns: 1fr; } }
.kontak-info { display: flex; flex-direction: column; gap: 14px; }
.kontak-row {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.kontak-row-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1b5e20, #388e3c);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kontak-row h4 { font-size: 13px; font-weight: 700; color: var(--hijau); margin-bottom: 4px; }
.kontak-row p, .kontak-row a { font-size: 13.5px; color: var(--text-mid); }

/* FORM */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 16px; font-weight: 700; color: var(--hijau); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fafff8;
  transition: border .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--hijau-light);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  background: var(--hijau);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
}
.btn-submit:hover { background: var(--hijau-light); }

/* JAM LAYANAN */
.jam-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.jam-table th { background: var(--hijau); color: var(--white); padding: 9px 12px; text-align: left; }
.jam-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.jam-table tr:nth-child(even) td { background: #f9fef5; }

/* FOOTER */
footer {
  background: #0d3b10;
  color: #a5d6a7;
  padding: 40px 20px 20px;
}
.footer-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
.footer-brand h3 { color: var(--neon); font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.6; }
footer h4 { color: var(--white); font-size: 13.5px; margin-bottom: 10px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 6px; }
footer ul a { color: #a5d6a7; font-size: 13px; }
footer ul a:hover { color: var(--neon); text-decoration: none; }
.footer-bottom {
  max-width: 1060px;
  margin: 0 auto;
  border-top: 1px solid #1b5e20;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #6a9d6e;
}

/* SVG thumb gradients for berita */
.thumb-1 { background: linear-gradient(135deg, #1b5e20, #76ff03); }
.thumb-2 { background: linear-gradient(135deg, #0d47a1, #1b5e20); }
.thumb-3 { background: linear-gradient(135deg, #e65100, #1b5e20); }
.thumb-4 { background: linear-gradient(135deg, #4a148c, #2e7d32); }
.thumb-5 { background: linear-gradient(135deg, #006064, #1b5e20); }
.thumb-6 { background: linear-gradient(135deg, #33691e, #aeea00); }
.thumb-7 { background: linear-gradient(135deg, #1a237e, #388e3c); }
.thumb-8 { background: linear-gradient(135deg, #bf360c, #2e7d32); }

@media (max-width: 500px) {
  .hero { padding: 40px 16px 36px; }
  section { padding: 36px 14px; }
  .profil-box, .form-card { padding: 18px; }
}
