/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #fefce8, #f0fdf4);
    color: #1e293b;
    min-height: 100vh;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background-color: #166534; /* hijau tua */
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.6s ease-out;

    position: fixed;   /* supaya tetap di atas */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;     /* biar header di atas elemen lain */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Biar konten tidak ketutup header */
body {
    padding-top: 100px; /* sesuaikan dengan tinggi header */
}

/* Logo + Judul */
.logo-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 55px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s;
}
.logo:hover { transform: scale(1.05); }

.site-title {
    color: #facc15; /* kuning cerah */
    font-size: 1.8rem;
    font-weight: bold;
}

/* Navigation (Desktop) */
nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li { margin: 0 12px; }
nav ul li a {
    text-decoration: none;
    color: #fefce8;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
    background-color: #15803d; /* hijau lebih terang */
}



/* Tombol hamburger (3 garis) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 1100; /* lebih tinggi dari menu */
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Animasi jadi X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column;
        background-color: #166534;
        position: fixed;
        top: 0;
        right: -250px;
        width: 220px;
        height: 100%;
        padding: 20px;
        transition: right 0.4s ease;
        z-index: 1000;  /* lebih rendah dari burger */
    }
    nav ul.show {
        right: 0;
    }
    .menu-toggle {
        display: flex;
    }

    /* Biar isi menu lebih rapi */
    nav ul li {
        margin: 15px 0;
    }
}


@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: url('../picture/monumen.jpg') no-repeat center center / cover;
    border-radius: 18px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 30px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero p { font-size: 1.2rem; }

/* Berita Terbaru */
.berita-terbaru {
    margin: 60px 0;
     text-align: center;
}

.berita-terbaru h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
    color: #166534; /* hijau */
    position: relative;
    display: inline-block;
}

.berita-terbaru h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #facc15; /* kuning */
    margin: 10px auto 0;
    border-radius: 4px;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.berita-grid .card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.berita-grid .card img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

.berita-grid .card h3 {
    margin: 10px 0 5px;
    color: #991b1b;
}

.berita-grid .card .tanggal {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}


.card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.card img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto; /* biar center */
    border-radius: 5px;
}



.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInCard 0.5s ease forwards;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card h3 {
    color: #166534; /* hijau */
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #334155;
}

.card a {
    text-decoration: none;
    color: #ca8a04; /* kuning keemasan */
    font-weight: bold;
}

.card a:hover { text-decoration: underline; }

@keyframes fadeInCard {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Footer */
footer {
    background-color: #166534;
    color: #fefce8;
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-title { font-size: 1.5rem; }

    nav ul { flex-direction: column; }

    .hero { padding: 40px 15px; }

    .hero h2 { font-size: 1.8rem; }

    .hero p { font-size: 1rem; }
}

/* ====== Aparat Desa Section ====== */
.aparat-desa {
    margin: 60px 0;
     text-align: center;
}

.aparat-desa h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
    color: #166534; /* hijau */
    position: relative;
    display: inline-block;
}

.aparat-desa h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #facc15;
    margin: 10px auto 0;
    border-radius: 4px;
}

/* Grid Layout */
.aparat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch;
}

/* Card Style */
.aparat-card {
  background: white;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aparat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Foto Aparat */
.aparat-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%; /* Bikin bulat */
  border: 4px solid #15803d;
  margin-bottom: 15px;
}

/* Nama & Jabatan */
.aparat-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #15803d;
}

.aparat-info p {
  font-size: 14px;
  color: #15803d;
}

/* Responsif di HP */
@media (max-width: 600px) {
  .aparat-desa h2 {
    font-size: 22px;
  }
  .aparat-card img {
    width: 100px;
    height: 100px;
  }
  .aparat-info h3 {
    font-size: 16px;
  }
}


