/* Font modern */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f8fefc;
  color: #1b4332;
  max-width: 430px;
  margin: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Carousel Area */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.carousel-container {
  display: flex;
  width: 400%;
  animation: slide 20s infinite;
}

.carousel-container img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 18px;
  transition: 0.5s ease-in-out;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  background-color: #ccc;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.carousel-dots span.active {
  background-color: #2d6a4f;
}

@keyframes slide {
  0%, 100% { transform: translateX(0%); }
  25% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  75% { transform: translateX(-300%); }
}
/* Ringkasan Jumlah - Responsive dan Modern */
.summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background-color: #f8f9fa;
  flex-wrap: wrap; /* agar tetap aman di layar sempit */
}

.summary .card {
  flex: 1 1 30%;
  background-color: #ffffff;
  padding: 16px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.2s ease;
}

.summary .card:hover {
  transform: translateY(-4px);
}

.summary .card i {
  font-size: 24px;
  color: #2d6a4f;
  margin-bottom: 8px;
}

.summary .card h3 {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  margin: 4px 0 6px;
}

.summary .card p {
  font-size: 18px;
  font-weight: bold;
  color: #1b4332;
  margin: 0;
}


/* Doa cards */
#doaList .doa-card {
  background: #ffffff;
  margin: 12px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 5px solid #2d6a4f;
  transition: transform 0.2s ease;
}

#doaList .doa-card:hover {
  transform: translateX(4px);
}

#doaList .doa-card strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
  color: #1b4332;
}

#doaList .doa-card p {
  margin: 6px 0;
  font-size: 0.95rem;
}

#doaList .doa-card p span {
  font-weight: 600;
  color: #40916c;
}

/* Tombol Like */
#doaList .doa-card button {
  background-color: #2d6a4f;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

#doaList .doa-card button i {
  font-size: 1rem;
}

#doaList .doa-card button:disabled {
  background-color: #74c69d;
  cursor: not-allowed;
}

#doaList .doa-card button:hover:not(:disabled) {
  background-color: #1b4332;
  transform: scale(1.03);
}

/* Tombol Load More */
#loadMore {
  display: block;
  margin: 20px auto;
  padding: 12px 20px;
  background-color: #1b4332;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2);
  transition: all 0.3s ease;
}

#loadMore:hover {
  background-color: #2d6a4f;
  transform: scale(1.02);
}

/* Navbar bawah sticky */
.navbar {
  position: sticky;
  bottom: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 99;
  border-top: 1px solid #e9f5ee;
  backdrop-filter: blur(12px);
}

.navbar a {
  color: #1b4332;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: #2d6a4f;
}

.navbar a i {
  font-size: 1.2rem;
}

/* Input & Form Enhancement */
input, textarea, button {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
}

input, textarea {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  outline-color: #2d6a4f;
  background-color: #f0fff9;
  transition: border 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #2d6a4f;
  background-color: #ffffff;
}

button[type="submit"] {
  background-color: #2d6a4f;
  color: white;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #1b4332;
}

/* Judul Bagian */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1b4332;
  margin: 20px 16px 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

/* Program Donasi Section */
.donasi-section {
  padding: 0 16px 16px;
}

.donasi-card {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 5px solid #2d6a4f;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.donasi-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.donasi-card .icon-blue {
  color: #40916c;
  font-size: 1.6rem;
  margin-right: 12px;
}

.donasi-card .icon-green {
  color: #2d6a4f;
  font-size: 1.6rem;
  margin-right: 12px;
}

.donasi-card .icon-arrow {
  margin-left: auto;
  color: #ccc;
  font-size: 1.2rem;
}

.donasi-info h3 {
  font-size: 1.1rem;
  color: #1b4332;
  margin-bottom: 4px;
}

.donasi-info p {
  font-size: 0.9rem;
  color: #525252;
}

/* Modal Form Doa */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background-color: #fff;
  padding: 30px 25px; /* Tambahkan padding lebih lebar agar form tidak mepet */
  border-radius: 16px;
  width: 90%;
  max-width: 420px; /* Sediakan sedikit ruang tambahan */
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #1b4332;
  text-align: center;
}

/* Style untuk form di dalam modal */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Jarak antar field */
}

.modal-content label {
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box; /* Pastikan padding tidak memengaruhi lebar */
}

.modal-content textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-content button[type="submit"] {
  padding: 14px;
  background-color: #2d6a4f;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

#toggleDoaList {
  display: block;
  margin: 24px auto 24px; /* Jarak bawah agar tidak tertutup navbar sticky */
  padding: 12px 24px;
  font-size: 16px;
  background-color: #2d6a4f; /* Warna biru sesuai tema Bootstrap */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#toggleDoaList:hover {
  background-color: #3ea476;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  #toggleDoaList {
    width: 90%;
    font-size: 14px;
  }
}
