html {
  scroll-behavior: smooth;
}

/* Top Info Bar */
#topInfoBar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1020;
  background-color: #14532d !important;
  color: #fff !important;
  font-size: 1.05rem;
  padding: 14px 0;
  transition: all 0.4s ease;
  border-bottom: 2px solid #000;
  height: 62px; /* Tetap sama */
  opacity: 1;
  visibility: visible;
}

#topInfoBar.hidden {
  opacity: 0;
  visibility: hidden;
}

#topInfoBar i {
  margin-right: 8px;
  color: #c7f0c3;
  font-size: 1.1rem;
}

/* Desktop: kecilkan tinggi & font */
@media (min-width: 992px) {
  #topInfoBar {
    padding: 8px 0;
    font-size: 0.95rem;
    height: 48px;
  }

  /* Sesuaikan juga posisi navbar agar tetap sejajar */
  .navbar-fixed {
    top: 48px;
  }

  body {
    padding-top: 98px; /* 48 top bar + 50 navbar */
  }
}


@media (max-width: 768px) {
  .info-bar-text {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  #topInfoBar {
    font-size: 1rem;
    padding: 16px 0;
  }
}

/* Body offset to accommodate top bar + navbar */
body {
  padding-top: 112px; /* 62px top bar + 50px navbar */
}

/* Navbar Style */
.navbar-fixed {
  position: fixed;
  top: 62px;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Saat TopInfoBar disembunyikan, navbar tetap posisinya di top: 0 */
.navbar-shift-up {
  top: 0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* WA button hilang di tablet ke bawah */
@media (max-width: 1250px) {
  #btnHubungiKami {
    display: none !important;
  }
}

/* Navbar Link Style */
.navbar-nav .nav-link {
  position: relative;
  font-size: 1rem;
  color: #000;
  padding: 10px 16px;
  transition: all 0.3s ease;
}

/* Hover garis bawah */
.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background-color: #198754;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  font-size: 1.04rem;
}

/* Dropdown */
.navbar-nav .dropdown-toggle::after {
  display: none !important;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.navbar-nav .dropdown-icon {
  margin-left: 5px;
  font-size: 0.75rem;
}

.navbar-nav .dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Scroll to Top Button - Kotak dan Modern */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #198754;
  color: white;
  border: none;
  border-radius: 8px;
  width: 45px;
  height: 45px;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  justify-content: center;
  align-items: center;
  display: none; /* Tanpa !important */
  transition: background-color 0.3s, opacity 0.3s;
}

#scrollTopBtn:hover {
  background-color: #14ff5a;
}

#scrollTopBtn {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  display: flex;
}

/* Footer */
.footer {
  background-color: #008004;
  color: #fff;
  padding-top: 50px;
  font-family: 'Segoe UI', sans-serif;
}

.footer .footer-top {
  padding-bottom: 50px;
}

.footer .single-footer h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}

.footer .single-footer h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #fff;
  margin-top: 8px;
}

.footer .single-footer p,
.footer .time-sidual li {
  font-size: 14px;
  line-height: 1.6;
  color: #e4f5e8;
}

.footer .social {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer .social li a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: 0.3s;
}

.footer .social li a:hover {
  background: #006b03;
  color: #fff;
}

.footer .time-sidual {
  padding: 0;
  list-style: none;
}

.footer .time-sidual .day {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.footer .maps-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.2);
}

/* Garis pembatas atas copyright */
.footer-divider {
  height: 2px;
  background-color: #0e52006e;
  opacity: 0.5;
}

/* Copyright */
.footer .copyright {
  background-color: #00a800; /* Warna berbeda dari footer utama */
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 0;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .footer .single-footer {
    text-align: left;
  }

  .footer .social {
    justify-content: flex-start;
  }

  .footer .single-footer h2 {
    font-size: 16px;
  }

  .footer .single-footer p,
  .footer .time-sidual li {
    font-size: 13px;
  }

  .footer .social li a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
