/* Statistik Desa */
.statistik {
  margin: 50px auto;
  max-width: 900px;
  padding: 20px;
  background: #e9f9ef;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}
.statistik h2 {
  color: #2e6d43;
  margin-bottom: 20px;
}
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-box {
  flex: 1;
  min-width: 200px;
}
.stat-box .counter {
  font-size: 2rem;
  font-weight: bold;
  color: #3b8c57;
  display: block;
}
.statistik .stat-link {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  background: #3b8c57;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}
.statistik .stat-link:hover {
  background: #2e6d43;
}
/* Hero */
.page-hero {
  background: #e8f9f0;
  text-align: center;
  padding: 60px 20px;
}
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.page-hero p {
  font-size: 1.2rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  margin-left: 20px;
	
}
.about-text {
  font-size: 1rem;
  margin-bottom: 20px;
  margin-left: 60px;
	
}
.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Visi Misi */
.vision-mission {
  margin-top: 60px;
  margin-left: 60px;
}
.vision-mission h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  margin-left: 40px;
}
.vision {
  font-style: italic;
  background: #f0fdf4;
  padding: 20px;
  margin-bottom: 30px;
  margin-left: 40px;
}

/* Prestasi */

.achievements h2 {
  list-style: none;
  margin-left: 60px;
	margin-top: 60px;
}

.achievements ul {
  list-style: none;
  margin-left: 60px;
	margin-top: 60px;
}
.achievements li {
  background: #f9fafb;
  margin-bottom: 12px;
  padding: 12px 18px;
  border-radius: 8px;
	
}

/* Footer */
footer {
  margin-top: 80px;
  background: #16a34a;
  color: white;
  text-align: center;
  padding: 25px;
}
footer a {
  color: #d1fae5;
  text-decoration: none;
}
/* Statistik Desa */
.statistik {
  margin: 50px auto;
  max-width: 1000px;   /* batasi lebar agar tidak terlalu panjang */
  padding: 40px 30px;  /* tambah padding supaya isi tidak mepet */
  background: #e9f9ef;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.statistik h2 {
  color: #2e6d43;
  margin-bottom: 30px;  /* beri jarak dengan konten bawah */
  font-size: 1.8rem;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;            /* jarak antar box statistik */
  margin-bottom: 25px;  /* jarak dengan tombol link */
}

.stat-box {
  flex: 1;
  min-width: 220px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.stat-box .counter {
  font-size: 2.2rem;
  font-weight: bold;
  color: #3b8c57;
  display: block;
  margin-bottom: 8px;
}

.statistik p {
  margin: 0;
  font-size: 1rem;
  color: #2e4d35;
}

.statistik .stat-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background: #3b8c57;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.statistik .stat-link:hover {
  background: #2e6d43;
}
.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  margin-left: 35px;
  color: #155827;
	
}
/* Animasi zoom & highlight pada image */
.news-card img,
.hero-image img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 10px;
}

