* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Mencegah elemen bergeser akibat padding */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
    background-color: #fdfdfd;
}

/* NAVBAR */
.container-navbar {
    background-color: rgb(238, 236, 233);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-judul h2 {
    font-size: 20px;
    color: rgb(9, 9, 67);
}

.navbar-judul h3 {
    font-size: 13px;
    font-weight: normal;
    color: #555;
}

.navbar-list {
    display: flex;
    gap: 20px;
    margin-left: 10%;
}

.navbar-list a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: 0.3s;
}

.navbar-list a:hover {
    color: rgb(9, 9, 67);
    text-decoration: underline;
    text-underline-offset: 8px;
}

.btn-sapa {
    text-decoration: none;
    border-radius: 5px;
    padding: 10px 20px;
    color: white;
    background-color: rgb(9, 9, 67);
    display: inline-block;
    transition: 0.3s;
}

.btn-sapa:hover {
    background-color: white;
    border: 1px solid black;
    color: black;
}
    
/* HERO SECTION */
.container-hero {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), 
                url('hero-section.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
}

.hero-teks {
    text-align: left;
    color: rgb(9, 9, 67);
    max-width: 800px;
}

.hero-teks h2 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-teks h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #333;
}

.hero-cta button {
    padding: 12px 24px;
    margin-right: 15px;
    background-color: rgb(9, 9, 67);
    border: 1px solid rgb(9, 9, 67);
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.hero-cta button:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

/* IMPACT STATS */
.container-impact {
    background-color: rgb(238, 236, 233);
    display: flex;
    justify-content: space-around;
    padding: 30px 40px;
    margin-top: 20px;
}

.card-impact {
    width: 22%;
    background-color: white;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(9, 9, 67, 0.15);
    transition: transform 0.3s ease;
}

.card-impact h3 {
    font-size: 32px;
    color: rgb(9, 9, 67);
    margin-bottom: 5px;
}

.card-impact p {
    font-size: 14px;
    color: #555;
}

.card-impact:hover {
    transform: translateY(-5px);
}

/* AGENDA SECTION */
.container-impact2 {
    margin-top: 20px;
    background-color: rgb(238, 236, 233);
    padding: 50px 40px;
}

.header h3 {
    text-align: center;
    font-size: 28px;
    color: rgb(9, 9, 67);
    margin-bottom: 30px;
}

.flex-agenda {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.agenda {
    width: 23%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(9, 9, 67, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.agenda img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.agenda .titi-mangsa {
    font-size: 12px;
    color: #777;
    margin: 15px 15px 5px 15px;
}

.agenda h4 {
    font-size: 16px;
    color: rgb(9, 9, 67);
    margin: 0 15px 10px 15px;
}

.agenda p {
    font-size: 13px;
    color: #444;
    margin: 0 15px 15px 15px;
    line-height: 1.4;
}

.agenda button {
    margin: 0 15px;
    padding: 8px 15px;
    background-color: rgb(9, 9, 67);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
    transition: 0.3s;
}

.agenda button:hover {
    background-color: #333;
}

.agenda:hover {
    transform: translateY(-5px);
}

/* FOOTER */
.footer {
    background-color: rgb(9, 9, 67);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.footer p {
    font-size: 13px;
    margin-bottom: 5px;
    opacity: 0.9;
}

/* ==========================================
   RESPONSIVE DESIGN (TABLET & HP)
   ========================================== */

/* Sembunyikan tombol Sapa Warga Mobile di layar desktop */
.btn-sapa-mobile {
    display: none;
}

/* Sembunyikan ikon Hamburger secara default (Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: rgb(9, 9, 67);
    border-radius: 2px;
    transition: 0.3s;
}

/* BREAKPOINT TABLET & HP (Layar < 992px) */
@media screen and (max-width: 992px) {
    
    /* 1. NAVBAR RESPONSIVE */
    .container-navbar {
        padding: 15px 20px;
    }

    /* Hilangkan margin-left 40% agar tidak terdorong jauh */
    .navbar-list {
        margin-left: 0; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgb(238, 236, 233);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 1px solid #ccc;
        
        /* Efek tersembunyi (Slide Down) */
        display: none;
    }

    .navbar-list a {
        color: rgb(143, 148, 146);
    }

    /* Tampilkan menu saat di-klik (aktif) */
    .navbar-list.active {
        display: flex;
    }

    /* Tampilkan Hamburger, Sembunyikan tombol CTA biasa */
    .hamburger {
        display: flex;
    }

    .navbar-cta {
        display: none; 
    }

    .btn-sapa-mobile {
        display: inline-block;
        margin-top: 10px;
    }

    /* 2. HERO SECTION RESPONSIVE */
    .container-hero {
        padding: 40px 20px;
        min-height: auto;
    }

    .hero-teks h2 {
        font-size: 28px;
    }

    .hero-teks h3 {
        font-size: 16px;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta button {
        width: 100%;
        margin-right: 0;
    }

    /* 3. IMPACT STATS RESPONSIVE (Mewrap jadi 2 Kolom di Tablet) */
    .container-impact {
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px;
    }

    .card-impact {
        width: 48%; /* 2 card per baris */
    }

    /* 4. AGENDA SECTION RESPONSIVE (Mewrap jadi 2 Kolom di Tablet) */
    .container-impact2 {
        padding: 30px 20px;
    }

    .flex-agenda {
        flex-wrap: wrap;
        gap: 20px;
    }

    .agenda {
        width: 48%; /* 2 card per baris */
    }
}

/* BREAKPOINT HP KECIL (Layar < 576px) */
@media screen and (max-width: 576px) {
    .navbar-judul h2 {
        font-size: 16px;
    }

    .navbar-judul h3 {
        font-size: 11px;
    }

    .hero-teks h2 {
        font-size: 22px;
    }

    /* Di HP, Card tampil 1 Kolom Penuh (Full Width) */
    .card-impact {
        width: 100%;
    }

    .agenda {
        width: 100%;
    }
}
