/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:#f5f7fa;
    color:#333;
    line-height:1.6;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

img{
    max-width:100%;
    display:block;
}

/* =========================
   CONTAINER
========================= */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section{
    padding:80px 0;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:2.2rem;
    color:#0d6efd;
    position:relative;
}

.section-title h2::after{
    content:'';
    width:80px;
    height:4px;
    background:#0d6efd;
    display:block;
    margin:10px auto;
    border-radius:20px;
}

/* =========================
   NAVBAR
========================= */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:15px 8%;
    background:#0d6efd;
    display:flex;
    justify-content:space-between;
    align-items:center;
    z-index:1000;
    box-shadow:0 3px 15px rgba(0,0,0,0.15);
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img{
    width:45px;
    height:45px;
}

.logo span{
    color:white;
    font-size:1.2rem;
    font-weight:700;
}

.nav-menu{
    display:flex;
    gap:25px;
}

.nav-menu a{
    color:white;
    font-weight:500;
    transition:0.3s;
}

.nav-menu a:hover{
    color:#ffd54f;
}

.hamburger{
    display:none;
    color:white;
    font-size:1.5rem;
    cursor:pointer;
}

/* =========================
   HERO
========================= */

.hero{
    height:100vh;
    background:
    linear-gradient(rgba(0,0,0,.5),
    rgba(0,0,0,.5)),
    url("Gambaran-Desa.jpg");
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
}

.hero-content{
    max-width:800px;
}

.hero h1{
    font-size:3.5rem;
    margin-bottom:20px;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:30px;
}

.btn-primary{
    background:#ffc107;
    color:#333;
    padding:14px 30px;
    border-radius:30px;
    font-weight:bold;
    display:inline-block;
    transition:0.3s;
}

.btn-primary:hover{
    transform:translateY(-4px);
}
/* =========================
   DROPDOWN MENU DUSUN
========================= */

.dropdown{
    position:relative;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:220px;
    background:#ffffff;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
    display:none;
    z-index:999;
}

.dropdown-menu li{
    width:100%;
}

.dropdown-menu li a{
    display:block;
    padding:12px 15px;
    color:#333;
    transition:0.3s;
}

.dropdown-menu li a:hover{
    background:#0d6efd;
    color:#fff;
}

.dropdown:hover .dropdown-menu{
    display:block;
}

.dropdown-head{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.dropdown-toggle{
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:12px;
    padding:4px 8px;
}

.dropdown-toggle i{
    transition:0.3s;
}

.dropdown.show .dropdown-toggle i{
    transform:rotate(180deg);
}

.dropdown.show .dropdown-menu{
    display:block;
}
/* =========================
   SAMBUTAN
========================= */
html {
    scroll-behavior: smooth;
}

.welcome{
    background:white;
}

.welcome .container{
    display:grid;
    grid-template-columns:350px 1fr;
    gap:50px;
    align-items:center;
}

.welcome-image img{
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}

.welcome-image iframe{
    width:100%;
    aspect-ratio:16/9;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}

.welcome-text h2{
    color:#0d6efd;
    margin-bottom:20px;
}

.welcome-text p{
    margin-bottom:15px;
}

/* =========================
   STATISTIK
========================= */

.stats{
    background:#f8f9fa;
}

.stats .container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-card{
    background:white;
    padding:30px;
    text-align:center;
    border-radius:15px;
    border-top:5px solid #0d6efd;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:0.3s;
}

.stat-card:hover{
    transform:translateY(-10px);
}

.stat-card i{
    font-size:2.5rem;
    color:#0d6efd;
    margin-bottom:15px;
}

.stat-card h3{
    color:#0d6efd;
    font-size:2rem;
}

.stat-card p{
    margin-top:5px;
}

/* =========================
   PERANGKAT DESA
========================= */

.news{
    background:white;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.news-card{
    background:white;
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:0.3s;
}

.news-card:hover{
    transform:translateY(-10px);
}

.news-card img{
    width:180px;
    height:180px;
    object-fit:cover;
    border-radius:50%;
    margin:auto;
    margin-bottom:20px;
    border:5px solid #0d6efd;
}

.news-content h3{
    color:#0d6efd;
    margin-bottom:10px;
}

.news-content p{
    color:#666;
}

/* =========================
   POTENSI DESA
========================= */

/* Kunci utama agar efek scroll menjadi halus */
html {
 scroll-behavior: smooth;
}

/* Styling untuk Section Potensi Desa */
.potensi-section {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Warna latar belakang kontras lembut */
    font-family: sans-serif; /* Sesuaikan dengan font websitemu */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Pengaturan Layout Grid untuk Kartu Potensi */
.potensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 10px;
}

/* Styling Kartu */
.potensi-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.potensi-card:hover {
    transform: translateY(-5px); /* Efek sedikit terangkat saat di-hover */
}

.potensi-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.potensi-content {
    padding: 20px;
    text-align: left;
}

.potensi-content h3 {
    font-size: 1.4rem;
    color: #1e74fd; /* Disamakan dengan warna biru header kamu */
    margin-bottom: 10px;
}

.potensi-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}
/* =========================
   GALERI
========================= */
html {
 scroll-behavior: smooth;
}
.gallery{
    background:white;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.gallery-grid img{
    width:100%;
    aspect-ratio:3/4;
    object-fit:cover;
    border-radius:12px;
    transition:0.3s;
    background:#f2f2f2;
}

.gallery-grid img:hover{
    transform:scale(1.05);
}

/* =========================
   APBDES
========================= */

.budget{
    background:#f8f9fa;
}

.budget-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.budget-card{
    background:#0d6efd;
    color:white;
    padding:35px;
    text-align:center;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.budget-card h3{
    margin-bottom:15px;
    font-size:1.5rem;
}

/* =========================
   KONTAK
========================= */
html {
 scroll-behavior: smooth;
}
.contact{
    background:white;
}

.contact .container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.contact-info{
    background:#f8f9fa;
    padding:30px;
    border-radius:15px;
}

.contact-info p{
    margin-bottom:20px;
    font-size:1.1rem;
}

.contact-info i{
    color:#0d6efd;
    margin-right:10px;
}

.contact iframe{
    width:100%;
    min-height:350px;
    border:none;
    border-radius:15px;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#0b1f44;
    color:white;
    text-align:center;
    padding:50px 20px;
}

.footer-content h3{
    margin-bottom:15px;
}

.footer-content p{
    margin-bottom:15px;
}

.social{
    margin:20px 0;
}

.social a{
    color:white;
    font-size:1.5rem;
    margin:0 10px;
    transition:0.3s;
}

.social a:hover{
    color:#ffc107;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

    .welcome .container{
        grid-template-columns:1fr;
    }

    .stats .container{
        grid-template-columns:repeat(2,1fr);
    }

    .news-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .potential-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .budget-grid{
        grid-template-columns:1fr;
    }

    .contact .container{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .hamburger{
        display:block;
    }

    .nav-menu{
        display:none;
        flex-direction:column;
        position:absolute;
        top:75px;
        left:0;
        width:100%;
        background:#0d6efd;
        padding:20px;
        text-align:center;
    }

    .nav-menu.active{
        display:flex;
    }

    .dropdown:hover .dropdown-menu{
        display:none;
    }

    .dropdown-menu{
        position:static;
        width:100%;
        margin-top:10px;
        box-shadow:none;
    }

    .dropdown.show .dropdown-menu{
        display:block;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .stats .container,
    .news-grid,
    .potential-grid,
    .gallery-grid{
        grid-template-columns:1fr;
    }

    .news-card img{
        width:150px;
        height:150px;
    }
}