/* ===========================
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;
}

/* ===========================
HERO
=========================== */

.hero{

    position:relative;

    width:100%;
    height:100vh;

    background-image:url("static/image/Dashboard.JPG");
    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;

}

.overlay{

    position:absolute;
    inset:0;

    background:linear-gradient(
        90deg,
        rgba(0,0,0,.55),
        rgba(0,0,0,.25),
        rgba(0,0,0,.10)
    );

}

.hero-content{

    position:relative;
    z-index:10;

    color:#fff;

}

.hero-content h1{

    font-size:48px;
    line-height:1.15;
    max-width:800px;

    margin-bottom:5px;

}

.hero-content p{

    font-size:15px;
    line-height:1.8;

    max-width:580px;

    margin-bottom:70px;

}

.hero-btn{

    display:flex;
    gap:18px;

}

/* Tombol Utama */
.btn-primary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 34px;      /* Lebih kecil */
    font-size: 15px;         /* Ukuran teks lebih kecil */
    font-weight: 600;

    background: #F4AE2B;
    color: #222;

    border-radius: 8px;
    transition: 0.3s ease;
}

.btn-primary:hover{
    background: #ffca61;
    transform: translateY(-2px);
}


/* Tombol Outline */
/* Tombol Outline dengan efek blur (glassmorphism) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 34px;
    font-size: 15px;
    font-weight: 600;

    /* Efek kaca (glassmorphism) */
    background: rgba(255, 255, 255, 0.15);        /* transparan putih */
    backdrop-filter: blur(1px);                  /* blur latar belakang */
    -webkit-backdrop-filter: blur(5px);          /* dukungan Safari */
    border: 2px solid rgba(255, 255, 255, 0.3);   /* border tipis tembus pandang */
    color: #fff;

    border-radius: 8px;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);         /* lebih terang saat hover */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

/*=====================================
ABOUT
======================================*/

.about-section{

    padding:90px 0;

    background:#fff;

}

.about-grid{

    display:grid;

    grid-template-columns:420px 1fr;

    gap:90px;

    align-items:center;

}

/* FOTO */

.image-box{

    position:relative;

    width:340px;

    margin:auto;

}

.image-box img{

    width:100%;

    height:500px;

    object-fit:cover;

    border-radius:20px;

    border:6px solid white;

    box-shadow:0 20px 40px rgba(0,0,0,.12);

}

/* CARD NAMA */

.kades-card{

    position:absolute;

    bottom:-20px;

    right:-25px;

    background:#0D631B;

    color:white;

    padding:18px 24px;

    border-radius:14px;

    box-shadow:0 12px 30px rgba(0,0,0,.15);

}

.kades-card h3{

    font-size:22px;

    margin-bottom:6px;

}

.kades-card p{

    font-size:14px;

    opacity:.9;

}

/* CONTENT */

.mini-title{

    color:#835400;

    font-size:13px;

    font-weight:700;

    letter-spacing:2px;

}

.about-content h2{

    font-size:36px;

    margin:15px 0 25px;

    line-height:1.2;

}

.about-content p{

    color:#666;

    line-height:1.9;

    margin-bottom:20px;

}

/* COUNTER */

.counter-box{

    display:flex;

    gap:20px;

    margin-top:40px;

}

.counter{

    width:300px;

    background:#F3F3F3;

    border:1px solid #BFCABA;

    border-radius:15px;

    padding:20px;

}

.counter h3{

    font-size:42px;

    color:#0D631B;

}

.counter span{

    color:#666;

}

/*=====================================
MENU
======================================*/

.quick-menu{

    background:#f5f5f5;

    padding:40px 0 70px;

}

.menu-grid{

    display: grid;

    grid-template-columns: repeat(4, 300px);

    justify-content: center;

    gap: 30px;

}

.menu-card{

    width:300px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    background:#fff;

    padding:45px 20px;

    border-radius:16px;

    text-align:center;

    transition:.3s;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

    color:#222;              /* Warna teks */
    text-decoration:none;    /* Hilangkan garis bawah */
}

