/* ===========================
RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#ffffff;
    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;
}

.nav-menu{
    display:flex;
    gap:30px;
}

.nav-menu a{
    color:#fff;
    font-size:14px;
    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;
}


/* ===========================
HEADER (HERO)
=========================== */

.apbdes{
    padding:110px 0 50px;
}

.section-title{
    margin-bottom:20px;
}

.section-title h1{
    color:#156D2F;
    font-size:34px;
    margin-bottom:15px;
}

.section-title p{
    width:75%;
    color:#666;
    line-height:1.8;
}

/* ===========================
DOKUMEN APBDES
=========================== */

.dokumen-section{
    padding: 20px 0 60px;
}

.section-title-dokumen{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:24px;
    font-weight:700;
    color:#1A1C1C;
    margin-bottom:24px;
}

.section-title-dokumen .green-bar{
    display:inline-block;
    width:6px;
    height:28px;
    background:#006E23;
    border-radius:3px;
}

/* Daftar dokumen */
.doc-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.doc-item{
    display:flex;
    align-items:center;
    gap:20px;
    padding:16px 20px;
    background:#fff;
    border:1px solid rgba(190,202,185,0.3);
    border-radius:12px;
    transition:.2s;
}

.doc-item:hover{
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.doc-icon{
    width:48px;
    height:48px;
    background:#A3E6A8;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.doc-icon i{
    font-size:22px;
    color:#1A1C1C;
}

.doc-info{
    flex:1;
    min-width:0;
}

.doc-info h3{
    font-size:18px;
    font-weight:700;
    color:#1A1C1C;
    line-height:1.4;
    margin-bottom:2px;
}

.doc-meta{
    font-size:12px;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:0.6px;
    color:#3F4A3D;
}

.doc-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}

.btn-outline,
.btn-primary{
    padding:8px 18px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    transition:.2s;
    border:1px solid #006E23;
    background:transparent;
    color:#006E23;
    text-align:center;
}

.btn-outline:hover{
    background:#006E23;
    color:#fff;
}

.btn-primary{
    background:#006E23;
    color:#fff;
    border-color:#006E23;
}

.btn-primary:hover{
    background:#005a1c;
    border-color:#005a1c;
}

/* Kotak bantuan */
.help-box{
    display:flex;
    align-items:flex-start;
    gap:16px;
    margin-top:40px;
    padding:20px 24px;
    background:rgba(190,239,191,0.3);
    border:1px solid #BEEFBF;
    border-radius:12px;
}

.help-box i{
    font-size:24px;
    color:#3D6842;
    flex-shrink:0;
    margin-top:2px;
}

.help-box p{
    font-size:16px;
    line-height:1.6;
    color:#436E48;
    margin:0;
}

/* ===========================
FOOTER
=========================== */

footer{
    background:#2f2f2f;
    color:#fff;
    padding:60px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:20px;
    padding-bottom:30px;
}

.footer-grid h3{
    color:#32b44a;
    margin-bottom:15px;
}

.footer-grid h4{
    margin-bottom:15px;
}

.footer-grid p,
.footer-grid li{
    color:#cfcfcf;
    font-size:12px;
    line-height:1.8;
}

.footer-grid li{
    margin-bottom:8px;
}

.footer-grid li:hover{
    color:#fff;
}
/* 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{
    background:#2f2f2f;
    color:#9c9c9c;
    text-align:center;
    font-size:10px;
    padding:8px;
    border-top:1px solid rgba(255,255,255,.08);
}

/* ===========================
RESPONSIVE
=========================== */

@media(max-width:992px){

    .section-title p{
        width:100%;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }

    .doc-item{
        flex-wrap:wrap;
        gap:12px;
    }

    .doc-actions{
        width:100%;
        justify-content:flex-start;
    }

}

@media(max-width:768px){

    .apbdes{
    padding:100px 0 20px;
    }

    .section-title{
    margin-bottom:12px;
    }

    .section-title h1{
        font-size:24px;
    }

    .section-title p{
        font-size:14px;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }

    .section-title-dokumen{
        font-size:20px;
    }

    .doc-info h3{
        font-size:14px;
    }

    .doc-item{
        padding:14px 16px;
    }
    
    .sub-section-title{
    font-size:18px;
    margin-bottom:16px;
    gap:8px;
    line-height:1;
    padding-top:20px;
    }

    .section-title-dokumen{
    font-size:18px;
    margin-bottom:16px;
    gap:8px;
    line-height:1;
    padding-top:20px;
    }

    .gray-bar{
    width:4px;
    height:22px;
    flex-shrink:0;
    
    }
    .help-box{
        flex-wrap:wrap;
        padding:16px 18px;
    }

    .help-box p{
        font-size:12px;
    }

}

/* ===========================
DETAIL DOKUMEN (TOGGLE)
=========================== */

.doc-item {
    position: relative;
    flex-wrap: wrap; /* agar detail bisa turun ke baris baru */
}

.doc-detail {
    width: 100%;
    margin-top: 12px;
    padding: 16px 20px;
    background: #f9fcf9;
    border-radius: 10px;
    border: 1px solid #e0ebe0;
    transition: all 0.3s ease;
}

.doc-detail-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.doc-detail-content strong {
    color: #006E23;
}

/* Agar tombol tidak berubah saat toggle */
.doc-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.btn-outline.toggle-doc {
    cursor: pointer;
}

/* =====================================
   BANSOS - USER
====================================== */
.bansos-item {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(190, 202, 185, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: .2s;
    align-items: center;
}
.bansos-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.bansos-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bansos-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bansos-image .no-image {
    color: #999;
    font-size: 14px;
    text-align: center;
}
.bansos-info {
    flex: 1;
}
.bansos-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1A1C1C;
    margin-bottom: 6px;
}
.bansos-info .meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.bansos-info p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}
.bansos-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.bansos-actions .btn-pdf {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #006E23;
    color: #fff;
    border: 1px solid #006E23;
}
.bansos-actions .btn-pdf:hover {
    background: #005a1c;
    border-color: #005a1c;
}
.bansos-actions .btn-image {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #006E23;
    color: #006E23;
    background: transparent;
}
.bansos-actions .btn-image:hover {
    background: #006E23;
    color: #fff;
}
.bansos-actions .no-file {
    color: #999;
    font-size: 13px;
}

@media (max-width: 768px) {
    .bansos-item {
        flex-direction: column;
        text-align: center;
    }
    .bansos-image {
        width: 100%;
        height: 200px;
    }
    .bansos-actions {
        justify-content: center;
    }
}

