/* ============================================================
   MOBILE STYLE - DESA MATOBA
   Versi ringan & tertata untuk layar kecil (≤768px)
   ============================================================ */

:root {
  --color-primary: #e4630d;
  --color-light: #f4f4f4;
  --color-text: #333;
  --radius: 6px;
  --shadow: 0 2px 6px rgba(33, 8, 255, 0.664);
}

/* ========== RESET UMUM ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-top: 70px;
  background-color: var(--color-bg);
  color: var(--color-text);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  user-select: none;
}

/* ========== HEADER & NAVIGASI ========== */
header {
  background-color: #f3ebf0;
  border-bottom: 1px solid #f7f7f8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.logo img {
  height: 38px;
  width: 38px;
}

.logo span {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* ========== HAMBURGER ========== */
.hamburger {
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--color-primary);
}

/* ========== MOBILE MENU NAV ========== */
#mobile-nav {
 position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  z-index: 99;;
}

#mobile-nav.active {
  max-height: 500px;
  animation: slideIn 0.3s ease forwards;
}

/* Animasi masuk */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* List utama */
#mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Item menu */
#mobile-nav li {
  border-bottom: 1px solid #f7f7f7;
}

/* Tautan menu */
#mobile-nav a {
  display: block;
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  background-color: #8ee4f3;
  color: var(--color-text);
  text-align: left;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover */
#mobile-nav a:hover {
  background-color: var(--color-primary);
  color: #ce0d0d;
}


/* ========== HERO ========== */
/* ========== HERO SECTION TANPA ANIMASI SCROLL ========== */
.hero-container {
  position: relative;
  width: 100vw;
  height: 30vh; /* lebih tinggi agar tampak jelas */
  overflow: hidden;
}

.hero-slider {
  display: flex;
  width: 300%; /* jika 3 gambar */
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}

.slide img,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: 15% center; /* Fokus ke kiri */
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}


.hero-text {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(156, 201, 226, 0.5);
  color: white;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 90%;
  font-family: 'Playfair Display', serif; /* Elegan */
}

/* ========== MAIN ========== */
main {
  padding: 0 0.8rem;
}

/* ========== SECTION ========== */
section {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

section h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: var(--color-primary);
}

.paragraph-center {
  text-align: center;
  font-size: 0.95rem;
}

/* ========== KONTEN UMKM & WISATA ========== */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.card-content {
  padding: 0.5rem 0;
}

.umkm-img,
.wisata-img,
.foto-pemimpin,
.struktur-desa,
.img-center {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin: 0.8rem 0;
}

/* ========== LINK TAMBAHAN ========== */
a[target="_blank"] {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  transition: 0.3s;
}

a[target="_blank"]:hover {
  background-color: #c4510b;
}

/* ========== ANIMASI SCROLL NON-AKTIF ========== */

.foto-pemimpin {
  width: 120px;                  /* Ukuran gambar */
  height: 120px;
  object-fit: cover;             /* Potong gambar agar tetap proporsional */
  border: 3px solid #e4630d;     /* Warna border sesuai tema */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Bayangan halus */
  margin: 0 auto 1rem auto;      /* Tengah + jarak bawah */
  display: block;
}
.leader-info {
  text-align: center;          /* Tengah */
  margin-top: 0.5rem;          /* Jarak atas dari foto */
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.leader-info h3 {
  margin: 0.2rem 0;
  font-weight: 600;
  color: #e4630d;  
  font-size: 0.9rem;        /* Ukuran huruf */
  font-weight: 600;             /* Warna oranye untuk nama dan jabatan */
}

.leader-info p {
  margin: 0.2rem 0;
  font-style: italic;
  color: #555;
}
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}
.hidden {
  display: none;
}

#mobile-nav.active {
  display: block;
  animation: slideIn 0.3s ease forwards;
}

