/* Existing CSS */
nav.sdpcapital-navbar {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 64px;
  position: fixed;
  background: #fff;
  z-index: 999999;
  left: 0;
  right: 0;
  top: 0;
  justify-content: space-between;
  padding: 0 64px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  font-family: 'Montserrat-Bold';
}

.space_logo {
  flex: 1;
}

.logo__wrap {
  display: block;
  background: url(../images/capital-partners.png) center center / contain no-repeat;
    width: 105px;
    height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;    font-size: 15px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  font-size: 15px;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #eee;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}
.dropdown-toggle::after {
  display: none;
}
.dropdown-toggle span {
	padding-left: 0.4rem;
}
/* --- New Mobile Nav CSS --- */

/* Hamburger Icon Styling */
.hamburger {
  display: none; /* Hidden by default on larger screens */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000000; /* Ensure it's above other elements */
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #333; /* Color of your hamburger lines */
  transition: all 0.3s ease-in-out;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
  /* Adjust this breakpoint as needed */
  nav.sdpcapital-navbar {
    padding: 0 20px; /* Adjust padding for smaller screens */
  }

  .nav-links {
    display: none; /* Hide nav links by default on mobile */
    flex-direction: column; /* Stack links vertically */
    position: absolute;
    top: 64px; /* Position below the header */
    left: 0;
    width: 100%;
    background: #fff; /* Background for the mobile menu */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    z-index: 999998; /* Below the main navbar */
  }

  .nav-links.active {
display: flex
;
        gap: 0;
  }

  .nav-links a,
  .nav-links .dropdown {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .nav-links .dropdown-menu {
    position: static; /* Adjust dropdown for mobile */
    width: 100%;
    box-shadow: none;
    padding: 0;
            border: 0;
  }

  .nav-links .dropdown-menu li a {
    padding: 8px 0;
  }

  .hamburger {
    display: block; /* Show hamburger icon on mobile */
  }

  /* Hamburger animation for 'X' icon */
  .hamburger.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}