/*MENU*/
.nav-item{
  padding: 0 5px;
}

.navbar .nav-link {
  transition: 0.2s;
  border-radius: 8px;
}

.navbar .nav-link.active {
  background: linear-gradient(135deg, #198754, #20c997);
  color: white !important;
  padding: 6px 20px;
  box-shadow: 0 4px 10px rgba(25,135,84,0.3);
}

.navbar .nav-link:hover {
  /*background: rgba(25,135,84,0.1);*/
  background: rgba(255,193,7,0.5);
  color: black !important;
}


/* GLASS CARD */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: white;
}


/* ITEM LIST GLASS */
.glass-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  color: white;
}

.glass-item span {
  font-weight: 600;
}


/* ACTIVE PRAYER */
.glass-item.active {
  background: linear-gradient(
    90deg,
    rgba(255,193,7,0.25),
    rgba(255,193,7,0.08)
  );

  border-left: 4px solid #ffc107;
  border-radius: 10px;

  box-shadow: 0 0 12px rgba(255,193,7,1.35);
}


/* BUTTON override kecil */
.btn-light {
  background: rgba(255,255,255,0.9);
  border: none;
}


/* Desktop tetap normal */
.glass-card {
  position: relative;
}


/*
.hero {
  background: 
    linear-gradient(
      90deg,
      rgba(0, 50, 0, 1) 0%,
      rgba(0, 80, 0, 1.6) 20%,
      rgba(0, 50, 0, 0.2) 70%,
      rgba(0, 0, 0, 0) 100%
    ),
    url('https://images.unsplash.com/photo-1584551246679-0daf3d275d0f?q=80&w=1600');

  background-size: cover;
  background-position: center;
  color: green;
  min-height: 520px;
  display: flex;
  align-items: center;
}
*/


/*
.hero-carousel {
    position: relative;
}

.hero-carousel .carousel-item {
    height: 500px;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,.75),
        rgba(0,0,0,.25)
    );
}

.carousel-overlay {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
    max-width: 600px;
}

.carousel-overlay h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 8%;
}

@media (max-width: 992px) {

    .hero-carousel .carousel-item {
        height: 350px;
    }

    .carousel-overlay {
        left: 25px;
        right: 25px;
    }

    .carousel-overlay h1 {
        font-size: 2rem;
    }

    .carousel-overlay p {
        font-size: 1rem;
    }
}
*/


/* HERO */
.hero {
  color: white;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero {
  position: relative;
  overflow: hidden;
}


/* HERO BACKGROUND CAROUSEL */
.hero-bg-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-carousel .carousel-inner,
.hero-bg-carousel .carousel-item {
  height: 100%;
}

.hero-bg-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* OVERLAY HIJAU */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  /*
  background:
    linear-gradient(
      90deg,
      rgba(0,50,0,1) 0%,
      rgba(0,80,0,.9) 20%,
      rgba(0,50,0,.25) 70%,
      rgba(0,0,0,0) 100%
    );
  */
}


/* semua isi hero di atas carousel */
.hero .container {
  position: relative;
  z-index: 2;
}


/* CARD JADWAL FLOAT */
.prayer-card {
  border-radius: 16px;
}


/* ICON BULAT */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #198754;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* FOOTER */
.footer {
  background: linear-gradient(
    180deg,
    #0f5132,
    #064e3b
  );

  color: white;
}


/* CARD HOVER */
.card-hover:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}


/* SPACING GLOBAL */
.section-gap {
  margin-top: 32px;
}

.card {
  border-radius: 14px;
}


/* BOX BAWAH */
.feature-box {
  border-radius: 16px;
  padding: 24px;
  height: 100%;

  transition: all 0.25s ease;

  border: none;
}


/* WARNA VARIASI */
.feature-1 {
  background: #e8f5ee;
}

.feature-2 {
  background: #e7f0ff;
}

.feature-3 {
  background: #fff4e5;
}


/*
.feature-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
*/