.menu-card:hover{

    transform:translateY(-8px);

    color:#222;
}

.menu-card h4{

    color:#222;
    font-size:18px;
}

.menu-card i{

    width:65px;

    height:65px;

    line-height:65px;

    border-radius:15px;

    background:#A3F69C;

    color:#0D631B;

    font-size:30px;

    margin-bottom:20px;
}

/*====================================
NEWS
=====================================*/

.news-section{

    padding:40px 0;

}

.news-wrapper{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:60px;

}

.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;
}

.section-header h2{

    font-size:28px;

}

.section-header a{

    color:#157A2C;

    font-weight:600;

    font-size:15px

}

.news-item{

    display:flex;

    gap:20px;

    margin-bottom:28px;

}

.news-item img{

    width:240px;

    min-width:240px;

    height:150px;

    object-fit:cover;

    border-radius:12px;

}

.news-content h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 6px 0 10px;
}

.news-content h3 a,
.news-content h3 a:visited {
    color: #222;
    text-decoration: none;
    transition: .3s;
}

.news-content h3 a:hover {
    color: #0D631B;
}

.news-content p {
    font-size: 13px; 
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.news-meta small {
    font-size: 13px;
    color: #777;
}

.news-type {
    display: inline-block;
    background-color: #A3F69C;
    color: #002204;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.category{

    color:white;

    padding:5px 12px;

    border-radius:20px;

    font-size:12px;

}

.green{

    background:#59B947;

}

.blue{

    background:#4A90E2;

}

.orange{

    background:#F4A62A;

}

.see-all {
    font-size: 12px;
}

/*====================================
PENGUMUMAN
=====================================*/

.announcement {
    background: #F5F5F3;
    border: 1px solid #D8D8D8;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.announcement h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
}

.announcement h3 i {
    color: #222;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.announce {
    position: relative;
    padding-left: 16px;
    border-left: 4px solid #D62828; /* default merah untuk pengumuman */
    border-radius: 2px;
}

/* Agenda → hijau 2F8F3A */
.announce.announce-agenda {
    border-left-color: #2F8F3A;
}

/* Pengumuman → merah (tetap) */
.announce.announce-pengumuman {
    border-left-color: #D62828;
}

/* Warna label disesuaikan */
.announce.announce-agenda .announce-type {
    background: #2F8F3A;
    color: #ffffff; /* agar terbaca */
}

.announce.announce-pengumuman .announce-type {
    background: #D62828;
    color: #fff;
}

.announce .announce-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.announce h4 {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
    margin-bottom: 4px;
}

.announce small {
    font-size: 12px;
    color: #888;
}

.btn-announcement {
    margin-top: 25px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #D2D2D2;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
}

.btn-announcement:hover {
    background: #386641;
    color: #fff;
}

/*====================================
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;

}

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
=====================================*/

@media(max-width:992px){

.news-wrapper{

grid-template-columns:1fr;

}

.footer-grid{

grid-template-columns:1fr 1fr;

}

}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 22px;
    }
    .section-header a {
        font-size: 13px;
    }
    .news-item {
        flex-direction: column;
    }
    .news-item img {
        width: 100%;
        height: 200px;
    }
    .news-content h3 {
        font-size: 18px;
    }
    .announcement h3 {
        font-size: 16px;
    }
    .announce h4 {
        font-size: 14px;
    }
}

/* ===================================
   NAVBAR HP
=================================== */

