* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
    background: #ffffff; 
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    height: 50px;
    width: auto;
    padding: 3px;
    border-radius: 8px;
}

.logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #059669;
}

.logo-text {
    color: #059669; 
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #059669; 
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    background: #f3f4f6;
    color: #10b981; 
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1f2937;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/asset/Background.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #059669;
    transform: translateY(-3px);
}

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

/* ========== SECTION STYLES ========== */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #059669;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #10b981;
    border-radius: 2px;
}

/* ========== PROFILE SECTION ========== */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.welcome-content {
    text-align: center;
}

.kepala-desa-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 5px solid #10b981;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.kepala-desa-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-content h3 {
    font-size: 1.8rem;
    color: #059669;
    margin-bottom: 1rem;
}

.quote {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.visi-misi {
    text-align: left;
    background: #f0fdf4;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #10b981;
}

.visi-misi h4 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.visi-misi p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* ========== ACCORDION STYLES ========== */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.accordion-header {
    background: #10b981;
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #059669;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content-inner {
    padding: 1.5rem;
    background: #f9fafb;
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
}

.accordion-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.accordion-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* ========== PENGADUAN SECTION ========== */
.pengaduan-section {
    background: #f0fdf4;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-placeholder {
    text-align: center;
    color: #059669;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ========== FOOTER STYLES ========== */
.footer {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: #059669;
    transform: translateY(-3px);
}

/* Bagian Paling Bawah Footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Garis tipis pemisah */
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem; /* Ukuran huruf sedikit lebih kecil */
    color: #cbd5e1; /* Warna abu-abu terang */
}

.footer-bottom strong {
    color: #fff; /* Menebalkan nama desa/kampus dengan warna putih */
}

.footer-bottom .credits {
    font-size: 0.8rem; /* Kredit mahasiswa lebih kecil sedikit biar sopan */
    margin-top: 5px;
    opacity: 0.8;
}

.footer-bottom a {
    color: #fbbf24; /* Warna emas/kuning untuk link kampus biar menonjol */
    text-decoration: none;
}

.footer-bottom .divider {
    margin: 0 10px; /* Jarak untuk garis pemisah opsi 2 */
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: #f3f4f6;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .form-container {
        padding: 2rem 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* Sembunyikan tombol panah di HP (karena lebih enak swipe pakai jari) */
@media (max-width: 768px) {
    .slider-btn { display: none; }
    .struktur-slider-container { padding: 0; }
}

/* Styling Khusus untuk List Misi agar Rapi */
.misi-list {
    margin-left: 1.2rem; /* Memberi ruang di kiri agar angka masuk ke dalam */
    color: #666; /* Menyamakan warna teks dengan paragraf sebelumnya */
}

.misi-list li {
    margin-bottom: 0.5rem; /* Memberi jarak antar poin 1, 2, 3 */
    padding-left: 0.5rem; /* Memberi jarak nafas antara Angka dan Teks */
}

/* =========================================
   KADES TUNGGAL STYLES (REVISI ESTETIK)
   ========================================= */
.kades-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.kades-card {
    width: 240px; /* Lebar dikecilin biar nggak mendominasi layar */
    margin: 0 auto; 
    border-radius: 20px; /* Sudut lebih melengkung biar modern */
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15); /* Bayangan dikasih hint warna hijau desa sedikit */
    border: 1px solid #f3f4f6;
}

.kades-card .perangkat-img {
    height: 260px; /* Tinggi disesuaikan biar pas bentuk portrait */
    border-radius: 20px 20px 0 0; /* Mengikuti lengkungan kartu */
}

.kades-card .perangkat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Pastikan wajah Pak Kades tidak terpotong */
    border-radius: 20px 20px 0 0;
}

/* Penyesuaian di layar HP biar tetap manis */
@media (max-width: 768px) {
    .kades-card { 
        width: 220px; 
    } 
    .kades-card .perangkat-img {
        height: 240px;
    }
}