* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100%;
  height: auto;
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
}

/* Navbar Styles */
header .sticky {
  background-color: white;
  box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.1);
}

header .sticky .navbar-brand span {
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  display: inline-block;
  vertical-align: middle;
  color: black;
}

header .sticky .navbar-brand span strong {
  color: #da03da;
  font-weight: bold;
}

header .sticky .navbar-brand b {
  display: block;
  font-size: 10.3px;
  line-height: 1.8;
  font-weight: 400;
  color: black;
  font-style: italic;
}

header .sticky .nav-link {
  color: black !important;
}

header .sticky button {
  border: none;
}

.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar .nav-link {
  color: #dadada !important;
  font-weight: 500;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
}

.navbar button {
  border-radius: 150px;
  border: 3px solid;
}

.navbar-toggler {
  cursor: pointer;
  border: none !important;
  margin: 0;
  padding: 10px;
}

.navbar-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #333;
  border-radius: 6px;
  transition: 0.4s;
}

.navbar-toggler #span3 {
  width: 20px;
}

.navbar-toggler[aria-expanded="true"] #span1 {
  transform: rotate(45deg) translate(5px, 6px);
}

.navbar-toggler[aria-expanded="true"] #span2 {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] #span3 {
  transform: rotate(-45deg) translate(7px, -8px);
  width: 25px;
}

/* Dropdown Styles */
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  border: none !important;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9 !important;
  border-radius: 8px;
  padding: 10px 0;
}

.dropdown-item {
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #73006e !important;
  color: white !important;
}

/* Navbar Brand */
.navbar-brand {
  padding: 0;
  margin-right: 30px;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

.navbar-brand span {
  color: #dadada;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
}

.navbar-brand span strong {
  color: #fff;
  font-weight: 800;
}

.navbar-brand b {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  color: #e0e0e0;
  font-style: italic;
  text-transform: uppercase;
}

/* Nav Items */
.nav-item {
  position: relative;
  margin: 0 5px;
}

.nav-item:after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #fff;
  margin: 2px auto 0;
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 80%;
}

.nav-item.active:after {
  width: 80%;
}

/* Search Button */
.nav-item input {
  position: absolute;
  width: 22px;
  height: 30px;
  visibility: hidden;
}

label #searchbtn {
  cursor: pointer;
  color: #fff;
  font-size: 18px;
}

label #closesearch {
  display: none;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
}

#searchbutton:checked ~ label #searchbtn {
  display: none;
}

#searchbutton:checked ~ label #closesearch {
  display: block;
}

#searchbutton:checked ~ .nav-item {
  display: none;
}

/* Carousel Styles */
.carousel-item {
  height: 100vh;
  min-height: 600px;
  background: no-repeat center center scroll;
  background-size: cover;
}

.main-banner {
  height: 100vh;
  min-height: 600px;
  background: no-repeat center center scroll;
  background-size: cover;
  position: relative;
}

.main-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  z-index: 2;
  text-align: left;
}

.carousel-caption h2 {
  font-weight: bold;
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
  font-size: 18px;
  max-width: 600px;
  color: #e0e0e0;
}

.carousel-caption::before {
  content: "";
  height: 60%;
  border-left: 3px solid #73006e;
  position: absolute;
  left: -30px;
  top: 20%;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  width: 3rem !important;
  height: 3rem !important;
  background-color: rgba(115, 0, 110, 0.5);
  border-radius: 50%;
  padding: 20px;
}

/* Menu Bar */
.bar-menu {
  margin-top: -50px;
  position: relative;
  z-index: 100;
  padding: 0 15px;
}

.bar-menu .row {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.main-bar-menu {
  padding: 20px 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
}

.main-bar-menu:hover {
  background-color: #73006e;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(115, 0, 110, 0.3);
}

.main-bar-menu:hover a {
  color: white !important;
}

.main-bar-menu i {
  font-size: 48px !important;
  margin-bottom: 10px;
  color: #73006e;
}

.main-bar-menu:hover i {
  color: white;
}

.main-bar-menu h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.main-bar-menu .border-end {
  border-right: 1px solid #dee2e6 !important;
}

/* Data Penduduk */
.data-penduduk {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: url(asset/gambar/banner.jpg) no-repeat fixed center;
  background-size: cover;
}

.data-penduduk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(115, 0, 110, 0.8);
}

.data-penduduk .container {
  position: relative;
  z-index: 2;
}

.data-penduduk .text-data-penduduk {
  font-family: "Lobster", cursive;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 50px;
}

.data-penduduk .fa-users,
.data-penduduk .fa-male {
  color: white;
  margin-bottom: 15px;
}

