  /* Body */
  body {
    font-family: 'Inter', sans-serif;
    background-color: #f5faff;
    color: #333;
  }

  /* Navbar */
  nav {
    background-color: #ff6f00;
    box-shadow: 0 2px 8px rgb(255 111 0 / 0.3);
  }
  nav a {
    transition: color 0.3s ease;
  }
  nav a:hover {
    color: #fff9f0;
    text-decoration: underline;
  }
  #mobileMenu {
    transition: max-height 0.3s ease;
  }

  /* Slider */
  .slider-container {
    height: 500px;
    position: relative;
  }
  .slider-item {
    transition: opacity 1s ease-in-out;
  }
  .slider-item img {
    border-radius: 12px;
  }
  .slider-item .caption {
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
  }
  button.prev-next {
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    color: white;
    transition: background-color 0.3s ease;
  }
  button.prev-next:hover {
    background-color: rgba(0,0,0,0.7);
  }

  /* Kategori Donasi */
  #kategori-list {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
  }
  #kategori-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  .kategori-btn {
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .kategori-btn:hover {
    background-color: #ff7f1a;
    color: white;
  }

  /* Program Card */
  .program-list {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .program-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .program-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
  }
  .program-item img {
    border-radius: 12px 12px 0 0;
  }
  .progress-bar {
    background-color: #f3f4f6;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
  }
  .progress-bar-fill {
    background-color: #dc2626; /* red-600 */
    height: 100%;
    width: 0;
    transition: width 1s ease-in-out;
  }

  /* Footer */
  footer {
    background-color: #ee771b;
    color: white;
    padding: 3rem 1rem;
  }
  footer a:hover {
    color: #ffcc80;
  }

  /* Modal */
  #detailModal, #rincianModal {
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
  }
  #detailModal.hidden, #rincianModal.hidden {
    opacity: 0;
    pointer-events: none;
  }
  #detailModal.flex, #rincianModal.flex {
    opacity: 1;
    pointer-events: auto;
  }

  /* WhatsApp Button */
  #whatsapp-button {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    transition: filter 0.3s ease;
  }
  #whatsapp-button:hover {
    filter: brightness(1.1);
  }

  /* Scroll to top */
  button[onclick*="scrollTo"] {
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.5);
  }
  button[onclick*="scrollTo"]:hover {
    background-color: #ff7f1a;
  }

/* Styling untuk Slider */
.slider-container {
  max-height: 400px; /* Tinggi default, bisa disesuaikan */
  position: relative;
}

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s ease-in-out; /* Transisi fade halus */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover; /* Gambar menutupi seluruh area */
  background-position: center;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar pas tanpa distorsi */
  border-radius: inherit; /* Mengikuti rounded dari container */
}

.slider-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); /* Gradient overlay untuk tampilan menarik */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white; /* Teks putih untuk kontras */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Efek bayangan teks */
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s; /* Animasi hover */
}

.dot.active {
  background-color: #f97316; /* Warna oranye (sesuai Tailwind orange-500) */
  transform: scale(1.5); /* Membesar saat aktif */
}

.dot:hover {
  background-color: #f97316;
  transform: scale(1.3);
}

/* Responsif */
@media (max-width: 768px) {
  .slider-container {
    max-height: 300px; /* Kurangi tinggi untuk mobile */
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}
 /* Atur proporsi tampilan slider */
  #hero-slider {
    aspect-ratio: 21 / 9; /* proporsi lebar:tinggi — ubah sesuai kebutuhan */
    width: 100%;
  }

  /* Gaya untuk setiap gambar slide */
  .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* penuh tapi bisa terpotong sedikit */
    /* gunakan object-fit: contain; jika ingin seluruh gambar tampil utuh tanpa crop */
  }

  /* Pastikan slider-item konsisten ukuran dan posisi */
  .slider-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
  }

  .slider-item.active {
    opacity: 1;
    z-index: 10;
  }

  /* Responsif tambahan untuk mobile */
  @media (max-width: 640px) {
    #hero-slider {
      aspect-ratio: 16 / 10; /* agak tinggi di mobile */
    }
  }