@media (max-width:768px){

    header{
        position:fixed;
        top:0;
        left:0;
        width:100%;
        z-index:1000;
    }

    .navbar{
        position:relative;
        height:60px;
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .logo h2{
        font-size:18px;
    }

    .logo img{
        width:32px;
        height:32px;
    }

    /* Tombol muncul */
    .menu-toggle{
        display:block;
    }

    /* Menu disembunyikan */
    .nav-menu{

        display:none;

        position:absolute;

        top:60px;

        left:0;

        width:100%;

        background:#386641;

        flex-direction:column;

        gap:0;

        box-shadow:0 10px 20px rgba(0,0,0,.15);

        z-index:999;

    }

    /* Saat tombol ditekan */
    .nav-menu.active{

        display:flex;

    }

    .nav-menu li{

        width:100%;

    }

    .nav-menu a{

        display:block;

        padding:15px 20px;

        font-size:15px;

        color:#fff;

    }

    .nav-menu a:hover{

        background:#2f5637;

    }

    /* ==========================================
   HERO RESPONSIVE (HP ONLY)
========================================== */
@media (max-width:768px){

    .hero{
        min-height:90vh;
        padding:120px 0 60px;
    }

    .hero-content h1{
        font-size:30px;
        line-height:1.35;
        font-weight:700;
    }

    .hero-content p{
        font-size:14px;
        max-width:360px;
        margin:18px auto 35px;
    }

    .hero-btn{
        flex-direction:column;
        gap:12px;
    }

    .btn-primary,
    .btn-secondary{
        width:200px;
        justify-content:center;
        padding:12px 20px;
        
}
}
    /* ===========================
   ABOUT RESPONSIVE
=========================== */

.about-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:40px;
    text-align:center;
}

.image-box{
    width:220px;
    margin:auto;
}

.image-box img{
    width:100%;
    height:auto;
}

.kades-card{
    right:-10px;
    bottom:-15px;
    padding:12px 18px;
}

.kades-card h3{
    font-size:16px;
}

.kades-card p{
    font-size:11px;
}

.mini-title{
    font-size:12px;
}

.about-content h2{
    font-size:24px;
    margin:12px 0 18px;
}

.about-content p{
    font-size:14px;
    line-height:1.8;
}

.counter-box{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin-top:25px;
}

.counter{
    width:150px;
    padding:16px;
}

.counter h3{
    font-size:30px;
}

.counter span{
    font-size:12px;
}

   /* ===========================
   QUICK MENU RESPONSIVE
=========================== */

.menu-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:15px;
    justify-content:center;
}

.menu-card{
    width:100%;
    min-height:150px;
    padding:25px 15px;
    border-radius:14px;
}

.menu-card i{
    width:55px;
    height:55px;
    line-height:55px;
    font-size:24px;
    margin-bottom:15px;
}

.menu-card h4{
    font-size:14px;
    line-height:1.4;
}

    .section-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .news-item{
        flex-direction:column;
    }

    .news-item img{
        width:100%;
        min-width:100%;
        height:220px;
    }

    .announcement{
        margin-top:25px;
    }



}
   
  
  /* ===========================
   FOOTER RESPONSIVE
=========================== */

@media (max-width:768px){

    footer{
        padding:40px 0 15px;
    }

    .footer-grid{
        display:grid;
        grid-template-columns:2fr 1fr;
        gap:18px 20px; /* sebelumnya 35px */
        align-items:start;
        padding-bottom:20px;
    }

    /* Kolom kiri */
    .footer-about{
        grid-column:1;
        grid-row:1 / 4;
    }

    /* Kolom kanan */
    .footer-grid > div:nth-child(2){
        grid-column:2;
        grid-row:1;
    }

    .footer-grid > div:nth-child(3){
        grid-column:2;
        grid-row:2;
    }

    .footer-grid > div:nth-child(4){
        grid-column:2;
        grid-row:3;
    }

    .footer-grid h3{
        font-size:14px;
        margin-bottom:10px;
    }

    .footer-grid h4{
        font-size:12px;
        margin-bottom:8px;
    }

    .footer-grid p{
        font-size:10px;
        line-height:1.7;
        max-width:220px;
    }

    .footer-grid li,
    .footer-grid a{
        font-size:10px;
        line-height:1.6;
    }

    .footer-grid li{
        margin-bottom:4px;
    }

    .copyright{
        padding:8px 0;
        font-size:8px;
    }

}
