/* ===========================
RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f8f8f8;
    color:#222;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* ===========================
NAVBAR
=========================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#386641;
    box-shadow:0 2px 10px rgba(0,0,0,.15);
    z-index:1000;
}

.navbar{
    height:50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:35px;
    height:35px;
}

.logo h2{
    color:#fff;
    font-size:20px;
    font-weight:700;
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:30px;
}

.nav-menu a{
    color:#fff;
    font-size:14px;
    font-weight:500;
    transition:.3s;
}

.nav-menu a:hover,
.nav-menu a.active{
    color:#FFD54F;
}
/* ===================================
   HAMBURGER MENU
=================================== */

/* Desktop: tombol disembunyikan */
.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}


/* ===========================
HERO
=========================== */

.hero{
    margin-top:90px;
    margin-bottom:70px;
}

.hero h1{
    font-size:34px;
    text-align:center;
    margin-bottom:15px;
    color:#0D631B;
}

.hero> .container>p{
    text-align:center;
    color:#666;
    line-height:1.8;
    max-width:800px;
    margin:auto;
}

.hero-card{
    margin-top:45px;
    background:#2E7D32;
    border-radius:22px;
    padding:45px;
    color:#fff;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.hero-left{
    width:60%;
}

.hero-left h2{
    font-size:28px;
    margin-bottom:18px;
}

.hero-left p{
    line-height:1.9;
    color:#f4f4f4;
    margin-bottom:30px;
}

/* ===========================
   TOMBOL (disamakan dengan Beranda)
=========================== */

.hero-button {
    display: flex;
    gap: 18px;
}

/* Tombol Utama - sama dengan Beranda */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 34px;      /* sama dengan Beranda */
    font-size: 15px;         /* sama dengan Beranda */
    font-weight: 600;

    background: #F4AE2B;
    color: #222;

    border-radius: 8px;
    transition: 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #ffca61;
    transform: translateY(-2px);
}

/* Tombol Outline - sama dengan Beranda */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 34px;      /* sama dengan Beranda */
    font-size: 15px;         /* sama dengan Beranda */
    font-weight: 600;

    border: 2px solid #fff;
    color: #fff;
    border-radius: 8px;

    transition: 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #fff;
    color: #2E7D32;
    transform: translateY(-2px);
}

/* Icon di hero-right (tetap) */
.hero-right i {
    font-size: 180px;
    color: rgba(255, 255, 255, .15);
}

/* ===========================
SECTION TITLE
=========================== */

.section-title{
    text-align:center;
    margin-bottom:45px;
}

.section-title h2{
    font-size:34px;
    text-align:center;
    margin-bottom:15px;
    color:#0D631B;
}

.section-title p{
    color:#666;
}

/* ===========================
ACCORDION
=========================== */

.layanan{
    padding-bottom:90px;
}

.accordion{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    margin-bottom:20px;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.accordion-btn{
    width:100%;
    border:none;
    background:#fff;
    padding:22px 30px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    font-size:18px;
    font-weight:600;
    cursor:pointer;
}

.accordion-btn i{
    color:#2E7D32;
    transition:.3s;
}

.accordion.active .accordion-btn i{
    transform:rotate(180deg);
}

.accordion-content{

    max-height:0;

    overflow:hidden;

    transition:max-height .35s ease;

    background:#fff;

    border-top:1px solid #e6e6e6;

    padding:0 25px;

}

.accordion.active .accordion-content{

    padding:25px;

}

.btn-document{
    background:#2E7D32;
    color:#fff;
    border:none;
    padding:13px 28px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
    transition:.3s;
}

.btn-document:hover{
    background:#25662a;
}

/* ===========================
MODAL
=========================== */

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:9999;
}

.modal-content{
    width:90%;
    max-width:900px;
    margin:60px auto;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
}

.modal-header{
    background:#2E7D32;
    color:#fff;
    padding:20px 30px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.close{
    font-size:34px;
    cursor:pointer;
}

.modal-body{
    padding:30px;
}

/*==================================
TABEL DOKUMEN
==================================*/

.document-table{

    width:100%;

    border-collapse:collapse;

    margin-top:10px;

}

.document-table thead{

    background:#f3f3f3;

}

.document-table th{

    padding:12px;

    border:1px solid #d9d9d9;

    font-size:15px;

    font-weight:600;

    text-align:center;

}

.document-table td{

    padding:12px;

    border:1px solid #d9d9d9;

    font-size:14px;

    vertical-align:top;

}

.document-table tbody tr:hover{

    background:#f9fff9;

}

/*==================================
PAGINATION
==================================*/

.pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    margin:18px 0 10px;

}

