body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5; /* warna netral atau abu-abu tipis */
  scroll-behavior: smooth;
  overflow-x: hidden; /* cegah scroll horizontal */
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* ========================== */
/* LANDING HEADER */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom, #f3ecea, #ece8df);
}

.header {
  text-align: center;
  padding: 10px 10px 0;
}

.main-image {
  width: 700px;
  border-radius: 20px;
  margin-top: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  position: relative;
}


/* Scroll-down lebih dekat */
.scroll-down {
  display: inline-block;
  margin: 70px auto 205px; /* bawah dikurangi dari 60px → 15px */
  font-size: 30px;
  color: #5e4635;
  animation: bounce 1.5s infinite;
  text-decoration: none;
  padding: 0; /* hilangkan padding tambahan */
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Menu grid tanpa jarak bawah berlebih */
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: -10px;   /* cukup kecil */
  margin-bottom: 5px;   /* jangan kasih jarak ke bawah */
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  padding: 5px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
  color: #000;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.menu-item:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.menu-item i {
  font-size: 18px;
  margin-bottom: 4px;
}

/* ========================== */
/* PEMERINTAHAN SECTION */
.pemerintahan {
  background: linear-gradient(to bottom, #75c1ff, #faccbf);
  /* color: white; */
  padding: 100px 2px 10px;
  min-height: 70vh;
}

.pemerintahan h2 {
  text-align: center;
  margin-bottom: 30px;
   margin-top: -5px;
  font-size: 30px;
  color: #000000;
  text-shadow: 0 2px 2px rgba(255, 255, 255, 0.3);
}

.pemerintahan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.pemerintahan-grid .menu-item {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #000;
  padding: 10px;
  text-shadow: 0 1px 1px rgba(255,255,255,0.7);
}
.pemerintahan-grid .menu-item i {
  font-size: 30px; /* besar hanya di section Pemerintahan */
  margin-bottom: 8px;
}

/* ========================== */
/* WARNA BACKGROUND */
.color1 { background: #eeb155; }  /* Berita */
.color2 { background: #fff9c4; }  /* Kontak */
.color3 { background: #c8e6c9; }  /* PPID */
.color4 { background: #f0f4c3; }  /* Satu Data */
.color5 { background: #f8bbd0; }  /* Lainnya */
.color15 { background: #007BFF; }

.color6  { background: #f8bbd0; }
.color7  { background: #d7ccc8; }
.color8  { background: #ffe082; }
.color9  { background: #c5e1a5; }
.color10 { background: #b2dfdb; }
.color11 { background: #f0f4c3; }
.color12 { background: #d1c4e9; }
.color13 { background: #ffecb3; }
.color14 { background: #c8e6c9; } 
.color16 { background: #D1C4E9; }
.color17 { background: #f1a83a; }  /* Dokumen */
.color18 { background: #a3f0a7; }  /* LHKPN Pimpinan */
/* ========================== */
/* RESPONSIVE MOBILE (≤768px) */
/* ========================== */
@media screen and (max-width: 768px) {
  .header {
    text-align: center;
    padding: 30px 2px 0;
  }

  .main-image {
    width: 100%;
    margin-top: 30px;   /* sedikit turun dari header */
    margin-bottom: 0;   /* hilangkan jarak bawah */
  }

  .menu-grid {
    margin-top: 0;      /* langsung nempel ke gambar */
    margin-bottom: 0;   /* langsung nempel ke scroll */
    gap: 25px;           /* antar item rapat */
  }

  .menu-item {
    width: 72px;
    height: 62px;
    font-size: 10px;
  }

  .menu-item i {
    font-size: 16px;
  }

  .pemerintahan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .pemerintahan-grid .menu-item {
    width: 80px;
    height: 80px;
    font-size: 10px;
    padding: 8px;
  }

  .pemerintahan-grid .menu-item i {
    font-size: 16px;
    margin-bottom: 6px;
  }
  /* Scroll-down lebih dekat */
.scroll-down {
  display: inline-block;
  margin: 35px auto 100px; /* bawah dikurangi dari 60px → 15px */
  font-size: 30px;
  color: #5e4635;
  animation: bounce 1.5s infinite;
  text-decoration: none;
  padding: 0px; /* hilangkan padding tambahan */
}
}

/* ========================== */
/* TOP BANNER HEADER ATAS */
/* ========================== */
.top-banner {
  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 1000;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.logo-kab {
  height: 40px;
}

.text-kab {
  text-align: left;
  font-size: 12px;
  line-height: 1.2;
  font-weight: bold;
  color: #000;
}

.kab-title {
  text-transform: uppercase;
  font-size: 13.5px;
  font-weight: 700;
}

.kab-subtitle {
  font-size: 25px;
  font-weight: 700;
}

.logo-masero {
  height: 40px;
}

/* ========================== */
/* RESPONSIVE BANNER MOBILE */
/* ========================== */
@media screen and (max-width: 768px) {
  .top-banner {
    top: 10px;
    left: 10px;
    right: auto;
  }

  .banner-content {
    gap: 2px;
    padding: 4px 8px;
  }

  .logo-kab {
    height: 30px;
  }

  .text-kab {
    font-size: 10px;
  }

  .kab-subtitle {
    font-size: 16.5px;
  }
  .kab-title {
  font-size: 9px;
}

  .logo-masero {
    height: 30px;
  }
}

/* ===================== */
/* SECTION BERITA TERBARU */
/* ===================== */
#berita-terbaru {
  width: 100%;
  min-height: 100%; /* biar selalu cover area */
  background: linear-gradient(to bottom, #75c1ff, #75c1ff); 
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  padding: 80px 0 0; /* jangan 0px bawah */
  position: relative;
  box-sizing: border-box;
}

/* Tambah pola ornamen lembut di background */
#berita-terbaru::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,102,204,0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

#berita-terbaru::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,200,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

#berita-terbaru .berita-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1; /* supaya di atas background pola */
}

#berita-terbaru .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

#berita-terbaru h2 {
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
  color: #003366;
}

/* Link lihat semua */
#berita-terbaru .lihat-semua {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0e0d0d;
  text-decoration: none;
}
#berita-terbaru .lihat-semua:hover {
  text-decoration: underline;
}

/* Grid berita */
#berita-terbaru .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
/* Card berita dengan glass effect */
#berita-terbaru .news-card {
  background: rgba(255, 255, 255, 0.75); /* putih transparan */
  backdrop-filter: blur(10px);           /* efek blur kaca */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#berita-terbaru .news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
#berita-terbaru .news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
#berita-terbaru .news-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 12px 15px 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#berita-terbaru .news-card h3 a {
  color: #222;
  text-decoration: none;
}
#berita-terbaru .news-card h3 a:hover {
  color: #0066cc;
}
#berita-terbaru .news-card small {
  display: block;
  margin: 0 15px 15px;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 768px) {
  #berita-terbaru { padding: 60px 0; }
  #berita-terbaru .news-card img, .thumb-video { height: 200px; }
  #berita-terbaru h2 {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
  color: #003366;
}
#berita-terbaru .lihat-semua {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0e0d0d;
  text-decoration: none;

}
}
    /* Tambahan untuk video thumbnail */
    .thumb-wrapper { position: relative; display: block; }
    .thumb-video, .thumb-wrapper img {
      width: 100%; height: 180px; object-fit: cover; display: block;
    }
    .play-icon {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      font-size: 48px;
      color: white;
      text-shadow: 0 2px 6px rgba(0,0,0,0.6);
      pointer-events: none;
    }