/* ===========================
RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;
    color:#222;
    background:#ffffff;

}

.container{

    width:90%;
    max-width:1200px;
    margin:auto;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

/* ===========================
   NAVBAR
=========================== */

header{
    position: fixed;          /* Navbar tetap di atas */
    top: 0;
    left: 0;
    width: 100%;
    background: #386641;      /* Warna hijau */
    box-shadow: 0 2px 10px rgba(0,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;
    object-fit: contain;
}

.logo h2{
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.nav-menu{
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu li{
    list-style: none;
}

.nav-menu a{
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
    padding: 4px 0;
}

.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;
}


/* =====================================
DETAIL BERITA
===================================== */

.detail-news{

    padding:120px 0 70px;

}

.detail-card{

    background:white;

    border-radius:15px;

    padding:30px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.detail-card h1{

    font-size:36px;
    line-height:1.2;

    margin-bottom:18px;

}

.meta{

    display:flex;
    gap:30px;

    color:#666;

    font-size:14px;

    margin-bottom:25px;

}

.meta span{

    display:flex;
    align-items:center;
    gap:8px;

}

hr{

    border:none;
    border-top:1px solid #e5e5e5;

    margin-bottom:30px;

}

.cover{

    width:100%;
    height:400px;

    object-fit:cover;

    border-radius:12px;

    margin-bottom:35px;

}

.content{

    font-size:14px; 

    line-height:1.8;

    color:#555;
    

}

.content p{
    font-size: 14px;
    margin-bottom:28px;
}

blockquote{

    background:#eef8ef;

    border-left:6px solid #2E7D32;

    padding:22px 25px;

    font-style:italic;

    color:#2E7D32;

    border-radius:6px;

    margin:35px 0;

    font-size:19px;

}

/* =====================================
GALERI
===================================== */

.gallery{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

    margin-top:35px;
    margin-bottom:35px;

}

.gallery img{

    width:100%;

    height:260px;

    object-fit:cover;

    border-radius:10px;

}

.last-text{

    font-size:17px;

    line-height:2;

    color:#555;

}

/*====================================
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%
    
}
@media (max-width:768px){

    .detail-news{
        padding:90px 0 45px;
    }

    .detail-card{
        padding:18px;
        border-radius:12px;
    }

    .detail-card h1{
        font-size:24px;
        line-height:1.5;
        margin-bottom:15px;
    }

    .meta{
        flex-direction:column;
        gap:10px;
        font-size:12px;
        margin-bottom:18px;
    }

    hr{
        margin-bottom:20px;
    }

    .cover{
        height:220px;
        margin-bottom:20px;
    }

    .content,
    .last-text{
        font-size:12px;
        line-height:1.8;
        text-align:justify;
    }

    .content p{
        margin-bottom:18px;
    }

    blockquote{
        font-size:12px;
        line-height:1.7;
        padding:16px;
        margin:25px 0;
    }

    .gallery{
        grid-template-columns:1fr;
        gap:15px;
        margin:25px 0;
    }

    .gallery img{
        height:200px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

}