<!DOCTYPE html>
<html lang="id">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LMI - Lembaga Manajemen Infaq</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">

    <link rel="icon" type="image/x-icon" href="http://www.lmizakat.org/photo/logo_1766472466.png">

    <link href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.2.3/css/flag-icons.min.css" rel="stylesheet">
    

	<!-- Meta Pixel Code -->
	<script>
	!function(f,b,e,v,n,t,s)
	{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
	n.callMethod.apply(n,arguments):n.queue.push(arguments)};
	if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
	n.queue=[];t=b.createElement(e);t.async=!0;
	t.src=v;s=b.getElementsByTagName(e)[0];
	s.parentNode.insertBefore(t,s)}(window, document,'script',
	'https://connect.facebook.net/en_US/fbevents.js');
	fbq('init', '1654499805535101');
	fbq('track', 'PageView');
	</script>
	<noscript><img height="1" width="1" style="display:none"
	src="https://www.facebook.com/tr?id=1654499805535101&ev=PageView&noscript=1"
	/></noscript>
	<!-- End Meta Pixel Code -->

 
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#FFAA22',
                        secondary: '#276FBA',
                        tertiary: '#FFAA22',
                        header: '#3B4197',
                        footer: '#3B4197',
                        text_header: '#FFFFFF',
                    },
                },
            }
        }
    </script>
    <style>
        /* Custom styles for submenu icons */
        .submenu-icon {
            filter: brightness(0.9);
            transition: filter 0.2s ease;
        }

        .submenu-icon:hover {
            filter: brightness(1.1);
        }
    </style>
    

        <style>
        .leaflet-grab {
            cursor: default;
        }

        #map {
            height: 80vh;
            min-height: 450px;
            margin: auto auto;
            background-color: transparent;
        }
        @media (max-width: 767px) {
            #map {
                height: 20vh;
                min-height: 200px
            }
        }

        @media (min-width: 768px) {
            #map {
                height: 75vh;
            }
        }

        @media (min-width: 1024px) {
            #map {
                height: 80vh;
            }
        }
    </style>
    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
        integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
</head>