.data-penduduk h2 {
  font-size: 48px;
  font-weight: bold;
  color: white;
  margin: 10px 0;
}

.data-penduduk h4 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
}

.data-penduduk .btn-outline {
  border: 3px solid white;
  color: white;
  font-weight: bold;
  border-radius: 50px;
  padding: 12px 30px;
  margin: 10px;
  background: transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.data-penduduk .btn-outline:hover {
  background-color: white;
  color: #73006e;
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Sambutan Kepala Desa */
.sambutan-kepala {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sambutan-kepala h1 {
  font-family: "Lobster", cursive;
  color: #73006e;
  margin-bottom: 30px;
}

.kutip-text {
  font-size: 80px;
  color: #73006e;
  font-family: "Lobster", cursive;
  line-height: 1;
  margin-bottom: -20px;
}

.sambutan-kepala p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.sambutan-kepala .btn-selengkapnya {
  background-color: #73006e;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.sambutan-kepala .btn-selengkapnya:hover {
  background-color: #5a0055;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(115, 0, 110, 0.3);
}

/* Berita Terbaru */
.berita-terbaru {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.berita-terbaru h1 {
  font-weight: bold;
  color: #333;
  margin-bottom: 50px;
  position: relative;
}

.berita-terbaru h1::after {
  content: "";
  border-bottom: 4px solid #73006e;
  width: 80px;
  display: block;
  margin: 15px auto;
}

.thumbnail-berita {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.thumbnail-berita:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(115, 0, 110, 0.2);
}

.thumbnail-berita .card {
  border: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.thumbnail-berita img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.thumbnail-berita:hover img {
  transform: scale(1.1);
}

.tanggal-berita {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #73006e;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  min-width: 70px;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tanggal-berita .tanggal {
  font-size: 28px;
  font-weight: bold;
  display: block;
  line-height: 1;
}

.tanggal-berita .bulan-tahun {
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

.share-berita {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(115, 0, 110, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
}

.thumbnail-berita:hover .share-berita {
  opacity: 1;
}

.share-berita h3 {
  color: white;
  margin-bottom: 20px;
}

.sosmed {
  color: white !important;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.sosmed:hover {
  transform: scale(1.3);
  color: #ffd700 !important;
}

.content-berita {
  padding: 25px;
  position: relative;
}

.content-berita::before {
  content: "";
  height: 70%;
  border-left: 3px solid #73006e;
  position: absolute;
  left: 15px;
  top: 15%;
}

.content-berita .judul-berita {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-berita .judul-berita:hover {
  color: #73006e;
}

.deskripsi-berita {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.selengkapnya {
  color: #73006e !important;
  font-weight: 600;
  margin: 0;
  transition: all 0.3s ease;
}

.selengkapnya:hover {
  letter-spacing: 1px;
}

.button-berita .btn {
  background: transparent;
  border: 3px solid #73006e;
  color: #73006e;
  font-weight: bold;
  border-radius: 50px;
  padding: 15px 40px;
  margin-top: 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button-berita .btn:hover {
  background: #73006e;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(115, 0, 110, 0.3);
}

/* Perangkat Desa */
.perangkat-desa {
  padding: 80px 0;
}

.perangkat-desa h3 {
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.perangkat-desa .detail-perangkat {
  color: #73006e;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.perangkat-desa .detail-perangkat:hover {
  text-decoration: underline;
  letter-spacing: 1px;
}

.perangkat-desa .card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.perangkat-desa .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(115, 0, 110, 0.2);
}

.perangkat-desa .card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
  transition: all 0.3s ease;
}

.perangkat-desa .card:hover img {
  transform: scale(1.05);
}

.perangkat-desa .card-body {
  padding: 20px;
  text-align: center;
}

.perangkat-desa .card-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.perangkat-desa .card-text {
  color: #666;
  font-size: 14px;
}

/* Infografis */
.infografis {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.infografis h1 {
  font-weight: bold;
  color: #333;
  margin-bottom: 50px;
  position: relative;
}

.infografis h1::after {
  content: "";
  border-bottom: 4px solid #73006e;
  width: 60px;
  display: block;
  margin: 15px auto;
}

.infografis-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.infografis .box {
  position: relative;
  width: calc(25% - 30px);
  min-width: 250px;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.infografis .box .img {
  width: 100%;
  height: 100%;
  position: relative;
}

.infografis .box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.infografis .box:hover img {
  transform: scale(1.1);
}

.infografis .box .img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(115, 0, 110, 0.8) 100%);
  z-index: 1;
  transition: all 0.3s ease;
}

.infografis .box:hover .img::before {
  background: rgba(115, 0, 110, 0.9);
}

.infografis .box .content-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  z-index: 2;
  color: white;
  transform: translateY(100%);
  transition: all 0.5s ease;
}

.infografis .box:hover .content-box {
  transform: translateY(0);
}

.infografis .box .content-box h4 {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
}

.infografis .box .content-box p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
}

/* Lokasi / Maps */
.lokasi {
  padding: 80px 0;
}

.lokasi h1 {
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.lokasi h1::after {
  content: "";
  border-bottom: 4px solid #73006e;
  width: 60px;
  display: block;
  margin: 15px auto;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background-color: #73006e !important;
  color: white;
  border-bottom: none;
  padding: 20px;
}

.modal-header .btn-close {
  background-color: white;
  opacity: 1;
}

.modal-body {
  padding: 30px;
}

.modal-body .kepala-desa {
  font-weight: bold;
  font-family: "Lobster", cursive;
  color: #73006e;
  margin: 20px 0;
}

/* Footer */
.footer-akhir {
  background-color: #73006e;
  color: #dadada;
  padding: 60px 0 20px !important;
  margin-top: 0 !important;
}

.footer-akhir h4, .footer-akhir h5 {
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}

.footer-akhir a {
  text-decoration: none;
  color: #dadada;
  transition: all 0.3s ease;
}

.footer-akhir a:hover {
  color: white;
  padding-left: 5px;
}

.footer-akhir hr {
  background-color: rgba(255,255,255,0.2);
  margin: 30px 0;
}

.footer-akhir .social-links a {
  display: inline-block;
  margin-right: 15px;
  font-size: 24px;
}

.footer-akhir .social-links a:hover {
  transform: translateY(-3px);
}

/* Utility Classes */
.mt-100 {
  margin-top: 100px;
}

.mb-100 {
  margin-bottom: 100px;
}

.p-100 {
  padding: 100px;
}

.pb-100 {
  padding-bottom: 100px;
}

/* Owl Carousel Custom */
.owl-carousel .owl-nav {
  position: absolute;
  top: -60px;
  right: 0;
}

.owl-carousel .owl-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: #73006e !important;
  color: white !important;
  margin: 0 5px !important;
  transition: all 0.3s ease !important;
}

.owl-carousel .owl-nav button:hover {
  background: #5a0055 !important;
  transform: scale(1.1) !important;
}

.owl-carousel .owl-nav button span {
  font-size: 20px;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .infografis .box {
    width: calc(33.333% - 30px);
  }
}

@media (max-width: 992px) {
  .navbar {
    background-color: white;
    box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-brand span {
    color: black;
  }
  
  .navbar-brand b {
    color: #666;
  }
  
  .nav-link {
    color: black !important;
  }
  
  .navbar-toggler span {
    background-color: #73006e;
  }
  
  .border-end {
    border-right: 0px solid #dee2e6 !important;
  }
  
  .main-bar-menu .border-end {
    border-right: 1px solid #dee2e6 !important;
  }
  
  .infografis .box {
    width: calc(50% - 30px);
  }
  
  .carousel-caption h2 {
    font-size: 32px;
  }
  
  .carousel-caption p {
    font-size: 16px;
  }
  
  .data-penduduk h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .carousel-item,
  .main-banner {
    height: 500px;
    min-height: 500px;
  }
  
  .carousel-caption {
    padding: 20px;
  }
  
  .carousel-caption h2 {
    font-size: 24px;
  }
  
  .carousel-caption p {
    font-size: 14px;
  }
  
  .main-bar-menu {
    padding: 15px 5px;
  }
  
  .main-bar-menu i {
    font-size: 32px !important;
  }
  
  .main-bar-menu h5 {
    font-size: 12px;
  }
  
  .sambutan-kepala {
    padding: 50px 0;
  }
  
  .sambutan-kepala h1 {
    font-size: 28px;
  }
  
  .kutip-text {
    font-size: 50px;
  }
  
  .data-penduduk {
    min-height: 400px;
  }
  
  .data-penduduk h2 {
    font-size: 28px;
  }
  
  .data-penduduk h4 {
    font-size: 16px;
  }
  
  .infografis {
    padding: 50px 0;
  }
  
  .infografis .box {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .owl-carousel .owl-nav {
    position: static;
    text-align: center;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .carousel-caption h2 {
    font-size: 20px;
  }
  
  .carousel-caption p {
    font-size: 12px;
  }
  
  .data-penduduk .btn-outline {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
  
  .content-berita {
    padding: 15px;
  }
  
  .content-berita::before {
    left: 5px;
  }
  
  .judul-berita {
    font-size: 16px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  animation: fadeInUp 1s ease;
}