/* ========================================================= */
/* 1. FONT & WARNA DASAR */
/* ========================================================= */
:root {
    --primary-color: #007049; /* Hijau Desa */
    --secondary-color: #f7b32b; /* Kuning/Emas */
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --font-primary: 'Poppins', sans-serif;
    --section-spacing: 70px;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: var(--font-primary);
    color: var(--dark-text);
    background-color: #fff;
}

section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

/* ========================================================= */
/* 2. SECTION HEADER */
/* ========================================================= */
.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 5px;
}

.section-header h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.section-header .btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.section-header .btn-outline-success:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ========================================================= */
/* 3. MENU GRID JELAJAHI DESA */
/* ========================================================= */
/* === JELAJAHI DESA MENU === */
.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #f8f9fa;
  padding: 15px 8px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  transition: 0.3s;
  text-decoration: none;
  color: #333;
  flex: 1 1 auto;
}

.menu-card:hover {
  background: #e9f7ef;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.menu-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #e8f8ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.menu-icon i {
  font-size: 24px;
  color: #198754;
}

.menu-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* maksimal 2 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 576px) {
  .menu-icon {
    width: 54px;
    height: 54px;
  }
  .menu-icon i { font-size: 20px; }
  .menu-card p { font-size: 12px; }
}

/* ========================================================= */
/* 4. CARD UMUM (BERITA, UMKM, GALERI, WISATA) */
/* ========================================================= */
.card-img-top,
.card-img-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.card {
    border: none;
    border-radius: 8px;
}
.card-hover {
    transition: transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ========================================================= */
/* 5. STATISTIK */
/* ========================================================= */
  /* Biar ikon besar di semua device */
  #statistik .stat-box i {
    font-size: 3rem !important;
    color: #198754;
    margin-bottom: 10px;
    display: block;
  }

  /* Biar tinggi kotak sejajar */
  #statistik .stat-box {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Judul angka biar lebih menonjol */
  #statistik .stat-box h3 {
    font-size: 2rem;
    margin-bottom: 5px;
  }
  .stat-box {
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out;
}
.stat-box:hover {
  transform: translateY(-3px);
}
.stat-box h3 {
  font-size: 1.8rem; /* biar angka lebih dominan */
}


/*apbdes*/
.apb-box {
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out;
}
.apb-box:hover {
  transform: translateY(-3px);
}
.apb-box h5 {
  font-size: 1.2rem;
}


/* ========================================================= */
/* 6. RESPONSIVE */
/* ========================================================= */

/* Max 576px (HP) */
@media (max-width: 576px) {
    /* Menu → 2 kolom */
    .menu-card h6 {
        font-size: 0.9rem;
    }
    .menu-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    .row.g-4 > [class*="col-"] {
        margin-bottom: 15px;
    }

    /* Berita, Wisata, UMKM → 1 kolom */
    #berita .col-md-6,
    #berita .col-lg-4,
    #wisata .col-md-4,
    #umkm .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .card-img-wrapper {
        height: 180px !important;
    }

    /* Statistik → 2 kolom */
    #statistik .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    #statistik .fs-1 {
        font-size: 2rem !important;
    }
    #statistik h3.counter {
        font-size: 1.5rem;
    }

    /* Galeri → 2 kolom */
    #galeri .col-6,
    #galeri .col-md-4,
    #galeri .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    #galeri .card-img-wrapper {
        height: 120px !important;
    }

    /* APBDes → 1 kolom */
    #apbdes .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Header section lebih kecil */
    .section-header h2 {
        font-size: 1.3rem;
    }
    .section-header .btn {
        font-size: 0.8rem;
    }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.2rem;
    }
    .menu-card {
        padding: 15px 10px;
    }
}

/* Desktop besar (≥1200px) */
@media (min-width: 1200px) {
    #galeri .card-img-wrapper {
        height: 180px;
    }
    #berita .card-img-wrapper,
    #wisata .card-img-wrapper,
    #umkm .card-img-wrapper {
        height: 220px;
    }
}
