/* =========================
   DEBUG: Dropdown Visibility
   ========================= */
@media (max-width: 1199px) {
  /* Pastikan navmenu visible */
  #navmenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Pastikan dropdown container bisa diinteraksi */
  .navmenu .dropdown {
    position: relative;
    z-index: 1000;
  }
  
  /* Debug border untuk melihat area klik */
  .navmenu .dropdown > a {
    /* border: 1px solid red; /* Hapus komentar untuk debugging */
  }
}

/* =========================
   Global Styles
   ========================= */
html, body {
   overflow-x: hidden;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #212529;
    line-height: 1.6;
    background-color: #fff;
}
/* Import font Bastingbrush */
@font-face {
    font-family: 'Bastingbrush';
    src: url('/assets/fonts/Bastingbrush.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
//* ================== HEADER AREA ================== */
/* =========================
   Nav Dropdown Fix
   ========================= */
.header .navmenu .dropdown ul {
  background: #fff;             /* background putih solid */
  color: #333;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px 0;
}

.header .navmenu .dropdown ul li a {
  color: #333;
  padding: 8px 20px;
  font-size: 14px;
}

.header .navmenu .dropdown ul li a:hover {
  color: #007bff;               /* biru hover */
  background: #f5f5f5;          /* abu muda hover */
}


/* ================== VARIASI OPSIONAL ================== */
.pemerintah,
.pemerintah1 {
  font-family: Gadugi, sans-serif;
  font-size: 1em;
  font-style: normal;
  font-weight: bold;
  display: inline;
  color: #fff;
}

.desa,
.desa1 {
  font-family: 'Basting Brush', cursive;
  font-size: 24px;
  font-style: normal;
  font-weight: normal;
  color: #fff;
}



/* =========================
   Card & Hover Effects
   ========================= */
.card-hover:hover,
.about-image-custom:hover,
.gallery-image:hover,
.capacity-image:hover {
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.card-hover {
    color: #212529;
}

.card-hover h2.heading-highlight {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}

/* =========================
   Image Utilities
   ========================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-image {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

/* =========================
   Navbar & Header
   ========================= */
.navbar-custom {
    background-color: #343a40;
}

.navbar-custom .nav-link {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: #cccccc;
}

/* =========================
   Kependudukan Charts
   ========================= */
.chart-mini {
    max-width: 80px !important;
    max-height: 80px !important;
    width: 80px !important;
    height: 80px !important;
}

.chart-wrapper {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.chart-hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.chart-wrapper:hover .chart-hover-text {
    opacity: 1;
}

#modalChartCanvas {
    max-height: 400px;
    width: 100% !important;
}

/* =========================
   Footer Styles
   ========================= */
#footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 40px 0;
}

#footer a {
    color: #ffffff;
    text-decoration: none;
}

#footer a:hover {
    color: #cccccc;
    text-decoration: underline;
}

#footer h3, #footer h4, #footer h5 {
    color: #ffffff;
}

#footer p {
    color: #cccccc;
}

#footer .widget-blog-thumb img {
    max-width: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 4px;
}

#footer .widget-blog {
    margin-bottom: 10px;
}

#footer .widget-blog-content p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #cccccc;
}

#footer .widget-blog-content span {
    font-size: 12px;
    color: #999999;
}

#footer .widget-blog-content a:hover {
    color: #ffffff;
}
/* =========================
   Hero / Slide Section - FIXED FULL WIDTH
   ========================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* HAPUS margin negatif yang sebelumnya */
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  width: 100%;
  height: 80vh;
  margin: 0;
  padding: 0;
}

/* ✅ PERBAIKAN: Gunakan 100% bukan 100vw */
.hero .hero-img {
  width: 100% !important;
  min-width: 100%;
  height: 80vh !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  padding: 0;
}

