/* 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;
    }
}

/* Sticky navbar di bawah top-bar */
#main-navbar {
  position: sticky;
  top: 0;
  z-index: 1030; /* lebih tinggi dari top-bar */
}

/* 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: rgb(9 143 74 / 82%);
  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;
}

/* Gradient hijau-kuning untuk background donation-row */
.donation-row {
  background: linear-gradient(90deg, #fbf50036 0%, #6def0b6e 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(59,145,18,0.08), 0 2px 8px rgba(225,239,11,0.08);
  /* padding: 1.5rem 1rem; */
}
/* Responsive for small screens */
@media (max-width: 770px) {
  .donation-img {
    height: 160px;
  }
  .donation-card,
  .donation-card-body {
    padding: 1rem 0.5rem;
    font-size: 0.95rem;
    border-radius: 0 0 0.5rem 0.5rem;
  }
  .donation-row {
    background: linear-gradient(180deg, #fbf50036 0%, #6def0b6e 100%);
  }
}

/* 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;
}
.form-control:hover,
.form-control:focus{
  box-shadow:0 0 2px 2px #003d1b;
}
.modal-donasi .form-control {
  border-radius: 0.4rem;
  border: 1.5px solid #009146;
}
.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);
}


.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, border-color 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer;
  margin-bottom: 0.5rem;
  min-width: 90px;
}

.jadwal-card .jadwal-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

.jadwal-card .jadwal-time {
  font-size: 1.25rem;
  color: #009146;
  letter-spacing: 1px;
  font-weight: bold;
}

.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;
}

@media (max-width: 768px) {
  .jadwal-card {
    min-width: 70px;
    padding: 0.7rem 0.3rem;
    font-size: 0.95rem;
  }
  .jadwal-card .jadwal-title {
    font-size: 0.98rem;
  }
  .jadwal-card .jadwal-time {
    font-size: 1.08rem;
  }
}
.lokasi{
  color:yellow;
}
.sholat-name{
  color:green;
  font-size:40px;
}
/* Heading jadwal sholat */
.jadwal-sholat h4 {
  font-size: 2rem;
  letter-spacing: 1px;
  color: #e1ef0b;
  text-shadow: 0 2px 8px #f7f9f8, 0 0px 16px #434436;
}

@media (max-width: 768px) {
  .jadwal-sholat h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
}

/* Jadwal Sholat dengan background gambar dan overlay hitam transparan - versi profesional */
.jadwal-sholat {
  position: relative;
  background: url('../images/prayer-bg.jpg') center center/cover no-repeat;
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 3px 12px rgba(0,145,70,0.10);
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 0;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .jadwal-sholat {
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    border-radius: 0.7rem;
  }
}

.jadwal-sholat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65); /* hitam semi transparan */
  z-index: 0;
}

.jadwal-sholat > * {
  position: relative;
  z-index: 1;
}

.display-time {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

/* Font 7-segment digital dari file lokal */
@font-face {
  font-family: 'SevenSegment';
  src: url('./fonts/Seven-Segment.ttf') format('truetype');
  font-display: swap;
}

.display-time #time {
  font-family: 'SevenSegment', 'Courier New', monospace;
  letter-spacing: 5px;
}
/* Rainbow animated text for .display-time dan #time */
.display-time,
.display-time #time {
  background: linear-gradient(170deg, #ff0000, #ff9900, #ffee00, #33ff00, #00ffee, #0066ff, #cc00ff, #ff0000 80%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rainbow-text-move 4s linear infinite;
  font-weight: 700;
  display: flex;
  align-items: center;
}


.countdown {
  font-family: 'SevenSegment', 'Courier New', monospace;
  font-size: 1.5em;
  margin-left: 0.5em;
  letter-spacing: 0.08em;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-text 4s linear infinite;
}

/* Rainbow animated countdown */
#countdown, .countdown {
  font-family: 'SevenSegment', 'Courier New', monospace;
  font-size: 2.2em;
  font-weight: bold;
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffee00, #33ff00, #00ffee, #0066ff, #cc00ff, #ff0000 80%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rainbow-text-move 3s linear infinite;
}

@keyframes rainbow-text-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Shadow kuning-hijau + border hitam saat input sedang diketik (focus) */
.form-control:focus,
textarea.form-control:focus {
  box-shadow: 0 0 8px 2px #e1ef0b99, 0 1.5px 4px #00914633;
  border-color: #111 !important;    /* border hitam */
  border-width: 2px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

/* Animasi hourglass berputar 360deg lalu diam, lalu berputar lagi */
@keyframes hourglass-spin-pause {
  0%   { transform: rotate(0deg);}
  10%  { transform: rotate(360deg);}
  60%  { transform: rotate(360deg);}
  70%  { transform: rotate(0deg);}
  100% { transform: rotate(0deg);}
}

/* Terapkan animasi pada icon hourglass */
.fa-hourglass-half {
  animation: hourglass-spin-pause 7s linear infinite;
  display: inline-block;
  transition: transform 0.3s;
}

/* Kartu jadwal kajian yang akan datang */
.card.bg-light.border-success {
  background-color: #f8ffea !important;
  border: 3px solid #3b9112 !important;
  box-shadow: 0 0 12px #e1ef0b33;
}
.kajian-upcoming {
      position: relative;
      padding: 2px; /* ketebalan border */
      border-radius: 1rem;
      background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
      background-size: 600% 600%;
      animation: border-flow 5s linear infinite;
    }

   .kajian-upcoming .card-body {
      border-radius: 5px;
      background: white;
      padding: 1.5rem;
    }

    @keyframes border-flow {
      0%   { background-position: 0% 0%; }
      100% { background-position: 100% 100%; }
    }



.corner-ribbon {
  width: 150px;
  position: absolute;
  top: 20px;
  left: -40px;           /* dari right:-40px menjadi left:-40px */
  text-align: center;
  line-height: 25px;
  letter-spacing: 1px;
  color: #f8f8f8;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(-45deg); /* dari 45deg menjadi -45deg */
  box-shadow: 0 0 10px rgb(0 0 0 / 66%);
  background: linear-gradient(90deg, red, orange, #00f4ff, green, blue, indigo, violet, red);
  background-size: 600% 600%;
  animation: ribbon-flow 5s linear infinite;
}


    @keyframes ribbon-flow {
      0%   { background-position: 0% 0%; }
      100% { background-position: 100% 100%; }
    }


/* Pastikan menu navbar selalu rata kanan di desktop */
@media (min-width: 992px) {
  .navbar-nav {
    margin-left: auto !important;
    margin-right: 0 !important;
    justify-content: flex-end !important;
    float: none !important;
  }
  .navbar-collapse {
    justify-content: flex-end !important;
  }
}

/* Navbar padding 5px saat mobile */
@media (max-width: 580px) {
 .navbar-expand-lg>.container, .navbar-expand-lg>.container-fluid {
    padding-left: 10px !important;
    padding-right: 5px !important;
  }
  .navbar-collapse {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* Tombol panah ke atas */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: #009146;
  color: #fff;
  border: none;
  outline: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 22px;
  cursor: pointer;
  transition: opacity 0.3s;
}
#scrollToTopBtn:hover {
  background: #e8e508;
  color: #0bef13;
}