:root {
  --primary: #b6895b;
  --bg: #010101;
  --peach: #ffdab9;
  --dark: #000000;
  --cyan: #e0ffff;
  --brown: #3e2723;
  --blue: #07194b;
  --grey: #353535;
  --green: #23d25d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  color: #000000;
  /* min-height: 2000px; */
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(0, 35, 44, 0.77);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}
.navbar .navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

/* .navbar .navbar-logo span {
  color: var(--primary);
} */

/* Mengatur container logo agar gambar dan teks sejajar */
.navbar-logo {
  display: flex;
  align-items: center; /* Menyeimbangkan posisi atas-bawah */
  gap: 10px; /* Memberi jarak antara gambar dan teks */
}

/* Mengatur ukuran gambar agar menyesuaikan tinggi navbar/menu */
.logo-img {
  height: 2.6rem; /* Sesuaikan angka ini agar pas dengan ukuran font Anda */
  width: auto; /* Agar gambar tidak gepeng */
  object-fit: contain;
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

/* Submenu Section */
nav ul {
  list-style-type: none;
  display: flex;
  padding: 0;
  margin: 0;
}
div ul li a {
  display: block;
  color: var(--bg);
  padding: 0 0.5rem;
  text-decoration: none;
  line-height: 1rem;
}
div ul li a:hover {
  transition: all 0.3s;
}
ul li .submenu {
  background-color: rgba(0, 35, 44, 0.77);
  display: none;
  position: absolute;
  padding: 0;
}
ul li:hover .submenu {
  display: block;
}
.submenu li {
  display: block;
  width: 100%;
}
.submenu li a {
  padding: 10px;
  color: var(--dark);
  margin: 0;
}
.submenu li a:hover {
  /* background-color: var(--peach); */
  color: var(--dark);
}

/* Tambahan: Jika Anda ingin memastikan navbar tetap rapi */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* ... kode navbar Anda yang lain ... */
}

.navbar .navbar-extra a {
  color: #fff;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#hamburger-menu {
  display: none;
}

/* Main-content Section */
/* Sembunyikan semua section secara default */
.content-section {
  display: none;
  /* padding: 2rem 7%; Sesuaikan dengan desain Anda */
  animation: fadeIn 0.5s ease; /* Animasi halus saat ganti menu */
}

/* Tampilkan section yang memiliki class active */
.content-section.active {
  display: block;
}

/* Animasi Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url(../img/sejarah/1.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
}

.hero .content {
  padding: 1.4rem 7%;
  width: 100%;
  text-align: center;
  position: fixed;
  top: 250px;
}

.hero .content h1 {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: -3px 3px 3px rgb(0, 0, 0);
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: -2px 2px 2px rgb(0, 0, 0);
}

/* Statistik Contains */
.statistic-container {
  max-width: 1100px;
  margin: 10rem auto;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.2rem;
  color: #1a202c;
  margin-bottom: 10px;
}

header p {
  color: #718096;
}

/* Stats Grid Layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Card Styles */
.card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Decorative border on top of cards */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.card.kk::before {
  background-color: #4a90e2;
} /* Biru */
.card.total::before {
  background-color: #48bb78;
} /* Hijau */
.card.male::before {
  background-color: #3182ce;
} /* Biru Tua */
.card.female::before {
  background-color: #ed64a6;
} /* Pink */

.card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #718096;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3748;
}

.card-unit {
  font-size: 1rem;
  color: #a0aec0;
  font-weight: 400;
  margin-left: 5px;
}

/* sejarah Section */
#sejarah h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
.sejarah-flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 30px auto;
}
.sejarah-image,
.sejarah-text {
  width: 50%;
  margin: 14px;
  color: var(--grey);
}
.sejarah-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}
.sejarah-text p {
  color: var(--grey);
  text-align: justify;
}

/* Visi Section */
#visi h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#visi h2 {
  color: var(--grey);
  text-align: center;
  margin-top: 30px;
}
.visi-text p {
  color: var(--grey);
  text-align: center;
}

/* Potensi Section */
#potensi h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  margin-bottom: 30px;
  padding-top: 30px;
}
#potensi h4 {
  color: var(--grey);
  text-align: justify;
  margin: 5px 30px;
}
.potensi-text p {
  color: var(--grey);
  text-align: justify;
  margin: 5px 30px;
  text-indent: 15px;
}