footer {
    background-color: #166534; /* warna sama dengan header */
    color: white;
    padding: 30px 20px 10px;
    margin-top: 40px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-info,
.footer-sosmed {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.footer-info h3,
.footer-sosmed h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-info p,
.footer-sosmed ul li a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
}

.footer-sosmed ul {
    list-style: none;
    padding: 0;
}

.footer-sosmed ul li {
    margin: 8px 0;
}

.footer-sosmed ul li a {
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-sosmed ul li a:hover {
    color: #ffd700; /* efek hover kuning emas */
}

.sosmed-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
    font-size: 13px;
    color: #e5e5e5;
}


.struktur-section {
    margin-top: 40px;
    text-align: center;
}

.struktur-section h3 {
    margin: 20px 0 10px;
    color: #991b1b;
}

.struktur-img {
    width: 100%;
    max-width: 600px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    cursor: pointer; /* biar ada tanda bisa diklik */
    transition: transform 0.2s;
}

.struktur-img:hover {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}


/* Section umum */
.profil-container {
    background: #fdf5f5; /* warna background lembut */
    padding: 50px 20px;
}

/* Box isi */
.profil-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.profil-box:hover {
    transform: translateY(-5px);
}

/* Judul */
.profil-box h2 {
    text-align: center;
    font-size: 28px;
    color: #064635;   /* hijau tua */
    font-weight: bold;
    margin-bottom: 20px;
}

/* Isi paragraf */
.profil-box p {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

/* Visi */
.profil-box blockquote {
    font-size: 18px;
    font-style: italic;
    text-align: center;
    color: #222;
    margin: 10px 0 20px;
}

/* Misi */
.profil-box ul {
    list-style: decimal;
    margin-left: 20px;
    color: #333;
    line-height: 1.8;
}

.peta-section {
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.peta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-desa {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.peta-desa {
    flex: 2;
    min-width: 300px;
}

.peta-desa iframe {
    width: 100%;
    height: 350px;
    border-radius: 6px;
}

/* ===== Statistik Penduduk ===== */
.statistik-penduduk {
    margin: 60px 0;
     text-align: center;
}

.statistik-penduduk h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
    color: #166534; /* hijau */
    position: relative;
    display: inline-block;
}

.statistik-penduduk h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #facc15;
    margin: 10px auto 0;
    border-radius: 4px;
}


.statistik-penduduk .sub-text {
  max-width: 800px;
  margin: 0 auto 30px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.stat-number {
  background: linear-gradient(135deg, #8a6a33, #ff6b6b);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  padding: 20px 30px;
  min-width: 100px;
  text-align: center;
}

.stat-label {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #444;
  padding: 20px;
  text-align: left;
}

/* ===== Wisata Desa ===== */
.wisata-desa {
    margin: 60px 0;
    text-align: center;
}

.wisata-desa h2 {
    font-size: 2rem;
    color: #166534;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.wisata-desa h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #facc15;
    margin: 10px auto 0;
    border-radius: 4px;
}

/* Grid untuk semua gambar */
.wisata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* kecil */
    gap: 15px;
    padding: 0 15px;
}

/* Setiap card hanya gambar + judul */
.wisata-grid .card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wisata-grid .card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.wisata-grid .card img {
    width: 100%;
    height: 120px; /* lebih kecil */
    object-fit: cover;
    display: block;
}

.wisata-grid .card h3 {
    font-size: 0.95rem;
    margin: 8px;
    color: #991b1b;
}

/* ===== Potensi Desa ===== */
.potensi-desa {
     margin: 60px 0;
    text-align: center;
}
.potensi-desa h2 {
    font-size: 2rem;
    color: #166534;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}
.potensi-desa h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #facc15;
    margin: 10px auto 0;
    border-radius: 4px;
}
.potensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.potensi-grid .card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.potensi-grid .card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #991b1b;
}
.potensi-grid .card a {
    display: inline-block;
    margin-top: 5px;
    color: #ca8a04;
    font-weight: bold;
    text-decoration: none;
}
.potensi-grid .card a:hover {
    text-decoration: underline;
}


/* Bagian Peta Lokasi Desa */
.peta-section {
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.peta-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #991b1b;
}

.peta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Info Desa */
.info-desa {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-size: 15px;
    line-height: 1.6;
}

.info-desa h3 {
    color: #333;
    margin-bottom: 10px;
}

.info-desa p {
    margin: 6px 0;
}

/* Responsive tampilan HP */
@media (max-width: 768px) {
    .peta-container {
        flex-direction: column;
    }

    .info-desa {
        text-align: center;
    }
}

/* SAMBUTAN */
.sambutan {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    margin-top: 60px;   /* kasih jarak dari hero */
}

/* Grid layout */
.sambutan-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-in-out;
}

/* Gambar Sambutan */
.sambutan-img img {
    width: 250px;
    height: auto;       /* biar proporsional */
    object-fit: contain;/* jaga supaya logo tidak kepotong */
    border-radius: 0;   /* tidak bulat, biar full */
    box-shadow: none;   /* hilangkan efek bayangan/border */
    display: block;
    margin: 0 auto;
}


.sambutan-img img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Konten Sambutan */
.sambutan-content {
    text-align: left;
    animation: fadeInRight 1s ease-in-out;
}

.sambutan-content .judul-sambutan {
    font-size: 2.2rem;
    color: #991b1b;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
}

.sambutan-content .judul-sambutan::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #facc15;
    margin-top: 8px;
    border-radius: 2px;
}

.sambutan-content .nama-kades {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 10px 0 5px;
    color: #111;
    letter-spacing: 1px;
}

.sambutan-content .jabatan {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 20px;
    font-style: italic;
}

.sambutan-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

/* Animasi */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .sambutan-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .sambutan-content {
        text-align: center;
        padding: 0 10px;
    }
    .sambutan-content .judul-sambutan::after {
        margin: 8px auto 0;
    }
}