/* Pastikan carousel item full width */
.hero .carousel-item {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* FIX untuk carousel inner */
.hero .carousel-inner {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Pastikan section parent juga full width */
#hero {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ✅ FIX untuk berbagai ukuran layar */
@media (max-width: 768px) {
  .hero .carousel,
  .hero .carousel-item,
  .hero .hero-img {
    height: 60vh;
    width: 100%;
  }
}

/* Overlay di seluruh slide */
.hero .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Caption (teks di tengah) */
.hero .carousel-caption {
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0;
  left: 0;
  right: 0;
  margin: 0;
}

.hero .carousel-caption .caption-bg {
  background: rgba(61, 77, 106, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 2rem 3rem;
  width: auto;
  max-width: 65%;
  text-align: center;
}

@media (max-width: 768px) {
  .hero .carousel-caption .caption-bg {
    max-width: 90%;
    padding: 1.5rem;
  }

  .hero .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .hero .carousel-caption p {
    font-size: 1rem;
  }
}

/* Reset body dan html untuk memastikan full width */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}


/* =========================
   Footer Copyright
   ========================= */
.footer .copyright {
  background: #3d4d6a;
  color: #fff;
  padding: 15px 0;
  font-size: 14px;
  text-align: center;
  margin: 0;
}

.footer .copyright p {
  margin: 0;
  line-height: 1.6;
}

.footer .copyright #develop {
  margin-top: 5px;
  font-size: 12px;
  color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.footer .copyright #develop img {
  height: 16px;
  width: auto;
  vertical-align: middle;
}

/* Hilangkan space kosong bawah */
.footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* =========================
   Footer Menu Links
   ========================= */
.footer .footer-links a {
  color: #ccc;
  text-decoration: none !important;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer .footer-links a:hover {
  background: #00aaff;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateX(3px);
}


/* Footer Berita */
.footer-berita li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.footer-berita .widget-blog-thumb img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.footer-berita .widget-blog-content a {
  color: #ccc;
  text-decoration: none !important;  /* hilangkan underline */
  transition: all 0.3s ease;
}

.footer-berita .widget-blog-content a:hover {
  background: #00aaff;   /* sama dengan hover menu footer */
  color: #fff !important;
  padding: 2px 6px;       /* biar ada blok biru rapih */
  border-radius: 4px;
  text-decoration: none !important;
}


/* =========================
   Mobile Tweak
   ========================= */
@media (max-width: 576px) {
  .footer .copyright p {
    display: block;
    text-align: center;
  }

  .footer .copyright p .sitename {
    display: block;
    margin-top: 3px;
    margin-bottom: 2px;
  }

  .footer .copyright p span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
  }


}



/*halaman tentang desa */
/* Tentang Desa Equal Height */
.tentang-desa .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* Biar sama tinggi antar kolom */
}

.tentang-desa .col-lg-8,
.tentang-desa .col-lg-4 {
  display: flex;
  flex-direction: column;
}

/* Peta Desa agar tidak melebihi Sekilas Tentang Desa */
.tentang-desa-map {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tentang-desa-map .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tentang-desa-map .card-body {
  flex: 1;
  overflow: hidden; /* cegah konten peta keluar */
}

/* Peta responsive */
.tentang-desa-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}



/* Efek hover untuk card batas wilayah */
.tentang-desa .card .d-flex {
  transition: all 0.3s ease;
  cursor: pointer;
}