.pagination button{

    width:32px;

    height:32px;

    border:none;

    border-radius:50%;

    background:#e6e6e6;

    cursor:pointer;

    transition:.3s;

    font-size:14px;

}

.pagination button:hover{

    background:#2E7D32;

    color:#fff;

}

.pagination button.active{

    background:#2E7D32;

    color:#fff;

}

.pagination button:disabled{

    opacity:.45;

    cursor:not-allowed;

}

/*====================================
FOOTER
=====================================*/

footer{

    background:#2f2f2f;
    color:#fff;

    margin-top:80px;
    padding:60px 0 20px;

}

.footer-grid{

    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:5px;

    padding-bottom:35px;

}

/* Judul Desa */

.footer-grid h3{

    color:#32b44a;

    font-size:20px;
    font-weight:700;

    margin-bottom:18px;

}

/* Judul Kolom */

.footer-grid h4{

    font-size:16px;
    font-weight:600;

    margin-bottom:18px;

    color:#fff;

}

/* Paragraf */

.footer-grid p{

    font-size:12px;
    color:#cfcfcf;

    line-height:1.9;

    max-width:280px;

}

/* List */

.footer-grid ul{

    padding:0;
    margin:0;

}

.footer-grid li{

    list-style:none;

    font-size:12px;

    color:#cfcfcf;

    margin-bottom:10px;

    line-height:1.8;

}

/* Hover */

.footer-grid li:hover{

    color:#ffffff;

    cursor:pointer;

}
/* Hover */

.footer-grid li:hover{

    color:#ffffff;

    cursor:pointer;

}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff; /* sesuaikan dengan warna tema website */
    text-decoration: underline;
}


/* Copyright */

.copyright{

    border-top:1px solid rgba(255,255,255,.08);

    text-align:center;

    padding:5px 5px;
    
    font-size:10px;

    color:#9c9c9c;

    background:#2f2f2f;

    width: 100%
    
}

/* ===================================
   RESPONSIVE LAYANAN
=================================== */

@media (max-width:768px){

    /* Container */
    .container{
        width:92%;
    }

    /* HERO */
    .hero{
        margin-top:90px;
        margin-bottom:50px;
    }

    .hero h1{
        font-size:24px;
        line-height:1.3;
    }

    .hero > .container > p{
        font-size:12px;
        line-height:1.8;
    }

    /* ===========================
   HERO RESPONSIVE
=========================== */

.hero{
    margin-top:80px;
    margin-bottom:50px;
}

.hero-card{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:25px;
    border-radius:18px;
    gap:20px;
}

.hero-left{

    width:72%;

}

.hero-left h2{

    font-size:20px;
    margin-bottom:15px;

}

.hero-left p{

    font-size:12px;
    line-height:1.8;
    margin-bottom:22px;

}

.hero-button{

    display:flex;
    flex-direction:row;
    gap:12px;
    flex-wrap:wrap;

}

.btn-primary,
.btn-secondary{

    padding:11px 22px;
    font-size:12px;
    width:200px;

}

.hero-right{

    width:28%;
    display:flex;
    justify-content:center;
    align-items:center;

}

.hero-right i{

    font-size:100px;

}
    /* SECTION TITLE */

    .section-title{
        margin-bottom:30px;
    }

    .section-title h2{
        font-size:20px;
    }

    .section-title p{
        font-size:12px;
    }

    /* ACCORDION */

    .accordion{
        margin-bottom:15px;
        border-radius:12px;
    }

    .accordion-btn{
        padding:18px;
        font-size:12px;
        text-align:left;
        gap:15px;
        color:#000000;
    }

    .accordion-btn span{
        flex:1;
    }

    .accordion-content{
        padding:0 15px;
    }

    .accordion.active .accordion-content{
        padding:15px;
    }

    /* TABLE */

    .document-table{
        table-layout: fixed;
        width:100%;
    }

    .document-table th,
    .document-table td{

        font-size:10px !important;
        line-height:1.4;
        padding:6px 8px !important;
        color:#222 !important;
        white-space:normal;
        word-break:break-word;

    }

    .document-table th:nth-child(1),
    .document-table td:nth-child(1){
        width:45px;
        text-align:center;
    }

    .document-table th:nth-child(2),
    .document-table td:nth-child(2){
        width:38%;
    }

    .document-table th:nth-child(3),
    .document-table td:nth-child(3){
        width:42%;
    }


    /* PAGINATION */

    .pagination{
        flex-wrap:wrap;
        gap:6px;
    }

    .pagination button{
        width:30px;
        height:30px;
        font-size:12px;
        color:#000000
    }
}