/* Lokasi Section*/
#lokasi h1 {
  margin-top: 80px;
  text-align: center;
  color: var(--blue);
  padding-top: 30px;
}
.lokasi-flex {
  display: flex;
  justify-content: space-between;
  margin: 30px auto;
  width: 100%;
}
.maps {
  width: 60%;
}
.maps h3 {
  text-align: center;
  color: var(--grey);
}
.maps iframe {
  border-radius: 10px;
}
.social-media {
  width: 40%;
  padding: 10px;
}
.social-media h3 {
  text-align: center;
  color: var(--grey);
}
.social-icon {
  display: flex;
  text-align: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 5%;
  text-decoration: none;
  color: var(--cyan);
  padding: 10px;
  border-radius: 10px;
  transition: opacity 0.3s;
}
.facebook {
  background-color: #3b5998;
}
.youtube {
  background-color: #b40202;
}
.instagram {
  background-color: #e4405f;
}
.tiktok {
  background-color: #030303;
}
.social-icon:hover {
  opacity: 0.8;
}

/* Perangkat Desa Section */
#perangkat h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#perangkat .perangkat-deskripsi {
  color: var(--grey);
  text-align: center;
}
.perangkat-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.perangkat-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.perangkat-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.perangkat-items:hover img {
  transform: scale(1.1);
}
.perangkat-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.perangkat-items:hover .perangkat-content {
  transform: translateY(0%);
}
.perangkat-content h2 {
  color: #fff;
  font-size: 20px;
}
.perangkat-content p {
  color: #fff;
  font-size: 20px;
}

/* BPD Section */
#bpd h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#bpd .bpd-deskripsi {
  color: var(--grey);
  text-align: center;
}
.bpd-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.bpd-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.bpd-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.bpd-items:hover img {
  transform: scale(1.1);
}
.bpd-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.bpd-items:hover .bpd-content {
  transform: translateY(0%);
}
.bpd-content h2 {
  color: #fff;
  font-size: 20px;
}
.bpd-content p {
  color: #fff;
  font-size: 20px;
}

/* LPMD Section */
#lpmd h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#lpmd .lpmd-deskripsi {
  color: var(--grey);
  text-align: center;
}
.lpmd-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.lpmd-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.lpmd-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.lpmd-items:hover img {
  transform: scale(1.1);
}
.lpmd-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.lpmd-items:hover .lpmd-content {
  transform: translateY(0%);
}
.lpmd-content h2 {
  color: #fff;
  font-size: 20px;
}
.lpmd-content p {
  color: #fff;
  font-size: 20px;
}

/* PKK Section */
#pkk h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#pkk .pkk-deskripsi {
  color: var(--grey);
  text-align: center;
}
.pkk-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.pkk-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.pkk-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.pkk-items:hover img {
  transform: scale(1.1);
}
.pkk-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.pkk-items:hover .pkk-content {
  transform: translateY(0%);
}
.pkk-content h2 {
  color: #fff;
  font-size: 20px;
}
.pkk-content p {
  color: #fff;
  font-size: 20px;
}

/* Kader Section */
#kader h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#kader .kader-deskripsi {
  color: var(--grey);
  text-align: center;
}
.kader-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.kader-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.kader-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.kader-items:hover img {
  transform: scale(1.1);
}
.kader-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.kader-items:hover .kader-content {
  transform: translateY(0%);
}
.kader-content h2 {
  color: #fff;
  font-size: 20px;
}
.kader-content p {
  color: #fff;
  font-size: 20px;
}

/* Ketua RW Section */
#rw h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#rw .rw-deskripsi {
  color: var(--grey);
  text-align: center;
}
.rw-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.rw-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.rw-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.rw-items:hover img {
  transform: scale(1.1);
}
.rw-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.rw-items:hover .rw-content {
  transform: translateY(0%);
}
.rw-content h2 {
  color: #fff;
  font-size: 20px;
}
.rw-content p {
  color: #fff;
  font-size: 20px;
}

/* Ketua RT Section */
#rt h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#rt .rt-deskripsi {
  color: var(--grey);
  text-align: center;
}
.rt-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.rt-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.rt-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.rt-items:hover img {
  transform: scale(1.1);
}
.rt-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.rt-items:hover .rt-content {
  transform: translateY(0%);
}
.rt-content h2 {
  color: #fff;
  font-size: 20px;
}
.rt-content p {
  color: #fff;
  font-size: 20px;
}

/* Karang Taruna Section */
#kartar h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#kartar .kartar-deskripsi {
  color: var(--grey);
  text-align: center;
}
.kartar-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.kartar-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.kartar-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.kartar-items:hover img {
  transform: scale(1.1);
}
.kartar-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.kartar-items:hover .kartar-content {
  transform: translateY(0%);
}
.kartar-content h2 {
  color: #fff;
  font-size: 20px;
}
.kartar-content p {
  color: #fff;
  font-size: 20px;
}

