.tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Sticky navbar */
.navbar.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #016533;
  /* ganti sesuai warna sticky navbar */
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  padding-top: 0;
  padding-bottom: 0;
}

/* Logo sticky muncul */
.navbar.sticky .sticky-logo {
  display: block !important;
}

/* Logo sticky ukuran penuh tinggi navbar */
.sticky-logo img {
  height: 70px !important;
  /* default tinggi navbar */
}

/* Sembunyikan logo utama saat sticky (opsional kalau ada logo lain di dalam navbar) */
.navbar.sticky .logo {
  display: none;
}

.sticky-logo {
  position: absolute;
  /* agar tidak ganggu layout awal */
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

/* Saat sticky aktif, logo muncul dengan transisi */
.navbar.sticky .sticky-logo {
  position: relative;
  /* gabung ke layout pas sticky */
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

/* Overlay dasar */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* Saat aktif */
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Kotak pencarian */
.search-box {
  text-align: center;
  color: white;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.search-box h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Tombol close */
.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
}

/* Placeholder putih transparan */
.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-input {
  border: none;
  border-bottom: 2px solid white;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  padding: 10px 5px;
  outline: none;
  width: 100%;
}

.card-img-top {
  height: 200px;
  /* atur sesuai kebutuhan */
  object-fit: cover;
  /* agar gambar tetap proporsional dan tidak gepeng */
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* maksimal 2 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-img-top-statistik {
  height: 300px;
  /* atur sesuai kebutuhan */
  object-fit: cover;
  /* agar gambar tetap proporsional dan tidak gepeng */
}

.footer-top {
  
  /* Ganti dengan path gambar yang kamu unduh */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  z-index: 1;
}

.footer-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-body.map {
  position: relative;
  height: 500px;
  padding: 0;
  overflow: hidden;
}

#map-leaflet {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

#info-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.3);
  border-left: 1px solid #ccc;
  padding: 20px;
  overflow-y: auto;
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

#info-sidebar.show {
  transform: translateX(0);
}

#info-sidebar .close-btn {
  cursor: pointer;
  font-weight: bold;
  font-size: 22px;
  position: absolute;
  top: 10px;
  right: 10px;
  user-select: none;
  z-index: 1003;
}

#info-sidebar img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  height: 160px;
}

#info-sidebar h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  margin-bottom: 15px;
}

.btn-group a,
.btn-group button {
  padding: 8px 20px;
  border-radius: 5px;
  border: 1px solid #007bff;
  background-color: #007bff;
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-group a:hover,
.btn-group button:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #333;
}

.info-icon {
  width: 25px;
  text-align: center;
  font-size: 18px;
  margin-right: 10px;
  color: #007bff;
}

.info-text {
  flex: 1;
}

[data-n-id='8'] rect {
  fill: #016e25;
  display: none;
}

[data-l-id='[1_split_assitant_0][8]'] path {
  stroke: red;
  display: none;
}

.page-title {
  position: relative !important;
  overflow: hidden !important;
  background-image: url('https://www.kehutanan.go.id/s/uploads/bg_b1a8a31387.webp');
  background-size: cover !important;
  background-position: center !important;
  min-height: 300px !important;
  padding-top: 100px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.container-particles {
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Mencegah partikel keluar */
}

.tsparticles-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  z-index: 0;
}

.tsparticles-page canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none;
  /* Agar klik tetap ke elemen lain */
}

.page-title .container {
  position: relative !important;
  z-index: 2 !important;
}

.title-text {
  position: relative;
  z-index: 2;
  color: white;
  /* Warna teks jika background gelap */
}

/* Breadcrumb atau menu title */
.title-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 0.5rem;
  font-size: 1rem;
}

.title-menu li {
  color: #fff;
}
.title-underline {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  height: 0.25rem;
  width: 5rem;
  background-image: linear-gradient(to right, #ff7b7b, #b91c1c); /* merah muda ke merah tua */
  border-radius: 9999px;
}

  #map-leaflet {
  width: 100%;
  height: 500px;
  position: relative;
}


#info-bottombar.show {
  display: block;
}



#info-bottombar {
  width: 50%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  bottom: 0;
  background: white;
  padding: 15px;
  display: none;
  z-index: 1000;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

#info-bottombar.show {
  display: block;
}

.bottom-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.left-table {
  flex: 1 1 60%;
}

.right-info {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-box {
  font-size: 24px;
  font-weight: bold;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 8px;
  text-align: center;
}


.custom-pagination .page-link {
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 40px;
  text-align: center;
  margin: 0 5px;
  color: #333;
  border: 1px solid #ddd;
  transition: 0.3s ease;
}

.custom-pagination .page-item.active .page-link {
  background-color: #016533;
  border-color: #016533;
  color: white;
}

.custom-pagination .page-link:hover {
  background-color: #e9ecef;
  text-decoration: none;
}

  .hover-shadow:hover {
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1) !important;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}
  .icon-large {
  font-size: 3rem;
}

#viewer {
  height: 70vh;
  width: 100%;
}

.pdf-container{
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 125%;
}

.card-hover {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Efek "shine" */
.card-hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: skewX(-20deg);
}

/* Animasi saat hover */
.card-hover:hover::after {
  animation: shine 0.75s forwards;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}



/*detail siaran pers */
 /* Custom Colors */
.bg-custom-dark {
  background-color: #021e4e;
  position: relative;
  height: 75vh;
}
.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  filter: blur(2.5px);
  background: linear-gradient(
    270deg,
    rgba(0, 69, 142, 0) 52.22%,
    rgb(0, 69, 142) 100%
  );
  z-index: 0;
}
.breadcrumb-custom a {
  color: #b0bec5; /* light slate */
  text-decoration: none;
}
.breadcrumb-custom a:hover {
  color: #ef8761; /* highlight color */
  text-decoration: underline;
}
.breadcrumb-custom span.separator {
  margin: 0 0.5rem;
  color: #b0bec5;
}
.text-primary-border {
  color: #b0bec5;
}
.text-tertiary-light-blue {
  color: #89c9f2;
}
.text-netral-gray-05 {
  color: #555555;
}
.btn-play {
  background-color: #3a7bd5;
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}
.btn-play:hover {
  background-color: #2a5aad;
  color: white;
}
.btn-play svg {
  width: 1.2rem;
  height: 1.2rem;
}
h3.title {
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.truncate-text {
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  display: inline-block;
}
figure img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
}
@media (min-width: 992px) {
  figure img {
    height: 35rem;
  }
}

@media (max-width: 767.98px) {
  .header-uper .right-side,
  .header-uper .contact-info,
  .header-uper .link-btn {
    text-align: left !important;
    justify-content: flex-start !important;
    margin-bottom: 1rem;
  }

  .header-uper .contact-info .item {
    text-align: left !important;
  }
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6); /* warna hitam semi-transparan */
  color: #fff;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}


#loader .spinner-border {
  width: 2rem;
  height: 2rem;
}


.custom-marker .marker-icon {
  width: 40px;
  height: 40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-marker .marker-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}