.news-card img:hover,
.hero-image img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.news-card img:hover,
.hero-image img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}
* { margin:0; padding:0; box-sizing:border-box; font-family: 'Inter', sans-serif; }
body { background:#f0fdf4; color:#111827; }

/* Topbar */
.topbar {
  background:#059669; color:#fff; font-size:14px;
  display:flex; justify-content:center; padding:6px 20px;
  gap:20px; flex-wrap:wrap;
}
.topbar i { margin-right:6px; }

/* Navbar */
.navbar {
  background:#fff; display:flex; align-items:center;
  justify-content:space-between; padding:12px 40px;
  border-bottom:1px solid #e5e7eb; flex-wrap:wrap;
}
.brand { display:flex; align-items:center; gap:10px; }
.brand-logo {
  background:#10b981; color:#fff; font-weight:700;
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.brand-text { font-weight:600; }
.nav-links { display:flex; gap:20px; flex-wrap:wrap; }
.nav-links a { text-decoration:none; color:#111827; font-weight:500; }

/* Dropdown */
.dropdown { position:relative; }
.dropdown-content {
  display:none; 
 position:absolute; 
  background:#fff;
  box-shadow:10 5px 5px rgba(0,0,0,0.15);
  border-radius:15px; margin-top:auto; min-width:120px;
  z-index:99;
	
}
.dropdown-content a {
  display:block; 
  padding:14px; text-decoration:none;
  color:#374151; 
  font-size:14px;
}
.dropdown-content a:hover { background:#ecfdf5; color:#017F57; }
.dropdown:hover .dropdown-content { display:block; }

/* Hero */
.hero {
  display:flex; align-items:center; justify-content:space-between;
  padding:60px 40px; gap:40px; flex-wrap:wrap;
}
.hero-text { flex:1; }
.hero-text h1 { font-size:36px; margin-bottom:16px; }
.hero-text h1 span { color:#10b981; }
.hero-text p { font-size:16px; margin-bottom:24px; color:#374151; }
.hero-buttons { display:flex; gap:16px; flex-wrap:wrap; }
.btn {
  padding:10px 18px; border-radius:8px; font-weight:600; cursor:pointer;
  border:2px solid transparent; text-decoration:none; display:inline-block;
}
.btn-primary { background:#10b981; color:#fff; }
.btn-outline { border-color:#10b981; color:#10b981; background:transparent; }

.hero-image { position:relative; flex:1; }
.hero-image img { width:100%; border-radius:12px; }
.stat-box {
  position:absolute; bottom:16px; left:16px;
  background:rgba(209,250,229,0.95);
  padding:12px 16px; border-radius:12px;
  display:flex; align-items:center; gap:10px;
  font-weight:600;
}
.stat-box i {
  background:#10b981; color:#fff;
  border-radius:50%; padding:6px;
}

/* Statistik Section */
.stats {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
  gap:20px; padding:60px 40px; background:#A3FDBB;
}
.stat-item {
  background:#ecfdf5; padding:30px; border-radius:12px;
  text-align:center; box-shadow:0 2px 4px rgba(0,0,0,0.05);
}
.stat-item h2 { font-size:28px; color:#10b981; margin-bottom:8px; }
.stat-item p { color:#374151; }

/* Slider Berita */
.news-section {
  padding:60px 40px; background:#f9fafb;
}
.news-section h2 {
  text-align:center; font-size:28px; margin-bottom:30px;
  color:#111827;
}
.swiper { width:100%; padding-bottom:40px; }
.swiper-slide {
  background:#fff; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,0.08);
  overflow:hidden;
}
.news-card img {
  width:100%; height:180px; object-fit:cover;
}
.news-content { padding:16px; }
.news-content h3 {
  font-size:18px; margin-bottom:8px; color:#10b981;
}
.news-content p { font-size:14px; color:#374151; }

/* Footer */
footer {
  background:#111827; color:#d1d5db;
  padding:40px 20px; text-align:center;
}
footer a { color:#10b981; text-decoration:none; }

/* Responsive */
@media(max-width:900px){
  .hero { flex-direction:column; text-align:center; }
  .hero-buttons { justify-content:center; }
  .hero-image { width:100%; }
}

/* ==== Halaman Sejarah ==== */
.page-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('../assets/images/hero-sejarah.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  color: #e5e7eb;
}

.history-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
	padding-bottom: 100px;
  text-align: center; /* judul tetap tengah */
}

.history-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 55px;
  color: #1f2937;
}

.history-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 50px;
  text-align: justify; /* bikin teks rapih rata kiri-kanan */
  text-justify: inter-word;
}

   


.history-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.history-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ==== Tautan Cepat ==== */
.quick-links {
  margin: 60px auto;
  text-align: center;
}

.quick-links h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.links-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.qlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1f2937;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.qlink:hover {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}
/* ==== Timeline Sejarah ==== */
.timeline-section {
  margin: 80px auto;
  text-align: center;
}

.timeline-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1f2937;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #1d4ed8;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 30px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  position: relative;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1f2937;
}

.timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #1d4ed8;
  border: 4px solid #fff;
  z-index: 1;
}

.timeline-item.left::before {
  right: -10px;
}

.timeline-item.right::before {
  left: -10px;
}

/* Responsif */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 25px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 0;
  }
}
/* ==== Halaman Sejarah ==== */
.sejarah-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
  text-align: center; /* judul tetap tengah */
}

.sejarah-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1f2937;
}

.sejarah-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 20px;
  text-align: justify; /* bikin teks rapih rata kiri-kanan */
  text-justify: inter-word;
}
/* ==== HERO KEMASYARAKATAN ==== */
.kemasyarakatan-hero {
  background: linear-gradient(to right, #bbf7d0, #a7f3d0);
  padding: 70px 20px;
  text-align: center;
}

.kemasyarakatan-hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 10px;
}

.kemasyarakatan-hero p {
  font-size: 1.2rem;
  color: #374151;
}

/* ==== CONTAINER ==== */
.kemasyarakatan-container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  gap: 25px;
}

/* ==== CARD ORGANISASI ==== */
.org-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.org-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.org-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 10px;
  text-align: center;
}

