body { font-family: 'Inter', sans-serif; background-color: #f8f9fa; }

    .hero-section { background: linear-gradient(135deg, #0d6efd, #0a58ca); color: white; padding: 80px 0; }

    /* Gabungkan Visi Card */
    .visi-card { 
        border: none; 
        border-radius: 20px; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
        background: white; 
        padding: 50px 40px; 
        margin-top: -60px; 
        position: relative;
        overflow: hidden;
        z-index: 10;
        }

    .visi-card::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 6px;
        background: linear-gradient(90deg, #0d6efd, #20c997);
    }

    .visi-card h2 {
        background: -webkit-linear-gradient(#0d6efd, #00d4ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 800;
        letter-spacing: 2px;
    }

    .misi-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
    .misi-number { 
        background: linear-gradient(135deg, #0d6efd, #0a58ca); 
        color: white; 
        width: 45px; height: 45px; 
        border-radius: 50%; 
        display: flex; align-items: center; justify-content: center; 
        font-weight: bold; flex-shrink: 0; 
        box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    }
        .social-icons a {
        text-decoration: none;
        display: inline-block;
        padding: 5px; /* Memberi ruang di sekitar ikon */
        font-size: 16px;
    }
       
        /* Sticky Image Logic */
        .sticky-content { position: sticky; top: 100px; }
        
        .sejarah-text { text-align: justify; font-size: 1.05rem; }
        .sejarah-text::first-letter { font-size: 3rem; font-weight: bold; float: left; margin-right: 10px; line-height: 1; color: #0d6efd; }

        /* Modern Timeline Styling */
        .timeline-container { position: relative; padding: 20px 0; }
        .timeline-container::before { 
            content: ''; position: absolute; left: 18px; top: 0; bottom: 0; 
            width: 2px; background: #e2e8f0; 
        }
        .timeline-item { position: relative; padding-left: 50px; margin-bottom: 30px; }
        .timeline-dot { 
            position: absolute; left: 0; top: 5px; width: 38px; height: 38px; 
            background: white; border: 2px solid #0d6efd; border-radius: 50%; 
            display: flex; align-items: center; justify-content: center; z-index: 1;
        }
        .timeline-content { background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
        
        img.img-sejarah { border-radius: 20px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); width: 100%; object-fit: cover; }
        /* Mengganti karakter pemisah breadcrumb menjadi > */
        .breadcrumb-item + .breadcrumb-item::before {
        content: "/" !important;
        color: #6c757d; /* Warna abu-abu standar */
        font-weight: bold;
        margin-bottom: 20px;
        }
      
        .header-perangkat {
            /* Biru Langit ke Biru Laut */
            background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
            color: white; padding: 70px 0;
        }

        /* Profile Card Styling */
        .card-perangkat {
            border: none; border-radius: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            text-align: center;
        }
        .card-perangkat:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        .image-wrapper {
            width: 100%;
            height: 300px;
            overflow: hidden;
            background-color: #e9ecef;
        }
        .image-wrapper img {
            width: 100%; height: 100%; object-fit: cover;
        }
        .info-perangkat { padding: 20px; }
        .jabatan {
            color: #0d6efd;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 5px;
            display: block;
        }
        .nama { font-weight: 700; color: #333; margin-bottom: 15px; }
        
        .social-links a {
            color: #adb5bd; margin: 0 5px; font-size: 1.1rem; transition: 0.3s;
        }
        .social-links a:hover { color: #0d6efd; }

        .section-title {
            position: relative; padding-bottom: 15px; margin-bottom: 40px;
        }
        .section-title::after {
            content: ''; position: absolute; bottom: 0; left: 50%;
            transform: translateX(-50%); width: 60px; height: 3px;
            background: #0d6efd;
        }

        .card-news {
            border: none; border-radius: 16px; transition: all 0.3s ease; overflow: hidden; height: 100%;
            background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        .card-news:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
        .card-news img { height: 220px; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .badge-category { position: absolute; top: 20px; left: 20px; padding: 8px 16px; border-radius: 50px; font-weight: 600; backdrop-filter: blur(5px); z-index: 10; }
        .pagination .page-link { border-radius: 8px; margin: 0 3px; border: none; color: #444; }
        .pagination .active .page-link { background-color: #0d6efd; color: white; } 

.header-announcement { background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%); color: white; padding: 60px 0; }
.announcement-card { border: none; border-radius: 15px; background: white; transition: 0.3s; border-left: 5px solid #dc3545; margin-bottom: 20px; }
.announcement-card:hover { transform: scale(1.01); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.date-box { background: #f8f9fa; border-radius: 10px; padding: 10px; min-width: 80px; text-align: center; }
.status-badge { font-size: 0.75rem; padding: 5px 12px; border-radius: 50px; font-weight: 700; text-transform: uppercase; }   

.header-agenda { background: linear-gradient(135deg, #6610f2 0%, #43227a 100%); color: white; padding: 60px 0; }
.agenda-card { border: none; border-radius: 20px; background: white; transition: 0.3s; overflow: hidden; display: flex; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.agenda-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.agenda-date { background: #6610f2; color: white; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; text-align: center; }
.agenda-date .day { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.agenda-date .month { font-size: 0.9rem; text-transform: uppercase; font-weight: 600; opacity: 0.9; }
.agenda-body { padding: 25px; flex-grow: 1; }
.agenda-meta { font-size: 0.85rem; color: #6c757d; margin-bottom: 10px; }
.agenda-meta i { margin-right: 5px; color: #6610f2; }
.status-upcoming { color: #198754; font-weight: 700; font-size: 0.8rem; }
.pagination .page-link { border: none; color: #6610f2; margin: 0 2px; border-radius: 8px; }
.pagination .active .page-link { background-color: #6610f2; color: white; }    

.card-info-utama { border: none; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin-top: -50px; }
.icon-circle { width: 45px; height: 45px; background: #f0e6ff; color: #6610f2; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.related-card { border: none; border-radius: 15px; transition: 0.3s; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.article-header { padding: 60px 0 40px; }
.entry-meta { color: #6c757d; font-size: 0.9rem; }
.featured-image { 
    width: 100%; max-height: 500px; object-fit: cover; 
    border-radius: 20px; margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }
.article-content { font-size: 1.1rem; color: #444; }
/* Memastikan gambar di dalam konten tidak meluap */
.article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.sidebar-box { background: #f8f9fa; border-radius: 15px; padding: 25px; margin-bottom: 30px; }
.trending-item { display: flex; gap: 15px; margin-bottom: 20px; text-decoration: none; color: inherit; }
.trending-item img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.trending-item:hover h6 { color: #0d6efd; }
.share-btn { width: 45px; height: 45px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f1f1f1; color: #555; transition: 0.3s; }
.share-btn:hover { background: #0d6efd; color: white; }


.announcement-content { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.doc-preview { 
    border: 1px solid #dee2e6; 
    border-radius: 10px; 
    cursor: pointer;
    transition: 0.3s;
    max-width: 100%;
    height: auto;
    }
.doc-preview:hover { opacity: 0.9; transform: scale(1.01); }
.meta-info { font-size: 0.9rem; color: #6c757d; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 30px; }
.content-text { line-height: 1.8; color: #444; }
        
.btn-primary-custom {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    }

/* Card Berita */
.news-card { border: none; transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.news-card:hover { transform: translateY(-10px); }
/* Styling Hero Section Background */
    .hero-section {
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('path-ke-foto-negeri-anda.jpg');
        background-size: cover;
        background-position: center;
        min-height: 100vh;
    }
/* PENGUMUMAN DESA */
.main-img { height: 450px; object-fit: cover; border-radius: 20px; width: 100%; }
.thumb-img { height: 140px; object-fit: cover; border-radius: 15px; width: 100%; cursor: pointer; transition: 0.3s; }
.thumb-img:hover { opacity: 0.8; }
.sticky-sidebar { position: sticky; top: 100px; }
.facility-icon {
    width: 40px; height: 40px; background: #e9ecef;
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; color: #198754; font-size: 1.2rem;
    }
    .ticket-card {
    border: none; border-radius: 20px;
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    color: white; padding: 25px;
    }

/* Gallery Card Wrapper */
.gallery-card { transition: all 0.4s ease; }

/* Gallery Item */
.gallery-item {
    position: relative; overflow: hidden;
    border-radius: 12px; /* Sedikit lebih kecil agar rapi */
    cursor: pointer;
    height: 180px; /* Diperkecil dari 250px agar proporsional */
    }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
    }
.gallery-item:hover img { transform: scale(1.1); }
        
.gallery-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px; color: white; opacity: 0;
    transition: 0.4s;
    }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Penyesuaian Overlay karena gambar mengecil */
.gallery-overlay {
    padding: 10px; 
    }
.gallery-overlay h6 { font-size: 0.85rem; }
.gallery-overlay small { font-size: 0.7rem; }

/* Efek kursor zoom saat hover */
.gallery-item {
    cursor: zoom-in;
    }

/* Navbar Styling */
.navbar { 
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%); 
    height: 90px;
    color: #fff;
}
/* Mengubah semua teks menu menjadi putih */
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500; /* Opsional: supaya sedikit lebih tegas */
    transition: 0.3s; /* Opsional: agar saat hover ada efek halus */
}

/* Mengatur warna saat mouse diarahkan ke menu (Hover) */
.navbar-nav .nav-link:hover {
    color: #dddddd !important; /* Warna agak abu sedikit saat disentuh */
}

/* Khusus untuk menu yang sedang aktif */
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 500;
}

.nav-link { 
    font-weight: 500; color: #fff; 
}

.hover-link { transition: all 0.3s ease; }
.hover-link:hover {
    color: #0d6efd !important;
    padding-left: 8px;
    transition: 0.3s;
}
/* Memastikan Iframe Map memenuhi kontainer */
.footer iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}
.footer-desa {
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%); 
}

/* Memberikan background pada menu saat terbuka di layar mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff; /* Ganti dengan warna yang diinginkan */
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Memastikan teks menu terlihat (misal: warna hitam) */
    .navbar-nav .nav-link, 
    .navbar-nav .dropdown-toggle {
        color: #333333 !important; 
    }

    /* 2. Pastikan saat diklik (active/focus) tidak balik jadi putih */
    .navbar-nav .show > .nav-link,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:hover {
        color: #000000 !important;
    }

    /* 3. Merapikan tampilan Sub-Menu agar tidak terlalu menjorok */
    .dropdown-menu {
        border: none;
        background-color: #f8f9fa; /* Warna abu-abu sangat muda untuk sub-menu */
        padding-left: 15px; /* Memberi kesan hierarki */
    }
    .navbar-light .navbar-nav .nav-link.dropdown-toggle::after,
    .dropdown-toggle::after {
        border-top-color: #333333 !important; /* Mengubah warna panah jadi hitam */
    }
    /* 1. Paksa semua link menu (termasuk yang ada class 'active') jadi hitam */
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link,
    .dropdown-toggle.active {
        color: #000000 !important; /* Paksa hitam */
    }
}

/* Layar Tablet (Lebar kurang dari 992px) */
@media (max-width: 992px) {
    .container {
        width: 90%;
    }
    .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) !important; 
    /* Angka 2px mengatur ketebalan, 0.25 mengatur transparansi */
    }

    .navbar-nav .nav-link, 
    .navbar-nav .dropdown-toggle {
        color: #333333 !important; 
    }

    /* 2. Pastikan saat diklik (active/focus) tidak balik jadi putih */
    .navbar-nav .show > .nav-link,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:hover {
        color: #000000 !important;
    }

    /* 3. Merapikan tampilan Sub-Menu agar tidak terlalu menjorok */
    .dropdown-menu {
        border: none;
        background-color: #f8f9fa; /* Warna abu-abu sangat muda untuk sub-menu */
        padding-left: 15px; /* Memberi kesan hierarki */
    }
    .navbar-light .navbar-nav .nav-link.dropdown-toggle::after,
    .dropdown-toggle::after {
        border-top-color: #333333 !important; /* Mengubah warna panah jadi hitam */
    }
    /* 1. Paksa semua link menu (termasuk yang ada class 'active') jadi hitam */
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link,
    .dropdown-toggle.active {
        color: #000000 !important; /* Paksa hitam */
    }
}

/* Layar HP (Lebar kurang dari 576px) */
@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    .text-title {
        font-size: 1.5rem; /* Mengecilkan teks di HP */
    }
    .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) !important; 
    /* Angka 2px mengatur ketebalan, 0.25 mengatur transparansi */
    }
    .navbar-nav .nav-link, 
    .navbar-nav .dropdown-toggle {
        color: #333333 !important; 
    }

    /* 2. Pastikan saat diklik (active/focus) tidak balik jadi putih */
    .navbar-nav .show > .nav-link,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:hover {
        color: #000000 !important;
    }

    /* 3. Merapikan tampilan Sub-Menu agar tidak terlalu menjorok */
    .dropdown-menu {
        border: none;
        background-color: #f8f9fa; /* Warna abu-abu sangat muda untuk sub-menu */
        padding-left: 15px; /* Memberi kesan hierarki */
    }
    .navbar-light .navbar-nav .nav-link.dropdown-toggle::after,
    .dropdown-toggle::after {
        border-top-color: #333333 !important; /* Mengubah warna panah jadi hitam */
    }
    /* 1. Paksa semua link menu (termasuk yang ada class 'active') jadi hitam */
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link,
    .dropdown-toggle.active {
        color: #000000 !important; /* Paksa hitam */
    }
}

/*kontak kami */
.contact-card {
            border: none; border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            background: white;
        }

        .icon-box {
            width: 60px; height: 60px;
            background: #e7f1ff; color: #0d6efd;
            display: flex; align-items: center; justify-content: center;
            border-radius: 15px; font-size: 1.5rem;
            margin-bottom: 20px;
        }

        .map-container {
            border-radius: 20px; overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            height: 450px;
        }