/* ================= AF NAVBAR ================= */

.af-navbar {
  background-color: #009833;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
}
.af-navbar {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Brand */
.af-brand img {
  transition: transform 0.3s ease;
}
.af-brand img:hover {
  transform: scale(1.05);
}

/* Links */
.af-link {
  color: #B4E717 !important;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 12px;
  transition: background-color 0.3s ease;
}

.af-link:hover,
.af-link.active {
  background-color: #009833;
  color: #fff !important;
  border-radius: 4px;
}

/* Dropdown */
.af-dropdown {
  background-color: #009833;
  border: 1px solid #2a6b5f;
}

.af-dropdown .dropdown-item {
  color: #B4E717;
  padding: 10px 20px;
}

.af-dropdown .dropdown-item:hover {
  background-color: #2a6b5f;
  color: #fff;
}
/* Back to Top */
.af-back-to-top {
  position: fixed;
  bottom: 100px; /* 👈 appears above WhatsApp */
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #009833;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 998;
}

.af-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.af-back-to-top:hover {
  background-color: #007a2a;
  color: #fff;
  transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 991px) {
  .af-navbar .navbar-collapse.show {
    background-color: #009833;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
  }
}

/* WhatsApp */
.af-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 999;
  text-decoration: none;
}
.af-whatsapp:hover {
  background: #128C7E;
  color: #fff;
}

/* ================= TRANSPARENT NAVBAR (HOMEPAGE) ================= */

.home-page .af-navbar {
  background-color: transparent !important;
  position: absolute;
  top: 0;
  left: 0;
}

/* Ensure text is visible on images */
.home-page .af-link {
  color: #ffffff !important;
}

.home-page .af-link:hover,
.home-page .af-link.active {
  background-color: rgba(0, 152, 51, 0.8);
  color: #fff !important;
}
/* ================= FIX DROPDOWN CLICK ISSUE ================= */

.af-navbar {
  position: relative;
  z-index: 1055 !important; /* higher than carousel & overlays */
}
/* ================= FIX DROPDOWN WHITE BACKGROUND ================= */

/* Entire dropdown box */
.af-navbar .dropdown-menu {
  background-color: #009833 !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
  border-radius: 6px !important;
  padding: 0 !important;
}

/* Dropdown items */
.af-navbar .dropdown-menu .dropdown-item {
  background-color: transparent !important;
  color: #ffffff !important;
  padding: 12px 20px;
  font-weight: 500;
}

/* Hover effect */
.af-navbar .dropdown-menu .dropdown-item:hover {
  background-color: #007a2a !important;
  color: #ffffff !important;
}

