* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mountains of Christmas', cursive;
    background: #fffaf7;
    color: #444;
    line-height: 1.6;
    transition: 0.3s;
}

/* Navbar */
.navbar {
    background: #ffd6e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
}

.logo {
    color: #5e548e;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #5e548e;
    font-weight: bold;
}

#darkModeBtn {
    padding: 8px 12px;
    border: none;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 90vh;
    background:
        linear-gradient(
            rgba(0,0,0,0.4),
            rgba(0,0,0,0.4)
        ),
        url('foto/WhatsApp Image 2026-05-29 at 09.06.25.jpeg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #ffc8dd;
    color: #333;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

/* Section */
section {
    padding: 70px 8%;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #5e548e;
}

/* Statistik */
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #ffe5ec;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 200px;
}

/* Berita */
.berita-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

.berita-card {
    background: #e2ece9;
    padding: 20px;
    border-radius: 15px;
}

/* Layanan */
.layanan-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* jarak antar card */
    margin-top: 30px;
}

.layanan-item{
    background: #bee1e6;
    padding: 25px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* Agenda */
.agenda ul {
    list-style: none;
    max-width: 500px;
    margin: auto;
}

.agenda li {
    background: #faedcd;
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
}

/* Galeri */
.galeri-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 15px;
}

.galeri-container img {
    width: 100%;
    border-radius: 15px;
}

/* Kontak */
.kontak {
    text-align: center;
    margin: 10px 0;
}

.kontak iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.judul-peta{ 
    margin-top: 50px; 
    display: block;
    color: #5e548e;
    font-size: 2rem; 
}

/* Footer */
footer {
    background: #cdb4db;
    text-align: center;
    padding: 20px;
    color: white;
}

/* Dark Mode */
.dark-mode {
    background: #2b2d42;
    color: white;
}

.dark-mode .navbar {
    background: #4a4e69;
}

.dark-mode .card,
.dark-mode .berita-card,
.dark-mode .layanan-item,
.dark-mode .agenda li {
    color: black;
}

/* Responsive */
@media(max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }
}

/* Visi Misi */
.visi-misi {
    background: #fff0f5;
    text-align: center;
}

.visi-box,
.misi-box {
    background: white;
    padding: 30px;
    margin: 20px auto;
    border-radius: 20px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.visi-box h3,
.misi-box h3 {
    color: #5e548e;
    margin-bottom: 15px;
}

.misi-box ul {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.misi-box li {
    margin: 10px 0;
}

/* ================= UMKM TAB ================= */

.umkm-menu{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn{
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: #ffc8dd;
    color: #5e548e;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Mountains of Christmas', cursive;
}

.tab-btn:hover{
    transform: scale(1.05);
}

.tab-btn.active{
    background: #5e548e;
    color: white;
}

.tab-content{
    display: none;
}

.tab-content.active{
    display: block;
}


/* ================= FOOTER ================= */

footer{
    background: #cdb4db;
    color: white;
    padding: 40px 8%;
}

.footer-container{
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-box{
    flex: 1;
    min-width: 250px;
}

.footer-box h3{
    margin-bottom: 15px;
}

footer hr{
    margin: 25px 0;
    border: 1px solid rgba(255,255,255,0.3);
}

.copyright{
    text-align: center;
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px){

    .footer-container{
        flex-direction: column;
        text-align: center;
    }

}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    overflow-x: hidden;
}

.container{
    display: flex;
    flex-wrap: wrap;
}

@media(max-width:768px){

    .layanan-grid{
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .layanan-item{
        margin-bottom: 5px;
    }

    .lurah{
        order: -1;
    }

}