/* ICON */
.feature-icon {
  width: 52px;
  height: 52px;

  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;

  margin-bottom: 14px;
}

.feature-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}


/* WARNA ICON */
.icon-green {
  background: #198754;
  color: white;
}

.icon-blue {
  background: #0d6efd;
  color: white;
}

.icon-orange {
  background: #fd7e14;
  color: white;
}


/* HOVER EFFECT */
.feature-box:hover {
  transform: translateY(-6px);

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}


/* RAPIIIN SPACING KEGIATAN */
.kegiatan-wrapper {
  padding: 16px;
  background: white;
  border-radius: 14px;
}


/* =====================================================
   WIDGET JADWAL SHOLAT
   ===================================================== */

.prayer-widget {
  transition: all 0.4s ease;
}


/* MODE MINIMIZED */
.prayer-widget.minimized {
  position: fixed;

  bottom: 20px;
  right: 20px;

  width: 240px;
  height: 350px;

  padding: 12px 14px;

  z-index: 9999;

  border-radius: 16px;

  background: rgba(20, 60, 40, 0.92);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.18);

  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}


/* kecilkan list */
.prayer-widget.minimized .glass-item {
  font-size: 11px;
  padding: 4px 0;
}


/* hanya tampilkan 3 item */
.prayer-widget.minimized .glass-item:nth-child(n+4) {
  display: none;
}


/* tombol */
.prayer-widget.minimized .btn {
  font-size: 11px;
  padding: 5px 10px;
}


/* header */
.prayer-widget.minimized h6 {
  font-size: 13px;
  margin-bottom: 6px;
}


/* NEXT PRAYER */
.next-prayer-box {
  background: rgba(25,135,84,0.25);

  border: 1px solid rgba(255,255,255,0.18);

  border-radius: 12px;

  padding: 10px 12px;

  -webkit-backdrop-filter: blur(10px);

  color: #fff;
}


/* floating mode */
.prayer-widget.minimized .next-prayer-box {
  background: rgba(25,135,84,0.6);
}


/* =====================================================
   RESPONSIVE PRAYER WIDGET
   ===================================================== */

@media (max-width: 768px) {

  .prayer-widget.minimized {
    position: fixed;

    left: 12px;
    right: 12px;
    bottom: 12px;

    height: 56px;

    display: flex;
    align-items: center;

    padding: 10px 14px;

    border-radius: 16px;

    background: rgba(20, 60, 40, 0.95);

    backdrop-filter: blur(18px);

    z-index: 9999;
  }


  /* SEMBUNYIKAN SEMUA */
  .prayer-widget.minimized ul,
  .prayer-widget.minimized h6,
  .prayer-widget.minimized #locationText,
  .prayer-widget.minimized .btn {
    display: none;
  }


  /* TAMPILKAN NEXT PRAYER */
  .prayer-widget.minimized .next-prayer-box {
    display: flex;

    width: 100%;

    justify-content: space-between;
    align-items: center;

    background: transparent;

    border: none;

    padding: 0;
  }


  .prayer-widget.minimized .next-prayer-box strong {
    font-size: 14px;
    margin-top: 15px;
  }


  .prayer-widget.minimized .next-prayer-box span {
    font-size: 14px;

    font-weight: 600;

    min-width: 130px;

    text-align: right;

    margin-top: 15px;
  }
}


/* =====================================================
   KEGIATAN
   ===================================================== */

.sidebar-item {
  border-radius: 10px;
  transition: 0.2s;
}

.sidebar-item:hover {
  background: #f2cb5b;
  transform: translateX(3px);
}


/* ACTIVE STATE */
.sidebar-item.active {
  background: #198754;

  color: white !important;

  box-shadow: 0 6px 15px rgba(25,135,84,0.25);
}

.sidebar-item.active i {
  color: white !important;
}

.sidebar-item.active span {
  font-weight: 600;
}


/* =====================================================
   KATEGORI
   ===================================================== */


