@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
* { font-family: 'Open Sans', sans-serif; }

body, html {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}

/* Background */
.background {
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  position: fixed;
  inset: 0;
  z-index: -1;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Konten profil */
.konten-profil {
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
  color: #222;
}

#typing { color:white !important; }

/* Logo */
.logo { width: 140px; margin-top: 3rem; margin-bottom: -1rem; }
.posisilogo { position: absolute; top: 10px; left: 10px; }
.posisilogo .logo2 { width: 80px; height: auto; }

/* Text */
.typing-text { font-size: 1.2rem; font-weight: bold; }
.subtext { margin: -0.5rem 0 1rem; font-weight: bold; color:#FFF; font-size: 1rem; }

/* Search box */
.search-box { position: relative; display: inline-block; }
.search-box input {
  padding: 10px 40px 10px 15px;
  border-radius: 8px;
  border: none;
  width: 200px;
  max-width: 100%;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  font-size: 1rem;
}
.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

/* Menu */
.menu {
  display: flex;
  flex-wrap: wrap;
  
  justify-content: center;
  margin-top: 1rem;
  text-align: center;
}
a { text-decoration: none; }

.menu-item {
  text-align: center;
  background: white;
  color: black;
  width:85px;
  height:85px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  flex: 1 0 100px;
  height: 80px;
  margin: 0.5rem 5px;
  padding: 1rem;
  transition: transform 0.2s ease;
}
.menu-item img { width: 40px; height: 40px; }
.menu-item span { display: block; margin-top: 0.5rem; font-size: 0.75rem; }
.menu-item:hover img { transform: scale(1.1); }

/* Form */
.form-pendaftaran {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-row label { flex: 0 0 120px; font-weight: 600; }
.short-input { width: 150px; }
.medium-input { width: 200px; }
.long-input {
  width: 100%; max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.form-row input {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.form-row button {
  padding: 10px 20px;
  background-color: #2d89ef;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.form-row button:hover { background-color: #1b61c1; }

/* Responsive form */
@media screen and (max-width: 600px) {
  .form-row { flex-direction: column; }
  .form-row input, .form-row button { width: 100% !important; }
}

/* Notifikasi */
.notif-sukses {
  background-color: #e0ffe0;
  color: #2e7d32;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #81c784;
}
.notif-error {
  background-color: #ffe0e0;
  color: #c62828;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #e57373;
}
.error-box { display: none; background: #fdd; color: #900; padding: 10px; border-radius: 5px; }

/* CKEditor */
.ck-editor__editable_inline { min-height: 200px; max-height: 400px; overflow-y: auto; }

/* Button tambah */
.btn-tambah {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
}
.btn-tambah:hover { background-color: #45a049; }

/* Loader */
#loader { position: fixed; inset: 0; }
.loader-spinner {
  border: 4px solid #ddd;
  border-top-color: #14b8a6;
  border-radius: 50%;
  width: 28px; height: 28px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#main-content { opacity: 0; }
#main-content.loaded { opacity: 1; }

/* Audio button */
#audioBtn {
  position:fixed; right:16px; bottom:16px; z-index:9999;
  display:none; padding:10px 14px; border:none; border-radius:9999px;
  background:#111; color:#fff; font:14px/1 system-ui, Arial, sans-serif;
  box-shadow:0 6px 20px rgba(0,0,0,.2); cursor:pointer;
}

/* === Polisi kanan & kiri === */
.polisi-container {
  position: fixed;
  bottom: 0;
  right: 0;      /* rapat ke sisi kanan */
  display: flex;
  align-items: center;
  gap: 6px;      /* biar bubble & gambar tetap ada jarak */
  z-index: 9999;
}
.polisi-container2 {
  position: fixed;
  bottom: 4px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

/* Bubble */
.bubble {

  background: #fff;
  border: 2px solid #007bff;
  border-radius: 15px;
  padding: 10px 15px;
  max-width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.8s;
}

/* Ekor bubble kanan */
.polisi-container .bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  border-left: 10px solid #007bff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Ekor bubble kiri */
.polisi-container2 .bubble::after {
  content: "";
  position: absolute;
  top: 50%;
 
  transform: translateY(-50%);
  border-right: 10px solid #007bff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Foto */
.polisi-container img{
  width: 210px;
  opacity: 0;
   left: 10px;
   margin-bottom: -1px;
  margin-right: 2px;
  transform: scale(0.8);
  animation: fadeInZoom 0.8s ease forwards;
}

.polisi-container2 img {
  width: 290px;
  opacity: 0;
     margin-bottom: -3px;
   margin-left: -6px;
  transform: scale(0.8);
  animation: fadeInZoom 0.8s ease forwards;
}

/* Animasi */
@keyframes fadeInZoom { from {opacity:0;transform:scale(0.8);} to {opacity:1;transform:scale(1);} }
@keyframes fadeInUp { from {opacity:0;transform:translateY(20px);} to {opacity:1;transform:translateY(0);} }

/* Audio popup */
#audioPrompt {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.box {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.box button {
  margin: 10px; padding: 10px 18px;
  font-size: 16px;
  border: none; border-radius: 8px; cursor: pointer;
}
.on { background: #28a745; color: white; }
.off { background: #dc3545; color: white; }

/* Responsive */
@media screen and (max-width: 900px) {
  .logo { width: 120px; margin-top: 2rem; margin-bottom: -1rem; }
  .posisilogo .logo2 { width: 60px; }
  .typing-text { font-size: 1rem; }
  .menu { display: grid; grid-template-columns: repeat(4,1fr); gap:8px; }
  .menu-item {
  width: 75px;
  height: 75px;
  font-size: 6px;
  padding: 0.1rem;
  margin: 0;  /* rapetin */
}
  .menu-item img { margin-top:10px; width:20px; height:20px; }
  .menu-item span {font-size:10px !important; }

  .bubble { font-size: 6px; max-width: 90px; padding: 3px 9px; }

  .polisi-container img { width: 98px; margin-right:1px;}
  .polisi-container2 img{ width: 130px; margin-left:-4px;}
}



ul.kades-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;   /* auto = rata tengah */
  font-family: "Segoe UI", sans-serif;
  max-width: 500px;    /* biar tidak melebar penuh */
}


ul.kades-list li {
  display: flex;
  justify-content: space-between; /* nama kiri, tahun kanan */
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #f7f9fc;
  border-left: 4px solid #3f72af;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.4em;
}

ul.kades-list li .name {
  font-weight: 500;
}

ul.kades-list li .year {
  color: #555;
  font-style: italic;
  font-size: 14px;
  margin-left: 10px;
  white-space: nowrap; /* biar tahun ga pindah baris */
  
  
}


ol.vision-list {
  counter-reset: item; /* reset counter */
  list-style: none;    /* hilangkan default numbering */
  padding: 0;
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  max-width: 700px;
  margin: 0 auto; /* rata tengah container */
}

ol.vision-list li {
  position: relative;
  padding: 15px 20px 15px 60px; /* space untuk nomor */
  margin-bottom: 12px;
  background: #f7f9fc;
  border-left: 5px solid #3f72af;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5em;
}

ol.vision-list li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #3f72af;
  font-size: 20px;
  background: #e0eafc;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
}