/* Hansip Section */
#hansip h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#hansip .hansip-deskripsi {
  color: var(--grey);
  text-align: center;
}
.hansip-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.hansip-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.hansip-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.hansip-items:hover img {
  transform: scale(1.1);
}
.hansip-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.hansip-items:hover .hansip-content {
  transform: translateY(0%);
}
.hansip-content h2 {
  color: #fff;
  font-size: 20px;
}
.hansip-content p {
  color: #fff;
  font-size: 20px;
}

/* MUI Section */
#mui h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#mui .mui-deskripsi {
  color: var(--grey);
  text-align: center;
}
.mui-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.mui-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.mui-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.mui-items:hover img {
  transform: scale(1.1);
}
.mui-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.mui-items:hover .mui-content {
  transform: translateY(0%);
}
.mui-content h2 {
  color: #fff;
  font-size: 20px;
}
.mui-content p {
  color: #fff;
  font-size: 20px;
}

/* Amil Section */
#amil h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
#amil .amil-deskripsi {
  color: var(--grey);
  text-align: center;
}
.amil-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.amil-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.amil-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.amil-items:hover img {
  transform: scale(1.1);
}
.amil-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.amil-items:hover .amil-content {
  transform: translateY(0%);
}
.amil-content h2 {
  color: #fff;
  font-size: 20px;
}
.amil-content p {
  color: #fff;
  font-size: 20px;
}

/* APBDes Section */
#apbdes h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
.apbdes-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
.apbdes-items {
  position: relative;
  width: 325px;
  height: 425px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  cursor: pointer;
}
.apbdes-items img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}
.apbdes-items:hover img {
  transform: scale(1.1);
}
.apbdes-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background-color: rgba(13, 14, 32, 0.77);
  transform: translateY(100%);
}
.apbdes-items:hover .apbdes-content {
  transform: translateY(0%);
}
.apbdes-content h2 {
  color: #fff;
  font-size: 20px;
}

/* Penduduk Section */
.penduduk-button {
  text-decoration: none;
  position: absolute;
  margin-top: 65px;
  background-color: rgb(0, 101, 233);
  padding: 10px;
  color: #fff;
  font-size: 16px;
  border-radius: 20px;
  width: 10rem;
  max-width: 100rem;
  max-height: 10rem;
  text-align: center;
  right: 20px;
}
.penduduk-button:hover {
  background-color: var(--primary);
}
.content-frame {
  margin-top: 60px; /* Sesuai tinggi header */
  margin-bottom: 50px; /* Sesuai tinggi footer */
  width: 100%;
  height: calc(100vh - 110px); /* 100% tinggi layar dikurangi header+footer */
  border: none;
}

/* Prestasi Section */
#prestasi h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
.prestasi-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
/* Prestasi, Galeri, Berita Section */
.berita-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 10px auto;
}
blog-section {
  width: 100%;
}
blog-section .section-content {
  width: 85%;
  margin: 20px auto;
}
.blog-section .section-content .title {
  width: 60%;
  text-align: center;
  margin: auto;
}
.blog-section .section-content .title h2 {
  font-size: 40px;
  color: #23d25d;
  text-transform: uppercase;
  padding-top: 100px;
}
.blog-section .section-content .title p {
  font-size: 18px;
  color: #6a6a6a;
  margin-top: 20px;
}
.blog-section .section-content .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 50px;
  margin: 25px auto;
}
.blog-section .section-content .cards .card {
  width: 100%;
  background-color: #f7f7f7;
  position: relative;
}
.blog-section .section-content .cards .card img {
  width: 100%;
  height: auto;
}
.blog-section .section-content .cards .card .article {
  padding: 15px 20px;
}
.blog-section .section-content .cards .card .article h4 {
  font-size: 16px;
  color: #a4a4a4;
}
.blog-section .section-content .cards .card .article p {
  font-size: 16px;
  margin: 10px 0px;
  color: #6a6a6a;
}
.blog-section .section-content .cards .card a {
  text-decoration: none;
  display: inline-block;
  background-color: #25c5c5;
  padding: 8px 1px;
  margin-left: 20px;
  color: #fff;
  margin-bottom: 20px;
}
.blog-section .section-content .cards .card .posted-date {
  font-weight: 600;
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  background-color: #25c5c5;
  padding: 6px 15px;
}

