/* Warna hijau islami untuk navbar dan elemen utama */
.bg-primary {
  background-color: #009146 !important;
}

/* Warna hijau untuk teks dan ikon */
.text-primary,
.navbar-brand,
.social-icons a {
  color: #009146 !important;
}

/* Efek hover pada menu navbar */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff !important;
  background-color: #007a36 !important;
  border-radius: 0.25rem;
}

.bg-custom-green {
  background-color: #007a36 !important;
}

/* Ubah warna teks navbar */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link i {
  color: #e1ef0b !important;
}

/* Animasi transisi untuk link dan tombol */
a,
button,
.nav-link {
  transition: color 0.3s cubic-bezier(0.4,0,0.2,1), background-color 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}


/* Efek khusus nav-link agar transisi lebih halus */
.nav-link {
  transition: 
    color 0.25s cubic-bezier(0.4,0,0.2,1), 
    background-color 0.25s cubic-bezier(0.4,0,0.2,1), 
    box-shadow 0.25s cubic-bezier(0.4,0,0.2,1),
    border-radius 0.25s cubic-bezier(0.4,0,0.2,1),
    padding 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* Jika background hijau (#007a36), text jadi kuning (#e1ef0b) */
.navbar-brand:hover,
.navbar-brand:focus {
  color: yellow;
  text-shadow: 0 2px 8px #009146, 0 0px 16px #e1ef0b;
}
.navbar-brand:hover i,
.navbar-brand:focus i {
  text-shadow: 0 2px 8px #009146, 0 0px 16px #e1ef0b;
}
.bg-custom-green .nav-item:hover .nav-link,
.bg-custom-green .nav-item:focus .nav-link {
  color: yellow;
  background-color: lab(90.06% -21.81 87.34 / 0.616) !important;
}
.bg-custom-yellow {
  background-color:#e1ef0b;
}
/* Jika background kuning (#e1ef0b), text jadi hijau (#007a36) */
.bg-yellow {
  background-color: #e1ef0b !important;
}
.text-yellow {
  color: #e1ef0b !important;
  text-shadow: 0 2px 8px #009146, 0 0px 16px #e1ef0b;
}
.text-green {
  color: #3b9112 !important;
  text-shadow: 0 2px 5px yellow, 0 0px 5px #e3dd1699;
}
.bg-yellow a:hover,
.bg-yellow a:focus,
.bg-yellow .nav-link:hover,
.bg-yellow .nav-link:focus,
.bg-yellow button:hover,
.bg-yellow button:focus {
  color: #007a36 !important;
  background-color: #009146 !important;
  box-shadow: 0 4px 16px rgba(0,145,70,0.18), 0 1.5px 4px rgba(0,0,0,0.08);
  border-radius: 0.35rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition:
    color 0.25s cubic-bezier(0.4,0,0.2,1),
    background-color 0.25s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.25s cubic-bezier(0.4,0,0.2,1),
    border-radius 0.25s cubic-bezier(0.4,0,0.2,1),
    padding 0.25s cubic-bezier(0.4,0,0.2,1);
}


/* Footer */
.site-footer {
  background: #007a36;
  color: #fff;
  margin-top: 3rem;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.site-footer .footer-brand span {
  color: #e1ef0b;
  font-size: 1.2rem;
}
.site-footer .footer-link {
  color: #e1ef0b;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
  color: #fff;
  text-decoration: underline;
}
.site-footer .footer-social a {
  color: #e1ef0b;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus {
  color: #fff;
}
.site-footer .container {
  max-width: 1100px;
}
@media (max-width: 600px) {
  .site-footer .container {
    flex-direction: column !important;
    text-align: center;
  }
  .site-footer .footer-brand,
  .site-footer .footer-links,
  .site-footer .footer-social {
    margin-bottom: 0.5rem;
  }
}
/* Hero Section & Carousel */
.hero-section {
    background: linear-gradient(rgba(0,145,70,0.7), rgba(0,145,70,0.7)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 0;
    text-align: center;
    position: relative;
}
.hero-section .container {
    position: relative;
    z-index: 2;
    padding: 0;
    max-width: 100%;
}
.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.hero-section p {
    font-size: 20px;
    margin-bottom: 35px;
}
.btn-primary {
    background: #ffd700;
    color: #009146;
    padding: 14px 38px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.btn-primary:hover {
    background: #009146;
    color: #ffd700;
}
.carousel {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,145,70,0.08);
    background: #fff;
    left: 50%;
    right: 0;
    transform: translateX(-50%);
}
.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition:
    opacity 0.5s cubic-bezier(.4,0,.2,1),
    transform 0.5s cubic-bezier(.4,0,.2,1),
    visibility 0.5s;
  transform: translateX(100%);
}
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: translateX(0);
  position: relative;
}
.carousel-slide.to-left {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
}
.carousel-slide.to-right {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
}
.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0; /* Pastikan gambar juga tidak punya border radius */
}
.carousel-caption1 {
    position: absolute;
    top: 0;
    width: 100% !important;
    height: 100%;
    transform: none;
    background: rgb(40 53 46 / 64%);
    color: #fff;
    padding: 0;
    border-radius: 0;
    max-width: 100% !important;
    box-shadow: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.carousel-caption1 h2 {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 8px #009146, 0 0px 16px #434436;
}
.carousel-caption1 p {
   text-shadow: 0 2px 8px #3a3a31, 0 0px 16px hsl(123, 91%, 49%);
   font-size: 18px;
   }
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,145,70,0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.carousel-control:hover {
    background: #ffd700;
    color: #009146;
}
.carousel-control.prev { left: 16px; }
.carousel-control.next { right: 16px; }

@media (max-width: 900px) {
    .carousel, .carousel-slide, .carousel-slide img {
        height: 220px;
        max-width: 100vw;
    }
    .carousel-slide {
        height: 220px;
    }
    .carousel-caption1 {
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 12px 16px;
        font-size: 14px;
        max-width: 95%;
        text-align: center;
    }
    .carousel-caption1 h2 { font-size: 18px; }
    .carousel-caption1 p { font-size: 14px; }
    .carousel-control {
        opacity: 0;
        pointer-events: none;
    }
    .carousel:active .carousel-control,
    .carousel:focus .carousel-control,
    .carousel.touching .carousel-control {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Donation Card Image */
.donation-img {
  position: relative;
  width: 100%;
  height: 236px;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
  display: block;
}

/* Donation Card Overlay */
.donation-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(3 86 43 / 72%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* border-radius: 0 0 0.5rem 0.5rem; */
  z-index: 2;
  transition: background 0.3s;
}
.donation-card-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 145, 70, 0.9);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 0 0.5rem 0.5rem 0;
  z-index: 2;
  padding: 2rem 1rem;
  transition: background 0.3s;
}

/* Card container must be relative for overlay */
.card.shadow-sm {
  position: relative;
  overflow: hidden;
}

/* Pastikan parent col-md-4 relative agar overlay benar */
.col-md-4 {
  position: relative;
}

/* Responsive for small screens */
@media (max-width: 600px) {
  .donation-img {
    height: 160px;
  }
  .donation-card,
  .donation-card-body {
    padding: 1rem 0.5rem;
    font-size: 0.95rem;
  }
}

.saldo-emas {
  /* color: #e1ef0b; */
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  letter-spacing: 1px;
  display: block;
}

.btn-donation {
  background: #e1ef0b;
  color: #007a36;
  border: none;
  font-weight: 600;
  border-radius: 0.35rem;
  box-shadow: none;
  text-decoration: none !important;
  transition: 
    background 0.2s, 
    color 0.2s, 
    box-shadow 0.2s;
}

.donation-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
@media (max-width: 767.98px) {
  .donation-text {
    height: auto;
    justify-content: flex-start;
    text-align: center;
    align-items: center;
  }
}

.jadwal-card {
  background: #fff;
  border-radius: 0.7rem;
  border: 1.5px solid #e1ef0b;
  color: #007a36;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer;
}
.jadwal-card:hover, .jadwal-card:focus {
  box-shadow: 0 8px 32px rgba(0,145,70,0.18), 0 3px 12px rgba(225,239,11,0.25);
  transform: translateY(-4px) scale(1.04);
  border-color: #009146;
  background: #e1ef0b;
  color: #007a36;
}
.jadwal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}
.jadwal-time {
  font-size: 1.4rem;
  color: #009146;
  letter-spacing: 1px;
}

/* Navbar fixed effect */
.navbar.fixed-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  animation: slideDown 0.3s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
@keyframes slideDown {
  from { top: -80px; opacity: 0; }
  to { top: 0; opacity: 1; }
}
/* Tambahkan padding-top pada body saat navbar fixed */
body.with-fixed-navbar {
  padding-top: 70px; /* Sesuaikan dengan tinggi navbar Anda */
}

.donation-row {
    background: linear-gradient(90deg, #c0cd1a4f 0%, #1bff001c 100%);
    border-radius: 0.7rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 3px 12px rgba(0,145,70,0.15);
}

@media (max-width: 767.98px) {
  .donation-row {
    background: linear-gradient(180deg, #c0cd1a8c 0%, #009146a8 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 3px 12px rgba(0,145,70,0.15);
  }
  .bg-custom-green .nav-item:hover .nav-link,
.bg-custom-green .nav-item:focus .nav-link {
  color: yellow;
  background-color: lab(90.06% -21.81 87.34 / 0.616) !important;
  padding: 5px 10px;
  box-shadow: 0 0px 10px #4ff70982;
}
}

/* Modal Donasi Custom */
.modal-donasi {
  border-radius: 1rem;
  background: linear-gradient(-180deg, #e1ef0b 0%, #009146 100%);
  color: #e7f705;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 3px 12px rgba(0,145,70,0.15);
}
.modal-donasi .modal-header {
  border-bottom: none;
  background: transparent;
}
.modal-donasi .modal-title {
  color: #007a36;
}
.modal-donasi .form-label {
  font-weight: 600;
}
.modal-donasi .form-control {
  border-radius: 0.4rem;
  border: 1.5px solid #009146;
  box-shadow: none;
}
.modal-donasi .form-control:focus {
  border-color: #e1ef0b;
  box-shadow: 0 0 0 0.15rem rgba(225,239,11,0.15);
}
.modal-donasi .btn-donation {
  background: #e1ef0b;
  color: #007a36;
  font-weight: 600;
  border-radius: 0.35rem;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.modal-donasi .btn-donation:hover,
.modal-donasi .btn-donation:focus {
  background: #007a36;
  color: #fff;
  box-shadow: 0 8px 32px rgba(225,239,11,0.35), 0 3px 12px rgba(0,0,0,0.18);
}

.carousel-caption1 {
  position: absolute;
  bottom: 1.25rem;
  padding-top:1.25rem;
  padding-bottom: 1.25rem;
  color: #e4ff00;
  text-align: center;
}
.carosal-text {
	 color: #e4ff00;
  text-align: center;
}

/* Animasi & efek hover untuk transaksi donasi */
.list-group-item {
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.nav-item:hover,
.nav-link:hover,
.nav-item:focus-visible,
.nav-link:focus-visible,
.list-group-item:hover,
.list-group-item:focus-visible, {
  background: hsl(63.68deg 91.2% 49.02%);
  box-shadow: 0 0px 10px #4ff70982;
  transform: translateY(-2px) scale(1.01);
  z-index: 1;
  position: relative;
}

.btn-donation:hover,
.btn-donation a,
.btn-donation:focus-visible {
  background: lab(90.67% -26.21 87.87);
  box-shadow: 0 0px 10px #4ff70982;
  transform: translateY(-2px) scale(1.05);
  z-index: 1;
  position: relative;
}

/* Efek animasi background dari dalam keluar mengikuti kotak pada hover JADWAL SHOLAT SAJA */
.jadwal-card {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.jadwal-card::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 0;
  background: linear-gradient(0deg, #cdfa0565 0%, #21fa0954 100%);
  opacity: 0.7;
  transition: height 0.4s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}
.jadwal-card:hover::before,
.jadwal-card:focus-visible::before {
  height: 100%;
}