/* Top Bar Styles - Updated for Light Navbar */
.topbar {
    background: var(--ourgreen1);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-item {
    display: flex;
    align-items: center;
}

.topbar i {
    font-size: 12px;
    opacity: 0.9;
}

/* Responsive topbar */
@media (max-width: 768px) {
    .topbar {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .topbar .row {
        text-align: center;
    }
    
    .topbar-item {
        justify-content: center;
        margin-bottom: 4px;
    }
    
    .topbar .col-md-4 {
        margin-bottom: 8px;
    }
}


/* ================== NAVBAR (Standalone File) ================== */

/* Base Navbar */
.navbar {
  background: #ffffff;
  transition: all 0.3s ease;
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-light .nav-link {
  color: #1a1a1a !important;
  font-weight: 500;
  padding: 8px 16px !important;
  margin: 0 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-light .nav-link:hover {
  color: var(--ourgreen1, #38761d) !important;
  background: rgba(56, 118, 29, 0.1);
  transform: translateY(-1px);
}

.navbar-light .nav-link.active {
  color: var(--ourgreen1, #38761d) !important;
  background: rgba(56, 118, 29, 0.1);
  font-weight: 600;
}

/*.navbar-light .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--ourgreen1, #38761d);
  border-radius: 2px;
}*/

/* Active underline centered properly under each nav item */
.navbar-light .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 40%;
  height: 3px;
  background: var(--ourgreen1, #38761d);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/*optional*/
.navbar-light .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 40%;
  height: 3px;
  background: var(--ourgreen1, #38761d);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}



/* Dropdown Base */
.navbar .dropdown {
  position: relative !important;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.3rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 2000;
}

/* Show dropdown on hover (desktop) */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
    background: transparent;
  }
}

/* Dropdown Items */
.navbar-light .dropdown-item {
  color: #1a1a1a;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 2px 0;
  transition: all 0.25s ease;
  font-weight: 500;
}

.navbar-light .dropdown-item:hover,
.navbar-light .dropdown-item:focus {
  background: var(--ourgreen1, #38761d);
  color: #fff;
  transform: translateX(5px);
}

/* Submenu (Dropdown within Dropdown) */
.navbar .dropdown-menu .dropdown-menu {
  top: 100%;
  left: 0;
  margin-top: 0.3rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: #fff;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu li:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Mobile Dropdowns */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.95);
    margin-left: 0;
  }

  .navbar .dropdown-menu .dropdown-menu {
    margin-left: 1rem;
  }
}












/* ==================== BUTTON STYLES ==================== */
.btn-foundation-nav {
    background: linear-gradient(135deg, var(--ourgreen1), var(--ourgreen2));
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-foundation-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 118, 29, 0.4);
    color: white;
}

.btn-inquire {
    background: linear-gradient(135deg, var(--ourgreen1), var(--ourgreen2));
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 118, 29, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-inquire:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 118, 29, 0.4);
    color: white;
}