/*
.kegiatan-thumb {
  width: 210px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f1f1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.kegiatan-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kegiatan-thumb img {
  transition: transform 0.3s ease;
}

.kegiatan-card:hover .kegiatan-thumb img {
  transform: scale(1.08);
}
*/


.kegiatan-thumb {
  width: 210px;

  aspect-ratio: 7 / 6;

  flex-shrink: 0;

  border-radius: 12px;

  overflow: hidden;

  background: #f1f1f1;
}


.kegiatan-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;
}


.kegiatan-thumb img {
  transition: transform 0.3s ease;
}


.kegiatan-card:hover .kegiatan-thumb img {
  transform: scale(1.08);
}


/* BADGE */
.badge-category {
  display: inline-block;

  background: #198754;

  color: white;

  font-size: 11px;

  padding: 2px 10px;

  border-radius: 5px;
}

.badge-pengajian {
  background: #198754;
}

.badge-sosial {
  background: #0d6efd;
}

.badge-kajian {
  background: #fd7e14;
}


/* =====================================================
   PROFIL
   ===================================================== */


/* SIDEBAR */
.list-group-item {
  border-radius: 10px;
  transition: 0.2s;
}


.list-group-item:hover {
  background: #f2cb5b;
  transform: translateX(3px);
}


/* ACTIVE STATE */
.list-group-item.active {
  background: #198754;

  color: white !important;

  box-shadow: 0 6px 15px rgba(25,135,84,0.25);
}


/*
  Ketika cursor berada di active menu,
  warnanya berubah kuning.
*/
.list-group-item.active:hover {
  background: #f2cb5b;

  color: black !important;

  box-shadow: 0 6px 15px rgba(25,135,84,0.25);
}


.list-group-item.active i {
  color: white !important;
}


.list-group-item.active span {
  font-weight: 600;
}


.list-group-item.active:hover span,
.list-group-item.active:hover i {
  color: black !important;
}


/* =====================================================
   FOTO PENGURUS / GALERI
   ===================================================== */


/* Kotak foto */
.gallery-box {
  width: 100%;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  border-radius: 10px;

  background: #f1f1f1;

  position: relative;
}


/* Gambar */
.gallery-box img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  cursor: pointer;

  transition: transform 0.3s ease;
}


/* Hover foto */
.gallery-box:hover img {
  transform: scale(1.05);
}


/* =====================================================
   LIGHTBOX FOTO
   ===================================================== */

#lightbox {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.90);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 99999;

  padding: 20px;
}


/* Foto dalam lightbox */
#lightbox img {
  max-width: 90%;

  max-height: 85vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 10px;

  box-shadow: 0 10px 40px rgba(0,0,0,0.5);

  animation: galleryZoom 0.3s ease;
}


/* Tombol close */
.close-btn {
  position: absolute;

  top: 20px;
  right: 30px;

  font-size: 40px;

  line-height: 1;

  color: white;

  cursor: pointer;

  z-index: 100000;

  transition: 0.2s;
}


.close-btn:hover {
  color: #ffc107;

  transform: scale(1.1);
}


/* =====================================================
   ANIMASI LIGHTBOX
   ===================================================== */

@keyframes galleryZoom {

  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }

}


/* =====================================================
   RESPONSIVE FOTO PENGURUS
   ===================================================== */

@media (max-width: 768px) {

  .gallery-box {
    border-radius: 8px;
  }


  #lightbox {
    padding: 10px;
  }


  #lightbox img {
    max-width: 95%;

    max-height: 80vh;
  }


  .close-btn {
    top: 10px;

    right: 18px;

    font-size: 35px;
  }

}

@media (max-width: 768px) {
    .hero {
        aspect-ratio: 1920 / 700;
        min-height: 0;
    }

    .hero-bg-carousel img {
        object-fit: contain;
    }
    .judulx{
      display: none !important;
    }
}

#judulx{
  margin-top: 200px important;
}