<body class="bg-gray-100">
    <!-- Top Header (Putih) -->
    <div class="bg-white border-b border-gray-200">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center h-10 text-sm">
                <div class="flex items-center space-x-0  md:space-x-4">
                    <span class="text-gray-600">Infak mudah melalui                        <a href="#" class="text-blue-600 hover:text-blue-800">infak.in</a></span>
                </div>
                <div class="flex items-center space-x-4">
                    <div class="flex space-x-2">
                        <span class="text-gray-600 hidden md:block">Temukan kami di:</span>
                        <a href="https://www.facebook.com/lmizakat.org" class="text-gray-700 hover:text-gray-600">
                            <i class="fab fa-facebook-f"></i>
                        </a>
                        <a href="https://www.tiktok.com/@lmizakat?_r=1&amp;_t=ZS-949Ojiv8uLE" class="text-gray-700 hover:text-gray-600">
                            <i class="fab fa-tiktok"></i>
                        </a>
                        <a href="https://www.instagram.com/lmizakat/" class="text-gray-700 hover:text-gray-600">
                            <i class="fab fa-instagram"></i>
                        </a>
                        <a href="https://www.youtube.com/@lmizakat" class="text-gray-700 hover:text-gray-600">
                            <i class="fab fa-youtube"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Main Navbar (Hijau) -->
    <nav class="shadow-lg bg-header">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center h-16 gap-4">
                <a href="http://www.lmizakat.org/index.php">
                    <img src="http://www.lmizakat.org/photo/logo_1766472466.png" class="h-10 w-auto md:h-12"
                        alt="Logo LMI - Lembaga Manajemen Infaq">
                </a>
                <!-- Navigation Menu -->
                <div class="flex items-center gap-2 md:gap-4">
                    <div class="hidden md:flex items-center space-x-6 lg:space-x-8">
                                                                                    <!-- Menu dengan dropdown -->
                                <div class="relative group">
                                    <button
                                        class="flex items-center text-text_header hover:text-primary font-medium transition duration-200">
                                        Edukasi
                                        <i class="fas fa-chevron-down ml-1 text-xs"></i>
                                    </button>
                                    <!-- Submenu -->
                                    <div
                                        class="absolute left-0 w-48 bg-header rounded-md shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition duration-200 z-50">
                                                                                    <a href="https://lmizakat.org/edukasi?kategori=Berani%20Jadi%20Baik"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                    <img src="http://www.lmizakat.org/photo/menu_icons/1766474611_Motivasi.png"
                                                        alt="Berani jadi Baik"
                                                        class="w-6 h-6 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                                                <span>Berani jadi Baik</span>
                                            </a>
                                                                                    <a href="https://lmizakat.org/edukasi?kategori=Ziswaf"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                    <img src="http://www.lmizakat.org/photo/menu_icons/1766475264_zakat.png"
                                                        alt="ZISWAF"
                                                        class="w-6 h-6 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                                                <span>ZISWAF</span>
                                            </a>
                                                                                    <a href="https://lmizakat.org/edukasi?kategori=Parenting"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                    <img src="http://www.lmizakat.org/photo/menu_icons/1766474447_parenting.png"
                                                        alt="Parenting"
                                                        class="w-6 h-6 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                                                <span>Parenting</span>
                                            </a>
                                                                                    <a href="https://lmizakat.org/edukasi?kategori=Dunia%20Islam"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                    <img src="http://www.lmizakat.org/photo/menu_icons/1766474823_Dunia Islam.png"
                                                        alt="Dunia Islam"
                                                        class="w-6 h-6 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                                                <span>Dunia Islam</span>
                                            </a>
                                                                                    <a href="https://lmizakat.org/edukasi?kategori=Infografis"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                    <img src="http://www.lmizakat.org/photo/menu_icons/1766475109_infografis.png"
                                                        alt="Infografis"
                                                        class="w-6 h-6 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                                                <span>Infografis</span>
                                            </a>
                                                                            </div>
                                </div>
                                                                                                                <!-- Menu tanpa dropdown -->
                                <a href="/berita"
                                    class="text-text_header hover:text-primary transition duration-200 font-medium">
                                    Berita
                                </a>
                                                                                                                <!-- Menu dengan dropdown -->
                                <div class="relative group">
                                    <button
                                        class="flex items-center text-text_header hover:text-primary font-medium transition duration-200">
                                        Donasi
                                        <i class="fas fa-chevron-down ml-1 text-xs"></i>
                                    </button>
                                    <!-- Submenu -->
                                    <div
                                        class="absolute left-0 w-48 bg-header rounded-md shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition duration-200 z-50">
                                                                                    <a href="https://infak.in/listcampaign?search=zakat"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                    <img src="http://www.lmizakat.org/photo/menu_icons/1766475354_zakat.png"
                                                        alt="Zakat"
                                                        class="w-6 h-6 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                                                <span>Zakat</span>
                                            </a>
                                                                                    <a href="https://infak.in/listcampaign"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                    <img src="http://www.lmizakat.org/photo/menu_icons/1766475527_infaq.png"
                                                        alt="Infaq"
                                                        class="w-6 h-6 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                                                <span>Infaq</span>
                                            </a>
                                                                                    <a href="https://wakafo.org/"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                    <img src="http://www.lmizakat.org/photo/menu_icons/1766475549_Wakaf.png"
                                                        alt="Wakaf"
                                                        class="w-6 h-6 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                                                <span>Wakaf</span>
                                            </a>
                                                                                    <a href="https://lmizakat.org/donatur/konfirmasi"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>donasi konfirmasi</span>
                                            </a>
                                                                            </div>
                                </div>
                                                                                                                <!-- Menu dengan dropdown -->
                                <div class="relative group">
                                    <button
                                        class="flex items-center text-text_header hover:text-primary font-medium transition duration-200">
                                        Kolaborasi
                                        <i class="fas fa-chevron-down ml-1 text-xs"></i>
                                    </button>
                                    <!-- Submenu -->
                                    <div
                                        class="absolute left-0 w-48 bg-header rounded-md shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition duration-200 z-50">
                                                                                    <a href="https:/wa.me/6285645446420"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Relawan</span>
                                            </a>
                                                                                    <a href="https://barokahsoft.biz/karir/"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Karir</span>
                                            </a>
                                                                                    <a href="/donatur/registrasi"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Pendaftaran Donatur</span>
                                            </a>
                                                                            </div>
                                </div>
                                                                                                                <!-- Menu dengan dropdown -->
                                <div class="relative group">
                                    <button
                                        class="flex items-center text-text_header hover:text-primary font-medium transition duration-200">
                                        Tentang
                                        <i class="fas fa-chevron-down ml-1 text-xs"></i>
                                    </button>
                                    <!-- Submenu -->
                                    <div
                                        class="absolute left-0 w-48 bg-header rounded-md shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition duration-200 z-50">
                                                                                    <a href="https://lmizakat.org/tentang/sekilas-lmi"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Sekilas</span>
                                            </a>
                                                                                    <a href="/tentang/struktur-lembaga"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Struktur Lembaga</span>
                                            </a>
                                                                                    <a href="https://lmizakat.org/tentang/publikasi?tipe=Majalah%20Zakato"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Majalah Zakato</span>
                                            </a>
                                                                                    <a href="/tentang/laporan-keuangan"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Laporan Keuangan</span>
                                            </a>
                                                                                    <a href="/tentang/company-profile"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Company Profile</span>
                                            </a>
                                                                                    <a href="/tentang/annual-report"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Annual Report</span>
                                            </a>
                                                                                    <a href="/tentang/sdgs-report"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Sustainability Report</span>
                                            </a>
                                                                                    <a href="/page/legalitas"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Legalitas</span>
                                            </a>
                                                                                    <a href="https://lmizakat.org/page/kebijakan-data-pribadi-dan-privasi"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>Privasi</span>
                                            </a>
                                                                                    <a href="/faq"
                                                class="flex items-center px-4 py-2 text-sm text-text_header hover:bg-gray-100 hover:text-header">
                                                                                                <span>FAQ</span>
                                            </a>
                                                                            </div>
                                </div>
                                                                        </div>


                    <!-- Right Side Icons -->
                    <div class="items-center justify-end space-x-2 md:space-x-4 hidden md:flex">
                        <!-- Language Switch -->
                        <div class="relative group">
                            <button
                                class="flex items-center text-white hover:text-primary transition duration-200 px-2 py-1 rounded">
                                                                    <i class="fi fi-id mr-1 text-sm"></i>
                                                                <i class="fas fa-chevron-down text-xs ml-1"></i>
                            </button>
                            <!-- Language Submenu -->
                            <div
                                class="absolute right-0 w-28 bg-white rounded-md shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition duration-200 z-50">
                                <a href="http://www.lmizakat.org/index.php/lang/id"
                                    class="flex items-center px-3 py-2 text-sm text-gray-700 hover:bg-gray-100">
                                    <i class="fi fi-id mr-2 text-sm"></i> ID
                                </a>
                                <a href="http://www.lmizakat.org/index.php/lang/en"
                                    class="flex items-center px-3 py-2 text-sm text-gray-700 hover:bg-gray-100">
                                    <i class="fi fi-us mr-2 text-sm"></i> EN
                                </a>
                                <a href="http://www.lmizakat.org/index.php/lang/ar"
                                    class="flex items-center px-3 py-2 text-sm text-gray-700 hover:bg-gray-100">
                                    <i class="fi fi-sa mr-2 text-sm"></i> AR
                                </a>
                            </div>
                        </div>
                        <button id="search-page-btn"
                            class="text-white  hover:text-primary transition duration-200 h-8 w-8 rounded-full flex items-center justify-center bg-gray-800"
                            title="Find in page (Ctrl+F)">
                            <i class="fas fa-search text-lg"></i>
                        </button>
                        <div class="relative h-28 overflow-visible z-[100] w-10">
                            <button
                                class="text-white hover:text-gray-200 transition duration-200 h-[72px] w-12 absolute bottom-4 flex justify-center items-center bg-tertiary">
                                <div class="grid grid-cols-3 gap-0.5 group-hover:bg-primary group">
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                    <div class="bg-white h-2 w-2 group-hover:rounded-full"></div>
                                </div>
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Mobile Menu Button -->
                <div class="md:hidden flex items-center">
                    <button id="mobile-menu-button"
                        class="text-gray-700 hover:text-primary transition duration-200 focus:outline-none">
                        <i class="fas fa-bars text-2xl"></i>
                    </button>
                </div>
            </div>
        </div>
    </nav>
    <!-- Mobile Menu (Hidden by default) -->
    <div class="md:hidden shadow-lg hidden bg-secondary" id="mobile-menu">
        <div class="px-2 pt-2 pb-3 space-y-1">
                                                <!-- Menu dengan dropdown -->
                    <div class="space-y-1">
                        <button
                            class="w-full flex justify-between items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary"
                            onclick="toggleDropdown('mobile-1-dropdown')">
                            Edukasi
                            <i class="fas fa-chevron-down"></i>
                        </button>
                        <div id="mobile-1-dropdown" class="hidden pl-4">
                                                            <a href="https://lmizakat.org/edukasi?kategori=Berani%20Jadi%20Baik"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                            <img src="http://www.lmizakat.org/photo/menu_icons/1766474611_Motivasi.png"
                                            alt="Berani jadi Baik"
                                            class="w-5 h-5 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                        <span>Berani jadi Baik</span>
                                </a>
                                                            <a href="https://lmizakat.org/edukasi?kategori=Ziswaf"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                            <img src="http://www.lmizakat.org/photo/menu_icons/1766475264_zakat.png"
                                            alt="ZISWAF"
                                            class="w-5 h-5 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                        <span>ZISWAF</span>
                                </a>
                                                            <a href="https://lmizakat.org/edukasi?kategori=Parenting"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                            <img src="http://www.lmizakat.org/photo/menu_icons/1766474447_parenting.png"
                                            alt="Parenting"
                                            class="w-5 h-5 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                        <span>Parenting</span>
                                </a>
                                                            <a href="https://lmizakat.org/edukasi?kategori=Dunia%20Islam"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                            <img src="http://www.lmizakat.org/photo/menu_icons/1766474823_Dunia Islam.png"
                                            alt="Dunia Islam"
                                            class="w-5 h-5 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                        <span>Dunia Islam</span>
                                </a>
                                                            <a href="https://lmizakat.org/edukasi?kategori=Infografis"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                            <img src="http://www.lmizakat.org/photo/menu_icons/1766475109_infografis.png"
                                            alt="Infografis"
                                            class="w-5 h-5 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                        <span>Infografis</span>
                                </a>
                                                    </div>
                    </div>
                                                                <!-- Menu tanpa dropdown -->
                    <a href="/berita"
                        class="block px-3 py-2 text-white rounded-md transition-colors hover:bg-primary">
                        Berita
                    </a>
                                                                <!-- Menu dengan dropdown -->
                    <div class="space-y-1">
                        <button
                            class="w-full flex justify-between items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary"
                            onclick="toggleDropdown('mobile-3-dropdown')">
                            Donasi
                            <i class="fas fa-chevron-down"></i>
                        </button>
                        <div id="mobile-3-dropdown" class="hidden pl-4">
                                                            <a href="https://infak.in/listcampaign?search=zakat"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                            <img src="http://www.lmizakat.org/photo/menu_icons/1766475354_zakat.png"
                                            alt="Zakat"
                                            class="w-5 h-5 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                        <span>Zakat</span>
                                </a>
                                                            <a href="https://infak.in/listcampaign"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                            <img src="http://www.lmizakat.org/photo/menu_icons/1766475527_infaq.png"
                                            alt="Infaq"
                                            class="w-5 h-5 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                        <span>Infaq</span>
                                </a>
                                                            <a href="https://wakafo.org/"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                            <img src="http://www.lmizakat.org/photo/menu_icons/1766475549_Wakaf.png"
                                            alt="Wakaf"
                                            class="w-5 h-5 mr-3 object-contain flex-shrink-0 submenu-icon">
                                                                        <span>Wakaf</span>
                                </a>
                                                            <a href="https://lmizakat.org/donatur/konfirmasi"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>donasi konfirmasi</span>
                                </a>
                                                    </div>
                    </div>
                                                                <!-- Menu dengan dropdown -->
                    <div class="space-y-1">
                        <button
                            class="w-full flex justify-between items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary"
                            onclick="toggleDropdown('mobile-4-dropdown')">
                            Kolaborasi
                            <i class="fas fa-chevron-down"></i>
                        </button>
                        <div id="mobile-4-dropdown" class="hidden pl-4">
                                                            <a href="https:/wa.me/6285645446420"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Relawan</span>
                                </a>
                                                            <a href="https://barokahsoft.biz/karir/"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Karir</span>
                                </a>
                                                            <a href="/donatur/registrasi"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Pendaftaran Donatur</span>
                                </a>
                                                    </div>
                    </div>
                                                                <!-- Menu dengan dropdown -->
                    <div class="space-y-1">
                        <button
                            class="w-full flex justify-between items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary"
                            onclick="toggleDropdown('mobile-5-dropdown')">
                            Tentang
                            <i class="fas fa-chevron-down"></i>
                        </button>
                        <div id="mobile-5-dropdown" class="hidden pl-4">
                                                            <a href="https://lmizakat.org/tentang/sekilas-lmi"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Sekilas</span>
                                </a>
                                                            <a href="/tentang/struktur-lembaga"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Struktur Lembaga</span>
                                </a>
                                                            <a href="https://lmizakat.org/tentang/publikasi?tipe=Majalah%20Zakato"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Majalah Zakato</span>
                                </a>
                                                            <a href="/tentang/laporan-keuangan"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Laporan Keuangan</span>
                                </a>
                                                            <a href="/tentang/company-profile"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Company Profile</span>
                                </a>
                                                            <a href="/tentang/annual-report"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Annual Report</span>
                                </a>
                                                            <a href="/tentang/sdgs-report"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Sustainability Report</span>
                                </a>
                                                            <a href="/page/legalitas"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Legalitas</span>
                                </a>
                                                            <a href="https://lmizakat.org/page/kebijakan-data-pribadi-dan-privasi"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>Privasi</span>
                                </a>
                                                            <a href="/faq"
                                    class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                                                                        <span>FAQ</span>
                                </a>
                                                    </div>
                    </div>
                            
            <!-- Language Switch Mobile -->
            <div class="space-y-1">
                <button
                    class="w-full flex justify-between items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary"
                    onclick="toggleDropdown('language-dropdown')">
                    <span class="flex items-center">
                                                    <i class="fi fi-id mr-2 text-sm"></i> ID
                                            </span>
                    <i class="fas fa-chevron-down"></i>
                </button>
                <div id="language-dropdown" class="hidden pl-4">
                    <a href="http://www.lmizakat.org/index.php/lang/id"
                        class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                        <i class="fi fi-id mr-2 text-sm"></i> ID
                    </a>
                    <a href="http://www.lmizakat.org/index.php/lang/en"
                        class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                        <i class="fi fi-us mr-2 text-sm"></i> EN
                    </a>
                    <a href="http://www.lmizakat.org/index.php/lang/ar"
                        class="flex items-center px-3 py-2 text-white rounded-md transition-colors hover:bg-primary/80">
                        <i class="fi fi-sa mr-2 text-sm"></i> AR
                    </a>
                </div>
            </div>
        </div>
    </div>

        <div class="relative h-full overflow-hidden">
        <!-- Carousel Container -->
        <div id="carousel" class="flex transition-transform duration-500 ease-in-out h-full">
                                                <div class="min-w-full h-full relative">
                                                    <img src="http://www.lmizakat.org/photo/banner/1774929699_Cover Website LMI - Report Ramadhan 2026.png"
                                class="w-full h-full max-h-screen object-contain sm:object-cover" alt="Laporan Distribusi Qurban">
                                            </div>
                                    <div class="min-w-full h-full relative">
                                                    <a href="https://infak.in/yukzakat" target="_blank" class="block w-full h-full">
                                <img src="http://www.lmizakat.org/photo/banner/1760950708_Banner Web - Zakat Profesi.png"
                                    class="w-full h-full max-h-screen object-contain sm:object-cover"
                                    alt="Zakat Profesi">
                            </a>
                                            </div>
                                    <div class="min-w-full h-full relative">
                                                    <a href="https://infak.in/" target="_blank" class="block w-full h-full">
                                <img src="http://www.lmizakat.org/photo/banner/1760952238_Banner Web - Infakin.png"
                                    class="w-full h-full max-h-screen object-contain sm:object-cover"
                                    alt="infakin">
                            </a>
                                            </div>
                                    </div>

                    <!-- Navigation Arrows -->
            <button id="prevBtn"
                class="absolute scale-50 md:scale-100 left-4 top-1/2 transform -translate-y-1/2 bg-white bg-opacity-20 hover:bg-opacity-30 text-white p-3 rounded-full transition duration-300 backdrop-blur-sm">
                <i class="fas fa-chevron-left text-xl"></i>
            </button>
            <button id="nextBtn"
                class="absolute scale-50 md:scale-100 right-4 top-1/2 transform -translate-y-1/2 bg-white bg-opacity-20 hover:bg-opacity-30 text-white p-3 rounded-full transition duration-300 backdrop-blur-sm">
                <i class="fas fa-chevron-right text-xl"></i>
            </button>

            <!-- Dots Indicator -->
            <div class="absolute bottom-8 left-1/2 transform -translate-x-1/2 flex space-x-3">
                                    <button
                        class="dot w-3 h-3 rounded-full bg-white bg-opacity-50 hover:bg-opacity-75 transition duration-300"
                        data-slide="0"></button>
                                    <button
                        class="dot w-3 h-3 rounded-full bg-white bg-opacity-50 hover:bg-opacity-75 transition duration-300"
                        data-slide="1"></button>
                                    <button
                        class="dot w-3 h-3 rounded-full bg-white bg-opacity-50 hover:bg-opacity-75 transition duration-300"
                        data-slide="2"></button>
                            </div>
            </div>

    <section class="py-8 bg-gray-200">
        <div class="max-w-7xl mx-auto px-2 sm:px-4 lg:px-6">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-2 md:gap-8">


                                
                <div class="text-center group bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition duration-300">
                    <div
                        class="w-16 h-16 mx-auto mb-4 bg-secondary/10 rounded-full flex items-center justify-center group-hover:bg-primary/20 transition duration-300">
                        <i class="fas fa-thumbs-up text-2xl text-secondary"></i>
                    </div>
                    <h3 class="text-lg font-semibold text-gray-800 mb-3">Jemput Zakat</h3>
                    <p class="text-xs md:text-sm text-gray-600 leading-relaxed mb-3">
                        Layanan penjemputan zakat langsung ke rumah atau kantor Anda. Siap menjemput zakat Anda dengan aman dan profesional.
                    </p>
                    
                    <a href="https://wa.me/6282230000909" class="text-secondary font-semibold">Bayar Zakat <i
                            class="fas fa-arrow-right"></i></a>
                </div>
                                
                <div class="text-center group bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition duration-300">
                    <div
                        class="w-16 h-16 mx-auto mb-4 bg-secondary/10 rounded-full flex items-center justify-center group-hover:bg-primary/20 transition duration-300">
                        <i class="fas fa-calculator text-2xl text-secondary"></i>
                    </div>
                    <h3 class="text-lg font-semibold text-gray-800 mb-3">Kalkulator Zakat</h3>
                    <p class="text-xs md:text-sm text-gray-600 leading-relaxed mb-3">
                        Hitung zakat Anda dengan mudah dan cepat! Pastikan kewajiban zakat sesuai jenis harta dan penghasilan Anda.
                    </p>
                    
                    <a href="https://lmizakat.org/kalkulator/zakat-penghasilan" class="text-secondary font-semibold">Bayar Zakat <i
                            class="fas fa-arrow-right"></i></a>
                </div>
                                
                <div class="text-center group bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition duration-300">
                    <div
                        class="w-16 h-16 mx-auto mb-4 bg-secondary/10 rounded-full flex items-center justify-center group-hover:bg-primary/20 transition duration-300">
                        <i class="fas fa-check-circle text-2xl text-secondary"></i>
                    </div>
                    <h3 class="text-lg font-semibold text-gray-800 mb-3">Konfirmasi Donasi</h3>
                    <p class="text-xs md:text-sm text-gray-600 leading-relaxed mb-3">
                        Sudah transfer donasi? Konfirmasikan agar donasi Anda segera diproses dan disalurkan ke program yang tepat.
                    </p>
                    
                    <a href="https://wa.me/6282230000909" class="text-secondary font-semibold">Bayar Zakat <i
                            class="fas fa-arrow-right"></i></a>
                </div>
                                
                <div class="text-center group bg-white p-6 rounded-lg shadow-lg hover:shadow-xl transition duration-300">
                    <div
                        class="w-16 h-16 mx-auto mb-4 bg-secondary/10 rounded-full flex items-center justify-center group-hover:bg-primary/20 transition duration-300">
                        <i class="fas fa-handshake text-2xl text-secondary"></i>
                    </div>
                    <h3 class="text-lg font-semibold text-gray-800 mb-3">Tanya Ziswaf</h3>
                    <p class="text-xs md:text-sm text-gray-600 leading-relaxed mb-3">
                        Punya pertanyaan seputar zakat, infak, sedekah, atau wakaf? Kami siap membantu Anda memahami ZISWAF sesuai syariat.
                    </p>
                    
                    <a href="https://wa.me/6282230000909" class="text-secondary font-semibold">Bayar Zakat <i
                            class="fas fa-arrow-right"></i></a>
                </div>
                
            </div>
        </div>
    </section>
    <!-- About Us Section -->
    <section class="py-16 bg-gray-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">

                <!-- Left Content -->
                <div class="space-y-6">
                    <div>
                        <p class="text-primary font-medium text-sm uppercase tracking-wide mb-2">Tentang LMI</p>
                        <h2 class="text-3xl lg:text-4xl font-bold text-secondary leading-tight">
                            Lembaga Manajemen Infaq Ukhuwah Islamiyah                        </h2>
                    </div>

                    <div class="space-y-4">
                        <p class="text-gray-700 leading-relaxed">
                            Lembaga zakat berskala nasional yang menghimpun dan menyalurkan dana zakat, infak, sedekah, wakaf, serta dana sosial lainnya secara profesional dan akuntabel.                        </p>

                        <p class="text-gray-700 leading-relaxed">
                            Kami hadir untuk menjadikan zakat lebih cepat, mudah, dan berdampak, melalui program pendidikan, ekonomi, dakwah, kesehatan, hingga kemanusiaan.                        </p>

                        <p class="text-gray-700 leading-relaxed">
                            Bersama Anda, kami terus membangun momentum untuk negeri.                        </p>
                    </div>

                    <div class="pt-4">
                        <button
                            class="bg-tertiary hover:bg-tertiary/80 text-white font-medium px-6 py-3 rounded-3xl transition duration-300 transform hover:scale-105">
                            Program Unggulan <i class="fas fa-arrow-right"></i>
                        </button>
                    </div>
                </div>

                <!-- Right Image -->
                <div class="flex justify-center lg:justify-end">
                    <div class="relative">
                        <img src="http://www.lmizakat.org/photo/aboutme.png" alt="Tim Lembaga Manajemen Infaq"
                            class="w-full h-full max-w-xl object-cover">
                        <!-- Decorative elements -->
                        <div class="absolute -top-4 -right-4 w-8 h-8 bg-primary/30 rounded-full"></div>
                        <div class="absolute -bottom-6 -left-6 w-12 h-12 bg-primary/20 rounded-full"></div>
                    </div>
                </div>

            </div>
        </div>
    </section>

    <!-- Statistics Section -->
    <section class="py-12 bg-gray-200 ">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="grid grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-0 mb-6">

                <!-- Tersalurkan -->
                <div class="text-center lg:border-r lg:border-gray-300 lg:pr-8">
                    <div class="space-y-2">
                        <p class="text-gray-600 font-medium">Dana Tersalurkan</p>
                        <h3 class="text-2xl md:text-3xl lg:text-4xl font-bold text-secondary text-nowrap">
                            <span class="md:hidden">Rp. 498,168.6M</span>
                            <span class="hidden md:inline">Rp. 498,168,623,133</span>
                        </h3>
                    </div>
                </div>

                <!-- Mustahik Bantuan -->
                <div class="text-center lg:border-r lg:border-gray-300 lg:px-8">
                    <div class="space-y-2">
                        <p class="text-gray-600 font-medium">Dana Terhimpun</p>
                        <h3 class="text-2xl md:text-3xl lg:text-4xl font-bold text-secondary text-nowrap">
                            <span class="md:hidden">Rp. 559,548.5M</span>
                            <span class="hidden md:inline">Rp. 559,548,497,150</span>
                        </h3>
                    </div>
                </div>

                <!-- Muzzaki Berjanji -->
                <div class="text-center lg:border-gray-300 lg:px-8">
                    <div class="space-y-2">
                        <p class="text-gray-600 font-medium">Mustahik Berdaya</p>
                        <h3 class="text-2xl md:text-3xl lg:text-4xl font-bold text-secondary text-nowrap">
                            <span class="md:hidden">3.4M</span>
                            <span class="hidden md:inline">3,416,815</span>
                        </h3>
                    </div>
                </div>

            </div>
        </div>
    </section>
    <section class="pb-12 bg-gray-200">
        <div class="w-full mx-auto px-4 sm:px-6 lg:px-8">
            <div class="h-full geojson_indonesia">
                <div class="text-center">
                    <p class="text-primary font-medium text-sm uppercase tracking-wide">Peta Program</p>
                    <h2 class="text-3xl lg:text-4xl font-bold text-secondary mb-4">
                        Kepedulianmu menyebar luas                    </h2>
                </div>
                <div id="map" role="region" aria-label="Peta Indonesia"></div>
                <!--
                <div class="max-w-3xl mx-auto">
                    <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN DKI JAKARTA</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PUSAT</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN SUMATERA SELATAN</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN KALIMANTAN SELATAN</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN KEPULAUAN RIAU</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN JAWA TIMUR</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN BALI &amp; NUSRA</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN GORONTALO</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN JAWA TENGAH DAN DIY</a>
                                                    <a href="#"
                                class="text-gray-700 hover:text-primary font-semibold text-center">KANTOR PERWAKILAN MALUKU DAN PAPUA</a>
                        
                    </div>
                </div>
                -->
            </div>
        </div>
    </section>

    <!-- Programs Section -->
    <section class="py-16 bg-gray-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">

            <!-- Section Header -->
            

            <!-- Program Cards -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">

                <div class="max-w-sm w-full">
                    <!-- Image Section -->
                    

                    <!-- Content Section (floating on image) -->
                    
                </div>

                <div class="max-w-sm w-full">
                    <!-- Image Section -->
                    

                    <!-- Content Section (floating on image) -->
                    
                </div>

                <div class="max-w-sm w-full">
                    <!-- Image Section -->
                    
                </div>

            </div>
        </div>
    </section>


    <section class="py-12 bg-gray-200 ">
        <div class="text-center mb-4">
            <p class="text-primary font-medium text-sm uppercase tracking-wide mb-2">Testimoni</p>
            <h2 class="text-3xl lg:text-4xl font-bold text-secondary mb-4">
                Ini Kata Mereka            </h2>
        </div>
        <div class="relative h-72 max-w-7xl mx-auto overflow-hidden">
            <!-- Carousel Container -->
            <div id="carousel_testimonial" class="flex transition-transform duration-500 ease-in-out h-full">
                <!-- Slide 1 -->
                
                <div class="min-w-full h-full bg-cover bg-center bg-no-repeat relative">
                    <div class="absolute inset-0 flex items-center justify-center">
                        <div class="max-w-4xl px-4 flex flex-wrap w-full p-4">
                            <div class="w-1/3 rounded-md flex justify-center items-center">
                                <img src="http://www.lmizakat.org/photo/testimonial/1762850953_testimoni_2.png"
                                    class="ratio-square object-cover rounded-md mx-auto" alt="Testimonial 1">
                            </div>
                            <div class="w-2/3 py-4 flex flex-col pl-8">
                                <p class="text-sm font-bold text-xl mb-2">Ibu Siti Nasucha</p>
                                <p class="text-sm text-gray-600 mb-2">"Alhamdulillah saget damel sadean mbak. Matur suwun atas semuanya nggih, mugi-mugi kebaikan bapak Ibu sedoyo dibalas oleh Allah rezeki yang berlipat"
                                </p>
                                <p class="text-sm text-gray-700">Penerima Manfaat Program Gerobak Cahaya Kerjasama LMI-YBM PLN</p>
                            </div>
                        </div>
                    </div>
                </div>

                
                <div class="min-w-full h-full bg-cover bg-center bg-no-repeat relative">
                    <div class="absolute inset-0 flex items-center justify-center">
                        <div class="max-w-4xl px-4 flex flex-wrap w-full p-4">
                            <div class="w-1/3 rounded-md flex justify-center items-center">
                                <img src="http://www.lmizakat.org/photo/testimonial/1762850912_testimoni_1.png"
                                    class="ratio-square object-cover rounded-md mx-auto" alt="Testimonial 1">
                            </div>
                            <div class="w-2/3 py-4 flex flex-col pl-8">
                                <p class="text-sm font-bold text-xl mb-2">Pak Mispan</p>
                                <p class="text-sm text-gray-600 mb-2">"Terimakasih untuk para donatur dan LMI yg sudah memberikan bantuan berupa domba untuk kelompok kami. Bantuan ini sudah kami rasakan manfaatnya. Semoga LMI semakin maju dan membantu banyak orang"
                                </p>
                                <p class="text-sm text-gray-700">Ketua Kelompok Peternak Domba Krosok, Kec. Sendang, Malang</p>
                            </div>
                        </div>
                    </div>
                </div>

                            </div>

            <!-- Navigation Arrows -->
            <button id="prevBtnTestimonial"
                class="absolute bg-tertiary left-4 top-1/2 transform -translate-y-1/2 w-12 h-12  hover:bg-opacity-30 text-white p-3 rounded-full transition duration-300 backdrop-blur-sm">
                <i class="fas fa-chevron-left text-xl"></i>
            </button>
            <button id="nextBtnTestimonial"
                class="absolute right-4 top-1/2 transform -translate-y-1/2 bg-tertiary w-12 h-12 hover:bg-opacity-30 text-white p-3 rounded-full transition duration-300 backdrop-blur-sm">
                <i class="fas fa-chevron-right text-xl"></i>
            </button>
        </div>
    </section>

    <section class="bg-secondary py-16 px-6">
        <div class="max-w-6xl mx-auto">
            <!-- Section Title -->
            <h2 class="text-white text-3xl font-bold text-center mb-12">Katalog Program</h2>

            <!-- Programs Grid -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- Ekonomi -->
                                    <a href="http://www.lmizakat.org/index.php/katalog/Dakwah"
                        class="flex items-center mb-4 group duration-300">
                        <div class="w-1/3">
                            <div
                                class="bg-white rounded-full w-24 group-hover:scale-110 h-24 flex items-center justify-center mx-auto mb-4 transition-transform duration-300">
                                
                                <i class="fas fa-book text-secondary text-4xl"></i>
                            </div>
                        </div>
                        <div class="w-2/3">
                            <h3 class="text-white text-xl font-semibold mb-2">Dakwah</h3>
                            <p class="text-white text-sm opacity-90 ">
                                Kajian KeIslaman di berbagai masjid, sekolah, maupun layanan ta&#039;lim kepada mitra
                            </p>
                        </div>
                    </a>
                                    <a href="http://www.lmizakat.org/index.php/katalog/Ekonomi"
                        class="flex items-center mb-4 group duration-300">
                        <div class="w-1/3">
                            <div
                                class="bg-white rounded-full w-24 group-hover:scale-110 h-24 flex items-center justify-center mx-auto mb-4 transition-transform duration-300">
                                
                                <i class="fas fa-chart-line text-secondary text-4xl"></i>
                            </div>
                        </div>
                        <div class="w-2/3">
                            <h3 class="text-white text-xl font-semibold mb-2">Ekonomi</h3>
                            <p class="text-white text-sm opacity-90 ">
                                Program penurunan beban pengeluaran dan pengentasan kemiskinan
                            </p>
                        </div>
                    </a>
                                    <a href="http://www.lmizakat.org/index.php/katalog/Kemanusiaan"
                        class="flex items-center mb-4 group duration-300">
                        <div class="w-1/3">
                            <div
                                class="bg-white rounded-full w-24 group-hover:scale-110 h-24 flex items-center justify-center mx-auto mb-4 transition-transform duration-300">
                                
                                <i class="fas fa-user-nurse text-secondary text-4xl"></i>
                            </div>
                        </div>
                        <div class="w-2/3">
                            <h3 class="text-white text-xl font-semibold mb-2">Kemanusiaan</h3>
                            <p class="text-white text-sm opacity-90 ">
                                Program sosial mengangani kebutuhan darurat, tanggap bencana, dan edukasi pra-bencana
                            </p>
                        </div>
                    </a>
                                    <a href="http://www.lmizakat.org/index.php/katalog/Kesehatan"
                        class="flex items-center mb-4 group duration-300">
                        <div class="w-1/3">
                            <div
                                class="bg-white rounded-full w-24 group-hover:scale-110 h-24 flex items-center justify-center mx-auto mb-4 transition-transform duration-300">
                                
                                <i class="fas fa-fa-solid fa-suitcase-medical text-secondary text-4xl"></i>
                            </div>
                        </div>
                        <div class="w-2/3">
                            <h3 class="text-white text-xl font-semibold mb-2">Kesehatan</h3>
                            <p class="text-white text-sm opacity-90 ">
                                Edukasi kesehatan dan bantuan kesehatan gratis untuk dhuafa maupun msyarakat umum
                            </p>
                        </div>
                    </a>
                                    <a href="http://www.lmizakat.org/index.php/katalog/Lingkungan"
                        class="flex items-center mb-4 group duration-300">
                        <div class="w-1/3">
                            <div
                                class="bg-white rounded-full w-24 group-hover:scale-110 h-24 flex items-center justify-center mx-auto mb-4 transition-transform duration-300">
                                
                                <i class="fas fa-fa-solid fa-leaf text-secondary text-4xl"></i>
                            </div>
                        </div>
                        <div class="w-2/3">
                            <h3 class="text-white text-xl font-semibold mb-2">Lingkungan</h3>
                            <p class="text-white text-sm opacity-90 ">
                                Program pelestarian lingkungan baik ekosistem darat, udara, hingga lautan
                            </p>
                        </div>
                    </a>
                                    <a href="http://www.lmizakat.org/index.php/katalog/Pendidikan"
                        class="flex items-center mb-4 group duration-300">
                        <div class="w-1/3">
                            <div
                                class="bg-white rounded-full w-24 group-hover:scale-110 h-24 flex items-center justify-center mx-auto mb-4 transition-transform duration-300">
                                
                                <i class="fas fa-graduation-cap text-secondary text-4xl"></i>
                            </div>
                        </div>
                        <div class="w-2/3">
                            <h3 class="text-white text-xl font-semibold mb-2">Pendidikan</h3>
                            <p class="text-white text-sm opacity-90 ">
                                Beasiswa dhuafa dan berprestasi, bantuan infrastruktur sekolah, dan bantuan guru
                            </p>
                        </div>
                    </a>
                            </div>
        </div>
    </section>

    <!-- Programs Section -->
    <section class="py-16 bg-gray-200 pb-28">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">

            <!-- Section Header -->
            <div class="text-center mb-12">
                <p class="text-primary font-medium text-sm uppercase tracking-wide mb-2">
                	</p>
                <h2 class="text-3xl lg:text-4xl font-bold text-secondary mb-4">
                    
                </h2>
                <p class="text-gray-600 max-w-2xl mx-auto mb-6">
                    
                </p>
                <a href="#" class="text-primary hover:text-primary/80 font-medium">
                    
                </a>
            </div>

            <!-- Program Cards -->
            
        </div>
    </section>
    
    

    <!-- Search Modal -->
    <div id="search-modal" class="hidden fixed inset-0 z-[1000] flex items-start justify-center pt-20">
        <!-- Modal Overlay -->
        <div class="fixed inset-0 bg-black bg-opacity-50 z-[-1]" id="search-modal-overlay"></div>
        
        <!-- Search Box -->
        <div class="bg-white rounded-lg shadow-2xl p-6 w-96 max-w-[90%] z-[1001]">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-xl font-bold text-gray-800">Cari di Halaman</h2>
                <button id="search-modal-close" class="text-gray-500 hover:text-gray-700 text-2xl">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            
            <div class="space-y-4">
                <div>
                    <input 
                        type="text" 
                        id="search-input" 
                        placeholder="Masukkan teks yang dicari..." 
                        class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary"
                        autofocus
                    >
                </div>
                
                <div class="flex items-center justify-between">
                    <span id="search-results" class="text-sm text-gray-600">Masukkan teks untuk mencari</span>
                    <div class="space-x-2">
                        <button id="search-prev-btn" class="px-3 py-2 bg-gray-200 hover:bg-gray-300 rounded-lg transition disabled:opacity-50 disabled:cursor-not-allowed">
                            <i class="fas fa-chevron-up"></i>
                        </button>
                        <button id="search-next-btn" class="px-3 py-2 bg-primary hover:bg-primary/90 text-white rounded-lg transition disabled:opacity-50 disabled:cursor-not-allowed">
                            <i class="fas fa-chevron-down"></i>
                        </button>
                    </div>
                </div>
                
                <div class="flex space-x-2">
                    <button id="search-clear-btn" class="flex-1 px-4 py-2 bg-gray-200 hover:bg-gray-300 text-gray-800 rounded-lg transition">
                        Hapus Highlight
                    </button>
                    <button id="search-close-btn" class="flex-1 px-4 py-2 bg-primary hover:bg-primary/90 text-white rounded-lg transition">
                        Tutup
                    </button>
                </div>
            </div>
        </div>
    </div>

    <footer class="text-white py-8 px-4 md:px-6 bg-footer">
        <div class="max-w-6xl mx-auto">
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">

                <!-- Hubungi Kami -->
                <div>
                    <h3 class="text-lg font-bold mb-4">Hubungi Kami</h3>
                    <div class="space-y-3 text-sm">
                        <div>
                            <p class="font-semibold mb-1">Kantor Pusat</p>
                            <p class="opacity-90 leading-relaxed">
                                Gedung Sehati, Jl. Barata Jaya XXII No.20 Lt. 3, Baratajaya, Kec. Gubeng, Surabaya, Jawa Timur 60284
                            </p>
                        </div>
                        <div>
                            <p class="font-semibold mb-1">Telepon</p>
                            <p class="opacity-90">+62 822-3000-0909 |  +62 823-1375-0171</p>
                        </div>
                        <div>
                            <p class="font-semibold mb-1">Email</p>
                            <p class="opacity-90">info@lmizakat.id</p>
                        </div>
                    </div>
                </div>

                <!-- Dynamic Footer Menus -->
                                    <div>
                        <h3 class="text-lg font-bold mb-4">Informasi</h3>
                                                    <ul class="space-y-2 text-sm">
                                                                    <li>
                                        <a href="https://lmizakat.org/tentang/publikasi?tipe=Majalah%20Zakato"
                                            class="opacity-90 hover:opacity-100 transition-opacity">
                                            Majalah Online
                                        </a>
                                    </li>
                                                                    <li>
                                        <a href="https://lmizakat.org/tentang/publikasi?tipe=Laporan%20Keuangan"
                                            class="opacity-90 hover:opacity-100 transition-opacity">
                                            Laporan Keuangan
                                        </a>
                                    </li>
                                                            </ul>
                                            </div>
                                    <div>
                        <h3 class="text-lg font-bold mb-4">Kolaborasi</h3>
                                                    <ul class="space-y-2 text-sm">
                                                                    <li>
                                        <a href="https://lmizakat.org/"
                                            class="opacity-90 hover:opacity-100 transition-opacity">
                                            Relawan
                                        </a>
                                    </li>
                                                                    <li>
                                        <a href="https://lmizakat.org/"
                                            class="opacity-90 hover:opacity-100 transition-opacity">
                                            CSR
                                        </a>
                                    </li>
                                                                    <li>
                                        <a href="https://lmizakat.org/"
                                            class="opacity-90 hover:opacity-100 transition-opacity">
                                            Kemitraan
                                        </a>
                                    </li>
                                                            </ul>
                                            </div>
                
            </div>

            <!-- Logo and Copyright -->
            <div class="mt-8 pt-6 border-t border-primary/80">
                <div class="flex flex-col md:flex-row justify-between items-center">
                    <!-- Logo -->
                    <div class="mb-4 md:mb-0">
                        <div class="flex items-center space-x-2">
                            <div class="rounded-lg p-2">
                                <img src="http://www.lmizakat.org/photo/logo_1766472371.png"
                                    alt="Logo LMI - Lembaga Manajemen Infaq" class="w-12 md:w-16">
                            </div>
                        </div>
                    </div>
                    <div class="text-xs text-white opacity-80">&copy; 2026
                        LMI - Lembaga Manajemen Infaq. All rights reserved</div>
                </div>
            </div>
        </div>
    </footer>


    <script>
        var color_primary = '#FFAA22';
        var color_secondary = '#276FBA';

        var color_map = '#3B4197';
        var color_tertiary = '#FFAA22';
        
        // Visit Tracking System
        (function() {
            let heartbeatInterval;
            let isPageActive = true;
            let debugMode = true; // Set true untuk debugging
            
            // Send heartbeat every 30 seconds
            function startHeartbeat() {
                heartbeatInterval = setInterval(function() {
                    if (isPageActive) {
                        fetch('http://www.lmizakat.org/index.php/api/visit/heartbeat', {
                            method: 'POST',
                            headers: {
                                'Content-Type': 'application/json',
                                'X-CSRF-TOKEN': 'w9QSxWuB22St6h4jEoYIYZwZEjhDKBbX2flnUz1G'
                            },
                            credentials: 'same-origin' // Penting untuk session
                        })
                        .then(response => response.json())
                        .then(data => {
                            if (debugMode) {
                                console.log('Heartbeat response:', data);
                            }
                        })
                        .catch(err => {
                            if (debugMode) {
                                console.error('Heartbeat error:', err);
                            }
                        });
                    }
                }, 30000); // 30 seconds
            }
            
            // End visit when user leaves
            function endVisit() {
                navigator.sendBeacon('http://www.lmizakat.org/index.php/api/visit/end', new URLSearchParams({
                    '_token': 'w9QSxWuB22St6h4jEoYIYZwZEjhDKBbX2flnUz1G'
                }));
            }
            
            // Track page visibility
            document.addEventListener('visibilitychange', function() {
                isPageActive = !document.hidden;
            });
            
            // Start heartbeat on page load
            startHeartbeat();
            
            // End visit on page unload
            window.addEventListener('beforeunload', endVisit);
            
            // Also end visit when navigating to another page
            window.addEventListener('pagehide', endVisit);
        })();
        
        // Toggle Mobile Menu
        document.addEventListener("DOMContentLoaded", () => {
            const mobileMenuButton = document.getElementById("mobile-menu-button");
            const mobileMenu = document.getElementById("mobile-menu");

            // Toggle menu when hamburger button is clicked
            mobileMenuButton.addEventListener("click", () => {
                mobileMenu.classList.toggle("hidden");
            });

            // Hide menu when clicking a link
            mobileMenu.querySelectorAll("a").forEach(link => {
                link.addEventListener("click", () => {
                    mobileMenu.classList.add("hidden");
                });
            });

        });

        function toggleDropdown(id) {
            const el = document.getElementById(id);
            el.classList.toggle("hidden");
        }

        // ==================== Page Search Functionality ====================
        (function() {
            let currentIndex = 0;
            let matches = [];
            let highlightedElements = [];

            const searchModal = document.getElementById('search-modal');
            const searchInput = document.getElementById('search-input');
            const searchResults = document.getElementById('search-results');
            const searchPageBtn = document.getElementById('search-page-btn');
            const searchModalClose = document.getElementById('search-modal-close');
            const searchCloseBtn = document.getElementById('search-close-btn');
            const searchClearBtn = document.getElementById('search-clear-btn');
            const searchNextBtn = document.getElementById('search-next-btn');
            const searchPrevBtn = document.getElementById('search-prev-btn');
            const searchModalOverlay = document.getElementById('search-modal-overlay');

            // Open search modal
            function openSearchModal() {
                searchModal.classList.remove('hidden');
                searchInput.focus();
                searchInput.select();
            }

            // Close search modal
            function closeSearchModal() {
                searchModal.classList.add('hidden');
                clearHighlights();
                currentIndex = 0;
                matches = [];
            }

            // Clear all highlights
            function clearHighlights() {
                highlightedElements.forEach(el => {
                    el.outerHTML = el.innerHTML;
                });
                highlightedElements = [];
                searchResults.textContent = 'Masukkan teks untuk mencari';
                searchNextBtn.disabled = true;
                searchPrevBtn.disabled = true;
            }

            // Search and highlight text
            function searchText(query) {
                clearHighlights();
                currentIndex = 0;

                if (!query.trim()) {
                    searchResults.textContent = 'Masukkan teks untuk mencari';
                    searchNextBtn.disabled = true;
                    searchPrevBtn.disabled = true;
                    return;
                }

                const bodyText = document.body.innerHTML;
                const regex = new RegExp(`(${query.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
                
                // Count matches
                matches = bodyText.match(regex) || [];
                
                if (matches.length === 0) {
                    searchResults.textContent = 'Tidak ada hasil yang ditemukan';
                    searchNextBtn.disabled = true;
                    searchPrevBtn.disabled = true;
                    return;
                }

                // Highlight all matches in the DOM
                const walker = document.createTreeWalker(
                    document.body,
                    NodeFilter.SHOW_TEXT,
                    null,
                    false
                );

                let node;
                let counter = 0;
                
                while (node = walker.nextNode()) {
                    if (node.nodeValue.toLowerCase().includes(query.toLowerCase())) {
                        const span = document.createElement('span');
                        const text = node.nodeValue;
                        let lastIndex = 0;
                        let match;
                        
                        while ((match = regex.exec(text)) !== null) {
                            const before = text.substring(lastIndex, match.index);
                            if (before) {
                                span.appendChild(document.createTextNode(before));
                            }

                            const highlight = document.createElement('mark');
                            highlight.textContent = match[0];
                            highlight.className = 'page-search-highlight';
                            highlight.style.backgroundColor = '#FFFF00';
                            highlight.style.color = '#000';
                            highlight.style.cursor = 'pointer';
                            
                            span.appendChild(highlight);
                            highlightedElements.push(highlight);
                            lastIndex = regex.lastIndex;
                            counter++;
                        }

                        if (lastIndex < text.length) {
                            span.appendChild(document.createTextNode(text.substring(lastIndex)));
                        }

                        node.parentNode.replaceChild(span, node);
                    }
                }

                searchResults.textContent = `${counter} hasil ditemukan`;
                searchNextBtn.disabled = counter === 0;
                searchPrevBtn.disabled = counter === 0;

                if (counter > 0) {
                    scrollToMatch(0);
                }
            }

            // Scroll to specific match
            function scrollToMatch(index) {
                if (highlightedElements.length === 0) return;

                const elements = Array.from(document.querySelectorAll('.page-search-highlight'));
                if (elements.length === 0) return;

                const element = elements[index];
                if (!element) return;

                // Scroll into view
                element.scrollIntoView({ behavior: 'smooth', block: 'center' });
                
                // Update styling
                elements.forEach((el, idx) => {
                    if (idx === index) {
                        el.style.backgroundColor = '#FF6B6B';
                        el.style.color = '#fff';
                    } else {
                        el.style.backgroundColor = '#FFFF00';
                        el.style.color = '#000';
                    }
                });

                currentIndex = index;
            }

            // Next match
            function nextMatch() {
                const elements = Array.from(document.querySelectorAll('.page-search-highlight'));
                if (elements.length === 0) return;
                
                let nextIndex = (currentIndex + 1) % elements.length;
                scrollToMatch(nextIndex);
            }

            // Previous match
            function prevMatch() {
                const elements = Array.from(document.querySelectorAll('.page-search-highlight'));
                if (elements.length === 0) return;
                
                let prevIndex = (currentIndex - 1 + elements.length) % elements.length;
                scrollToMatch(prevIndex);
            }

            // Event listeners
            searchPageBtn.addEventListener('click', openSearchModal);
            searchModalClose.addEventListener('click', closeSearchModal);
            searchCloseBtn.addEventListener('click', closeSearchModal);
            searchClearBtn.addEventListener('click', clearHighlights);
            searchModalOverlay.addEventListener('click', closeSearchModal);

            searchInput.addEventListener('input', (e) => {
                searchText(e.target.value);
            });

            searchNextBtn.addEventListener('click', nextMatch);
            searchPrevBtn.addEventListener('click', prevMatch);

            // Keyboard shortcuts
            searchInput.addEventListener('keydown', (e) => {
                if (e.key === 'Enter') {
                    if (e.shiftKey) {
                        prevMatch();
                    } else {
                        nextMatch();
                    }
                } else if (e.key === 'Escape') {
                    closeSearchModal();
                }
            });

            // Ctrl+F shortcut to open search
            document.addEventListener('keydown', (e) => {
                if ((e.ctrlKey || e.metaKey) && e.key === 'f') {
                    e.preventDefault();
                    openSearchModal();
                }
            });
        })();
        // ==================== End Search Functionality ====================
    </script>

        <script>
        class HeroCarousel {
            constructor() {
                this.carousel = document.getElementById('carousel');
                this.prevBtn = document.getElementById('prevBtn');
                this.nextBtn = document.getElementById('nextBtn');
                this.dots = document.querySelectorAll('.dot');
                this.currentSlide = 0;
                this.totalSlides = 3;
                this.autoSlideInterval = null;

                this.init();
            }

            init() {
                // Only initialize if we have more than one slide
                if (this.totalSlides <= 1) {
                    return;
                }

                // Set initial active dot
                this.updateDots();

                // Add event listeners
                if (this.prevBtn) {
                    this.prevBtn.addEventListener('click', () => this.prevSlide());
                }
                if (this.nextBtn) {
                    this.nextBtn.addEventListener('click', () => this.nextSlide());
                }

                // Add dot click listeners
                this.dots.forEach((dot, index) => {
                    dot.addEventListener('click', () => this.goToSlide(index));
                });

                // Start auto-slide
                this.startAutoSlide();

                // Pause auto-slide on hover
                this.carousel.parentElement.addEventListener('mouseenter', () => this.stopAutoSlide());
                this.carousel.parentElement.addEventListener('mouseleave', () => this.startAutoSlide());
            }

            goToSlide(slideIndex) {
                this.currentSlide = slideIndex;
                const translateX = -slideIndex * 100;
                this.carousel.style.transform = `translateX(${translateX}%)`;
                this.updateDots();
            }

            nextSlide() {
                this.currentSlide = (this.currentSlide + 1) % this.totalSlides;
                this.goToSlide(this.currentSlide);
            }

            prevSlide() {
                this.currentSlide = (this.currentSlide - 1 + this.totalSlides) % this.totalSlides;
                this.goToSlide(this.currentSlide);
            }

            updateDots() {
                this.dots.forEach((dot, index) => {
                    if (index === this.currentSlide) {
                        dot.classList.remove('bg-opacity-50');
                        dot.classList.add('bg-opacity-100');
                    } else {
                        dot.classList.remove('bg-opacity-100');
                        dot.classList.add('bg-opacity-50');
                    }
                });
            }

            startAutoSlide() {
                if (this.totalSlides > 1) {
                    this.autoSlideInterval = setInterval(() => {
                        this.nextSlide();
                    }, 5000); // Change slide every 5 seconds
                }
            }

            stopAutoSlide() {
                if (this.autoSlideInterval) {
                    clearInterval(this.autoSlideInterval);
                    this.autoSlideInterval = null;
                }
            }
        }

        // Initialize carousel when DOM is loaded
        document.addEventListener('DOMContentLoaded', () => {
            new HeroCarousel();
        });

        // Testimonial Carousel Class
        class TestimonialCarousel {
            constructor() {
                this.carousel = document.getElementById('carousel_testimonial');
                this.prevBtn = document.getElementById('prevBtnTestimonial');
                this.nextBtn = document.getElementById('nextBtnTestimonial');
                this.currentSlide = 0;
                this.totalSlides = 2; 
                this.autoSlideInterval = null;

                this.init();
            }

            init() {
                // Only initialize if elements exist
                if (!this.carousel || !this.prevBtn || !this.nextBtn) {
                    return;
                }

                // Add event listeners
                this.prevBtn.addEventListener('click', () => this.prevSlide());
                this.nextBtn.addEventListener('click', () => this.nextSlide());

                // Start auto-slide
                this.startAutoSlide();

                // Pause auto-slide on hover
                this.carousel.parentElement.addEventListener('mouseenter', () => this.stopAutoSlide());
                this.carousel.parentElement.addEventListener('mouseleave', () => this.startAutoSlide());
            }

            goToSlide(slideIndex) {
                this.currentSlide = slideIndex;
                const translateX = -slideIndex * 100;
                this.carousel.style.transform = 'translateX(' + translateX + '%)';
            }

            nextSlide() {
                this.currentSlide = (this.currentSlide + 1) % this.totalSlides;
                this.goToSlide(this.currentSlide);
            }

            prevSlide() {
                this.currentSlide = (this.currentSlide - 1 + this.totalSlides) % this.totalSlides;
                this.goToSlide(this.currentSlide);
            }

            startAutoSlide() {
                this.autoSlideInterval = setInterval(() => {
                    this.nextSlide();
                }, 4000); // Change slide every 4 seconds
            }

            stopAutoSlide() {
                if (this.autoSlideInterval) {
                    clearInterval(this.autoSlideInterval);
                    this.autoSlideInterval = null;
                }
            }
        }

        // Initialize testimonial carousel when DOM is loaded
        document.addEventListener('DOMContentLoaded', () => {
            new TestimonialCarousel();
        });
    </script>
    <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
        integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>

    <script>
        // 1) Inisialisasi peta (tanpa tile layer)
        const map = L.map('map', {
            zoomControl: false, // tampilkan jika perlu
            attributionControl: false,
            scrollWheelZoom: false, // biar "poster-like"
            doubleClickZoom: false,
            dragging: false
        }).setView([-2.5, 118], 10);

        const locations = [];
        // Fungsi untuk bikin marker
        var customDivIcon = L.divIcon({
            className: "custom-marker",
            html: "<a href='#'><i class='fas fa-map-marker-alt' style='color:" + color_primary +
                "; font-size:24px;'></i></a>",
            iconSize: [24, 24],
            iconAnchor: [12, 24]
        });

        function makeMarker(lat, lng, title) {
            return L.marker([lat, lng], {
                    icon: customDivIcon
                })
                .bindTooltip(title, {
                    direction: 'top',
                    offset: [0, -4]
                });
        }

        // Use locations from controller
        const locationsData = [{"id":1,"nama":"KANTOR PERWAKILAN DKI JAKARTA","latitude":"-6.41232800","longitude":"106.82484900","deskripsi":"Perum Mulya Asri blok D No. 2 (D2) Jl R. Sanim, Tanah baru kec. Beji Kota Depok Jabar 16426","aktif":true,"created_at":"2025-09-27T13:07:51.000000Z","updated_at":"2025-10-22T09:44:52.000000Z"},{"id":2,"nama":"KANTOR PUSAT","latitude":"-7.30470800","longitude":"112.76025200","deskripsi":"Gedung Sehati, Jl. Barata Jaya XXII No.20 Lt. 3, Baratajaya, Kec. Gubeng, Surabaya, Jawa Timur 60284","aktif":true,"created_at":"2025-09-27T13:07:51.000000Z","updated_at":"2025-10-22T09:46:17.000000Z"},{"id":3,"nama":"KANTOR PERWAKILAN SUMATERA SELATAN","latitude":"-3.05581900","longitude":"104.74677300","deskripsi":"JL MUSI VI BLOK M - 40 KOMPLEK WAY HITAM SIRING AGUNG PALEMBANG","aktif":true,"created_at":"2025-09-27T13:07:51.000000Z","updated_at":"2025-10-22T09:44:15.000000Z"},{"id":4,"nama":"KANTOR PERWAKILAN KALIMANTAN SELATAN","latitude":"-3.34476000","longitude":"114.61345800","deskripsi":"Jl Flamboyan III No. 85 RT 42 RW 1 Kelurahan Sungai Miai Kecamatan Banjarmasin Utara Kota Banjarmasin","aktif":true,"created_at":"2025-09-27T13:07:52.000000Z","updated_at":"2025-10-22T09:43:29.000000Z"},{"id":5,"nama":"KANTOR PERWAKILAN KEPULAUAN RIAU","latitude":"1.10205100","longitude":"104.03803600","deskripsi":"PERUM KDA CLUSTER KEPODANG 6 NO 8 KELURAHAN BELIAN KECAMATAN BATAM KOTA","aktif":true,"created_at":"2025-09-27T13:07:52.000000Z","updated_at":"2025-10-22T09:43:56.000000Z"},{"id":6,"nama":"KANTOR PERWAKILAN JAWA TIMUR","latitude":"-7.30473400","longitude":"112.76026700","deskripsi":"Perumahan, Jl. Larangan Mega Asri Jl. Werkudoro III No.33 Blok D, Larangan, Kec. Candi, Kabupaten Sidoarjo, Jawa Timur 61271","aktif":true,"created_at":"2025-09-27T13:07:52.000000Z","updated_at":"2025-10-22T09:23:17.000000Z"},{"id":7,"nama":"KANTOR PERWAKILAN BALI \u0026 NUSRA","latitude":"-8.67076900","longitude":"115.20980800","deskripsi":"JL. Tukad Melangit No. 36 C Panjer Denpasar Selatan_Bali","aktif":true,"created_at":"2025-09-27T13:07:52.000000Z","updated_at":"2025-10-22T09:42:07.000000Z"},{"id":8,"nama":"KANTOR PERWAKILAN GORONTALO","latitude":"0.53618300","longitude":"123.06232200","deskripsi":"Jl. Marten Rahman, RT 013\/RW 007 Kelurahan Hutuo, Kecamatan Limboto, Kabupaten Gorontalo, Kode Pos 96213","aktif":true,"created_at":"2025-10-22T09:40:25.000000Z","updated_at":"2025-10-22T09:40:25.000000Z"},{"id":9,"nama":"KANTOR PERWAKILAN JAWA TENGAH DAN DIY","latitude":"-7.88992900","longitude":"110.32838300","deskripsi":"Jl. Kusumanegara Gg. Parkit No.C-15, Jomblangan, Kec. Banguntapan, Kab. Bantul, Daerah Istimewa Yogyakarta 55198","aktif":true,"created_at":"2025-10-22T09:41:12.000000Z","updated_at":"2025-10-22T09:41:12.000000Z"},{"id":10,"nama":"KANTOR PERWAKILAN MALUKU DAN PAPUA","latitude":"-5.12964000","longitude":"119.45841200","deskripsi":"JL. A.P. Pettarani III, Lr. 3, No. 04, Kec. Panakkukang, Kota Makassar - Sulawesi Selatan","aktif":true,"created_at":"2025-10-22T09:43:01.000000Z","updated_at":"2025-10-22T09:43:01.000000Z"}];

        if (locationsData.length > 0) {
            locationsData.forEach(location => {
                locations.push({
                    name: location.nama,
                    coords: [location.latitude, location.longitude]
                });
            });
        } else {
            // Fallback to default locations
            const defaultLocations = [{
                    name: 'Jakarta',
                    coords: [-6.1754, 106.8272]
                },
                {
                    name: 'Surabaya',
                    coords: [-7.2575, 112.7521]
                },
                {
                    name: 'Medan',
                    coords: [3.5952, 98.6722]
                },
                {
                    name: 'Makassar',
                    coords: [-5.1477, 119.4327]
                }
            ];

            defaultLocations.forEach(loc => {
                locations.push({
                    name: loc.name,
                    coords: loc.coords
                });
            });
        }

        // Add markers
        locations.forEach(loc => {
            const marker = makeMarker(loc.coords[0], loc.coords[1], loc.name);
            marker.addTo(map);
        });

        // 2) Load GeoJSON batas provinsi Indonesia (satu file lokal)
        //    Jalankan lewat server lokal agar fetch() tidak diblokir.
        fetch('https://raw.githubusercontent.com/superpikar/indonesia-geojson/master/indonesia.geojson')
            .then(r => r.json())
            .then(geojson => {
                const layer = L.geoJSON(geojson, {
                    style: () => ({
                        stroke: false, // tanpa garis batas
                        fillColor: color_map,
                        fillOpacity: 1
                    })
                }).addTo(map);

                // Sesuaikan tampilan agar seluruh siluet masuk ke view
                try {
                    map.fitBounds(layer.getBounds(), {
                        padding: [20, 20]
                    });
                } catch (e) {
                    /* fallback kalau bounds gagal */
                }

                // (Opsional) efek hover sedikit lebih gelap
                layer.eachLayer(l => {
                    l.on('mouseover', () => l.setStyle({
                        fillOpacity: 0.5,
                        opacity: 1 // garis tetap jelas
                    }));
                    l.on('mouseout', () => l.setStyle({
                        fillOpacity: 0.95,
                        opacity: 0.8
                    }));
                });

            })
            .catch(err => {
                console.error('Gagal memuat GeoJSON:', err);
                alert(
                    'GeoJSON tidak ditemukan. Pastikan file "indonesia-provinces.geojson" ada di folder yang sama dan jalankan lewat server lokal.'
                );
            });

        // (Opsional) Jika ingin menaruh marker kota tertentu di atas siluet:
        // const dot = L.circleMarker([-6.1754, 106.8272], {
        //   radius: 6, weight: 2, color: '#1f2937', fillColor: '#fde047', fillOpacity: 0.95
        // }).bindTooltip('Jakarta', { direction: 'top', offset: [0, -4] }).addTo(map);
    </script>

    <script src="http://www.lmizakat.org/public/chatbot.js?apikey=your_secret_key_here"></script>
</body>

</html>