.tentang-desa .card .d-flex:hover {
  border-color: var(--accent-color); /* sesuai warna utama template */
  background-color: rgba(71, 178, 228, 0.05); /* biru muda transparan */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.tentang-desa .card .d-flex:hover i {
  color: var(--accent-color);
  transform: scale(1.2);
  transition: 0.3s ease;
}
/* Efek hover melayang untuk gambar utama Tentang Desa */
.tentang-desa img {
  transition: all 0.4s ease;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* bayangan default */
}

.tentang-desa img:hover {
  transform: translateY(-8px); /* naik sedikit */
  box-shadow: 0 12px 30px rgba(0,0,0,0.25); /* bayangan lebih tebal */
}

/* Eyecatch Card Box */
.eyecatch-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto; /* tengah di dalam container */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eyecatch-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.eyecatch-box .box-logo {
  max-width: 120px;
  margin-bottom: 20px;
}

.eyecatch-box h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.eyecatch-box p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.eyecatch-box .box-logo {
  max-width: 120px;
  margin: 0 auto 20px auto; /* auto kiri kanan = center */
  display: block;
}


.card-kosong {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-kosong:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-kosong .icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(71,178,228,0.1);
  color: #47b2e4;
  font-size: 28px;
}
/* ===== TEAM MEMBER - FIXED VERSION ===== */
.team-member {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

/* CONTAINER FOTO - FIXED HEIGHT UNTUK FOTO PORTRAIT */
.team-member .member-photo {
  width: 100%;
  height: 300px; /* Height fixed untuk foto portrait */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #f8f9fa;
}

/* FOTO - COVER DENGAN POSITION CENTER */
.team-member .foto-profil {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Fokus ke wajah */
  border-radius: 8px 8px 0 0;
  transition: transform 0.3s ease;
}

/* OVERLAY - PASTIKAN MENEMPEL KE BAWAH FOTO */
.team-member .team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 15px 10px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.team-member .team-overlay h5 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.team-member .team-overlay p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

/* HIDDEN CONTENT - PASTIKAN MENUTUPI SELURUH CARD */
.team-member .member-hidden {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 3;
  border-radius: 8px;
}

.team-member .member-hidden .hover-content {
  width: 100%;
}

.team-member .member-hidden .hover-content p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.team-member .member-hidden .member-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.team-member .member-hidden .member-role {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Hover effects */
.team-member:hover .foto-profil {
  transform: scale(1.05);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.team-member:hover .member-hidden {
  opacity: 1;
  transform: translateY(0);
}

.team-member:hover .member-hidden .hover-content p {
  opacity: 1;
  transform: translateY(0);
}

.team-member:hover .team-overlay {
  opacity: 0;
  visibility: hidden;
}
/* WARNA LEMBAGA */
.team-member.pemdes .member-hidden { background: rgba(0, 102, 204, 0.95); }
.team-member.pemdes .team-overlay { background: rgba(0, 123, 255, 0.9); }

.team-member.bpd .member-hidden { background: rgba(0, 153, 102, 0.95); }
.team-member.bpd .team-overlay { background: rgba(40, 167, 69, 0.9); }

/* WARNA SAMA UNTUK SEMUA LEMBAGA LAIN (#ADAD00 - KUNING HIJAU) */
.team-member.kt .member-hidden,
.team-member.pkk .member-hidden,
.team-member.linmas .member-hidden,
.team-member.posyandu .member-hidden,
.team-member.rtrw .member-hidden,
.team-member.lpm .member-hidden {
    background: rgba(173, 173, 0, 0.95); /* #ADAD00 */
}

.team-member.kt .team-overlay,
.team-member.pkk .team-overlay,
.team-member.linmas .team-overlay,
.team-member.posyandu .team-overlay,
.team-member.rtrw .team-overlay,
.team-member.lpm .team-overlay {
    background: rgba(173, 173, 0, 0.9); /* #ADAD00 */
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .team-member {
    max-width: 220px;
  }
  
  .team-member .member-photo {
    height: 260px; /* Sesuaikan height untuk tablet */
  }
  
  .team-member .team-overlay h5 {
    font-size: 14px;
  }
  
  .team-member .team-overlay p {
    font-size: 12px;
  }
  
  .team-member .member-hidden {
    padding: 15px 10px;
  }
  
  .team-member .member-hidden .hover-content p {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .team-member {
    max-width: 200px;
  }
  
  .team-member .member-photo {
    height: 240px; /* Sesuaikan height untuk mobile */
  }
  
  .team-member .team-overlay {
    padding: 12px 8px;
  }
  
  .team-member .team-overlay h5 {
    font-size: 13px;
  }
  
  .team-member .team-overlay p {
    font-size: 11px;
  }
}

/* ===== WARNA TEKS PUTIH UNTUK SEMUA KONTEN HOVER ===== */

/* Teks dalam member-hidden (saat hover) */
.team-member .member-hidden,
.team-member .member-hidden .hover-content,
.team-member .member-hidden .hover-content p,
.team-member .member-hidden .member-name,
.team-member .member-hidden .member-role,
.team-member .member-hidden .member-sk,
.team-member .member-hidden .member-date,
.team-member .member-hidden .member-period {
  color: #ffffff !important;
}

/* Pastikan semua teks dalam hover content berwarna putih */
.team-member .member-hidden * {
  color: #ffffff !important;
}

/* Specific styling untuk setiap elemen teks */
.team-member .member-hidden .member-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Tambahkan shadow untuk readability */
}

.team-member .member-hidden .member-role {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.team-member .member-hidden .member-sk,
.team-member .member-hidden .member-date,
.team-member .member-hidden .member-period {
  font-size: 13px;
  margin: 4px 0;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hover content wrapper */
.team-member .member-hidden .hover-content {
  color: #ffffff !important;
}

/* Tambahkan sedikit shadow pada teks untuk kontras yang lebih baik */
.team-member .member-hidden .hover-content p {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Untuk memastikan tidak ada teks yang inherit warna dari parent */
.team-member.pemdes .member-hidden,
.team-member.bpd .member-hidden,
.team-member.kt .member-hidden,
.team-member.pkk .member-hidden,
.team-member.linmas .member-hidden,
.team-member.posyandu .member-hidden,
.team-member.rtrw .member-hidden,
.team-member.lpm .member-hidden {
  color: #ffffff !important;
}

/* Pastikan link (jika ada) juga berwarna putih */
.team-member .member-hidden a {
  color: #ffffff !important;
  text-decoration: underline;
}

.team-member .member-hidden a:hover {
  color: #f8f9fa !important;
}

/*index-layanan*/
/* Card utama */
.service-item {
 background: #fff;
  border-radius: 12px;
  padding: 12px 8px; /* lebih kecil dari sebelumnya */
  margin-bottom: 18px; /* jarak antar card */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Jarak antar card horizontal */
#services .col-xm-6, 
#services .col-sm-3, 
#services .col-md-2 {
  padding-left: 10px;
  padding-right: 10px;
}

#services {
  position: relative;
  background: url('/assets/img/bg/2.png') no-repeat center center;
  background-size: cover;
}

#services::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245,245,245,0.6); /* abu muda transparan */
  z-index: 1;
}


#services .container {
  position: relative;
  z-index: 2;
}

/* Service Item Card */


.service-item i {
  font-size: 36px;    /* perbesar icon */
  margin-bottom: 12px;
  display: block;
}

.service-item .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.8rem;
  color: #fff;
}

.service-item h6 {
  font-size: 14px;
  font-weight: 600;
  margin: 8px;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  background: #f8faff;
}
.icon-blue { background: #0d6efd; }     /* Biru */
.icon-green { background: #198754; }   /* Hijau */
.icon-orange { background: #fd7e14; }  /* Oranye */
.icon-purple { background: #6f42c1; }  /* Ungu */
.icon-red { background: #dc3545; }     /* Merah */
.icon-teal { background: #20c997; }    /* Teal */

@media (max-width: 576px) {
  .service-item {
    padding: 10px 6px;
    margin-bottom: 20px;
  }
  .icon-circle {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 20px;
  }
  .service-item h6 {
    font-size: 13px;
  }
}

/* Tombol Selengkapnya */
.btn-selengkapnya {
  background: #3d4d6a;         /* warna dasar sesuai tema */
  color: #fff;
  border: 2px solid #3d4d6a;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;         /* bentuk rounded pill */
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-selengkapnya:hover {
  background: #00aaff;         /* kontras saat hover */
  border-color: #00aaff;
  color: #fff;                 /* teks tetap putih */
  transform: translateY(-3px); /* efek melayang */
  box-shadow: 0 8px 15px rgba(0,0,0,0.25);
}
.img-hover-zoom {
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  border-radius: 12px;
}

.img-hover-zoom:hover {
  transform: scale(1.08) translateY(-5px);
  filter: brightness(1.1);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Spacing untuk service items di mobile */
@media (max-width: 768px) {
  #services .row .col-6 {
    margin-bottom: 2rem !important;
  }
  
  .service-item {
    padding: 1.5rem 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
  }
}

/* Swiper Navigation untuk Mobile */
@media (max-width: 768px) {
  .berita-swiper {
    position: relative;
    padding: 0 40px; /* Beri space untuk buttons */
  }
  
  .berita-swiper .swiper-button-prev,
  .berita-swiper .swiper-button-next {
    display: flex !important;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: white;
  }
  
  .berita-swiper .swiper-button-prev:after,
  .berita-swiper .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
  }
  
  .berita-swiper .swiper-button-prev {
    left: 0;
  }
  
  .berita-swiper .swiper-button-next {
    right: 0;
  }
  
  /* Tambahkan dots indicator juga */
  .berita-swiper .swiper-pagination {
    bottom: -30px !important;
  }
  
  .berita-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #007bff;
  }
}

/* Untuk tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .berita-swiper .swiper-button-prev,
  .berita-swiper .swiper-button-next {
    width: 45px;
    height: 45px;
  }
}

/* Mobile Login Button dalam Navmenu */
.mobile-login-item {
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding-top: 10px;
}

.btn-getstarted-mobile {
  background: var(--color-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-getstarted-mobile:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* Pastikan tombol login desktop tersembunyi di mobile */
@media (max-width: 1199px) {
  .btn-getstarted {
    display: none !important;
  }
}

/* Desktop styling */
@media (min-width: 1200px) {
  .mobile-login-item {
    display: none !important;
  }
}
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #007bff;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
  color: #fff;
  text-align: center;
  font-size: 16px;
}

.scroll-top i {
  font-size: 24px;
  line-height: 0;
}

.scroll-top:hover {
  background: #0069d9;
  color: #fff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}
/* Visi Misi Desa */
.visi-misi-desa .card {
    transition: transform 0.3s ease;
}

.visi-misi-desa .card:hover {
    transform: translateY(-5px);
}

.visi-misi-desa .card-header {
    border-bottom: none;
    font-weight: 600;
}

.visi-item, .misi-group {
    border-left: 3px solid #dee2e6;
    padding-left: 15px;
}

.visi-item {
    border-left-color: #0d6efd; /* Biru untuk visi */
}

.misi-group {
    border-left-color: #198754; /* Hijau untuk misi */
}

.misi-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}
/* =========================
   MOBILE DROPDOWN FIX
   ========================= */

@media (max-width: 1199px) {
  /* FIX 1: Pastikan dropdown bisa diklik di mobile */
  .navmenu .dropdown > a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
  }
  
  /* FIX 2: Toggle dropdown yang aktif */
  .navmenu .dropdown > a.active {
    color: #007bff;
  }
  
  /* FIX 3: Rotasi ikon dropdown */
  .navmenu .dropdown > a.active .bi-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }
  
  /* FIX 4: Styling dropdown menu untuk mobile */
  .navmenu .dropdown > ul {
    display: none;
    position: static;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
    padding-left: 20px;
    margin-top: 0;
    border-radius: 0;
    border-left: 3px solid #007bff;
  }
  
  /* FIX 5: Tampilkan dropdown saat aktif */
  .navmenu .dropdown > ul.show {
    display: block !important;
    animation: fadeInDown 0.3s ease;
  }
  
  /* FIX 6: Submenu dalam dropdown */
  .navmenu .dropdown .dropdown > ul {
    background: rgba(0, 0, 0, 0.03);
    margin-left: 10px;
  }
  
  /* FIX 7: Padding untuk item dropdown */
  .navmenu .dropdown ul li a {
    padding: 10px 15px !important;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  /* FIX 8: Hapus hover effect untuk mobile */
  .navmenu .dropdown ul li a:hover {
    background: #f5f5f5 !important;
    color: #007bff !important;
  }
  
  /* FIX 9: Ikon dropdown di mobile */
  .navmenu .dropdown .bi-chevron-down {
    float: right;
    margin-top: 3px;
    font-size: 12px;
    transition: transform 0.3s ease;
  }
}

/* Animasi untuk dropdown */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   DESKTOP DROPDOWN (existing - tetap pertahankan)
   ========================= */
@media (min-width: 1200px) {
  .navmenu .dropdown:hover > ul {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .navmenu .dropdown .dropdown:hover > ul {
    top: 0;
    left: 100%;
  }
}