.org-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  text-align: justify;
}

/* ==== LOGO ORGANISASI ==== */
.org-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

/* ==== RESPONSIVE ==== */
@media (min-width: 768px) {
  .org-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
  }

  .org-card h3 {
    text-align: left;
  }

  .org-card p {
    text-align: justify;
  }
}

/* HERO */
.hero {
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
  text-align: center;
  min-height: 200px;
}
.hero h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1b5e20;
}
.hero p {
  color: #555;
  font-size: 16px;
  max-width: 700px;
}
/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #e9fdf3;
}
.hero h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.hero p {
  color: #555;
  font-size: 1rem;
}

/* Total Anggaran */
.total-apbdes {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
.total-card {
  background: #fff;
  padding: 25px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.total-card h3 {
  margin-bottom: 10px;
}
.total-amount {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1aaf5d;
}

/* Anggaran */
.anggaran {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 40px;
}
.card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card h4 {
  margin-bottom: 20px;
}
.progress-item {
  margin-bottom: 15px;
}
.progress {
  background: #f0f0f0;
  border-radius: 8px;
  height: 10px;
  margin: 5px 0;
  overflow: hidden;
}
.bar {
  height: 100%;
  border-radius: 8px;
}
.blue { background: #4285f4; }
.green { background: #34a853; }
.yellow { background: #fbbc05; }
.purple { background: #a142f4; }
.orange { background: #f47c42; }
.teal { background: #2bbbad; }
.gray { background: #9e9e9e; }
.pink { background: #e91e63; }

/* Laporan Keuangan */
.laporan {
  text-align: center;
  padding: 40px 20px;
  background: #f0fff5;
}
.laporan h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.laporan p {
  margin-bottom: 25px;
  color: #444;
}
.laporan-list {
  max-width: 700px;
  margin: auto;
}
.laporan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.btn-unduh {
  background: #1aaf5d;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.btn-unduh:hover {
  background: #148c4a;
}
/* Progress dengan animasi */
.progress .bar {
  height: 100%;
  border-radius: 8px;
  width: 0; /* start dari 0 */
  transition: width 2s ease-in-out;
}


/* Reset */
* {margin:0; padding:0; box-sizing:border-box;}
ul {list-style:none;}
a {text-decoration:none; color:#fff;}

/* Navbar */
.navbar {
  width: 100%;
  background: #1e3a8a;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.navbar-logo img {
  height: 32px;
}

/* Menu */
.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-item a {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.nav-item a:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  background: #1e40af;
  display: none;
  flex-direction: column;
  margin-top: 8px;
  min-width: 180px;
  border-radius: 6px;
  overflow: hidden;
}

.dropdown-menu li a {
  padding: 10px 15px;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Toggle mobile */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #1e3a8a;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    color: #fff;
  }

  .dropdown-menu {
    position: relative;
    background: #1e40af;
    margin-top: 0;
    border-radius: 0;
  }
}