/* BUMDes Section */
#bumdes h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
.bumdes-flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 30px auto;
}
.bumdes-image,
.bumdes-text {
  width: 50%;
  margin: 14px;
  color: var(--grey);
}
.bumdes-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}
.bumdes-text p {
  color: var(--grey);
  text-align: justify;
}

/* KopDes Section */
#kopdes h1 {
  color: var(--blue);
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
}
.kopdes-flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 30px auto;
}
.kopdes-image,
.kopdes-text {
  width: 50%;
  margin: 14px;
  color: var(--grey);
}
.kopdes-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}
.kopdes-text p {
  color: var(--grey);
  text-align: justify;
}
/* footer Section */
.footer-container {
  margin-top: 70px;
  color: #fff;
  background-color: rgba(0, 35, 44, 0.77);
  padding: 30px 5px;
  line-height: 2rem;
}
.footer-container a {
  text-decoration: none;
  color: #fff;
  line-height: 2rem;
}
.footer-container a:hover {
  text-decoration: underline;
}
.footer-flex {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}
.footer-flex section {
  width: 25%;
  text-align: center;
}
.footer-flex section ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.footer h3 {
  margin-top: 0;
}
.icon-hubungi svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-right: 5px;
}
.icon-medsos svg {
  margin: 5px 10px;
}

/* Footer Section */
.footer-copy-right {
  width: 100%;
  /* display: flex; */
  margin-top: 50px;
  flex-flow: row wrap;
  justify-content: space-evenly;
  padding: 10px;
  text-align: center;
}

/* Media Queries */

/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}
/* Tablet */
@media (max-width: 758px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
    overflow-y: auto;
    z-index: 9999;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: #000;
    display: flex;
    margin: 1rem;
    padding: 0.5rem;
    font-size: 1.6rem;
    text-decoration: none;
    justify-content: space-between;
    align-items: center;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover:after {
    transform: scaleX(0.2);
  }

  .navbar .navbar-nav li {
    list-style: none;
    width: 100%;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
  }

  .navbar .navbar-nav .submenu {
    display: none;
    background-color: #f9f9f9;
    padding-left: 2rem;
    width: 100%;
    position: relative;
    visibility: visible;
    opacity: 1;
  }

  .navbar .navbar-nav li:hover > .submenu {
    display: block; /* Tampilkan saat li di-hover */
    height: auto;
    overflow: visible;
  }

  /* Ukuran teks untuk sub-menu agar lebih kecil sedikit */
  .navbar .navbar-nav .submenu a {
    font-size: 1.3rem;
    margin: 0.5rem;
    color: #030303 !important;
  }

  .navbar .navbar-nav ul {
    display: block;
    padding: 0;
    margin: 0;
  }

  .navbar .navbar-nav li:hover > ul {
    display: block;
  }

  .navbar .navbar-nav ul li a {
    font-size: 1.2rem;
    margin: 0.5rem 1rem;
  }
  .navbar .navbar-nav .submenu li:last-child {
    border-bottom: none;
  }

  /* Statistic Section */
  header h1 {
    font-size: 1.8rem;
  }
  .card-value {
    font-size: 2rem;
  }

  /* Contact Section */
  .lokasi-flex {
    flex-direction: column;
  }
  .maps,
  .social-media {
    width: 100%;
  }

  /* APBDes */
  .apbdes-items {
    width: 50%;
  }
  .apbdes-items img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity:
      0,
      5s ease;
  }
  .apbdes-items img:hover {
    transform: scale(1.1);
    opacity: 0.9;
  }

  /* Penduduk Button */
  .penduduk-button {
    width: 100%;
    display: block;
  }
  .penduduk-button:hover {
    background-color: var(--primary);
  }

  /* Berita Section */
  .blog-section .section-content .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* footer */
  .footer-flex section {
    width: 48%;
  }
}

/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }

  /* APBDes */
  .apbdes-items {
    width: 100%;
  }
  .apbdes-items img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity:
      0,
      5s ease;
  }
  .apbdes-items img:hover {
    transform: scale(1.1);
    opacity: 0.9;
  }

  /* Penduduk Button */
  .penduduk-button {
    width: 100%;
    display: block;
  }
  .penduduk-button:hover {
    background-color: var(--primary);
  }

  .apbdes-items {
    width: 70%;
  }

  /* Berita Section */
  .blog-section .section-content .cards {
    grid-template-columns: 1fr;
  }

  /* footer */
  .footer-flex section {
    width: 50%;
    margin-top: 10px;
  }
}
