.mg-main-navbar {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-bottom: 1px solid #dfe1e7;
  padding: 16px 51px;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Instrument Sans";
  /* width: 100%; */
}

/* Logo Styles */
.mg-logo-container {
  display: flex;
  align-items: center;
}

.mg-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mg-brand-text {
  margin: 0;
  font-size: 24px;
  line-height: 150%;
  font-weight: 700;
  color: #0179ff;
  white-space: nowrap;
}

.mg-zap-icon {
  height: 24px;
  width: 24px;
}

/* Navigation Links */
.mg-nav-container {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 20px;
}

.mg-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f6f8fa;
  border: 1px solid #eceff3;
  border-radius: 100px;
  padding: 2px 3px;
  gap: 24px;
}

.mg-nav-item {
  display: flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 100px;
}

.mg-nav-home {
  background-color: #272835;
}

.mg-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.mg-nav-label {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: #272835;
  white-space: nowrap;
}

.mg-nav-home .mg-nav-label {
  color: #f8fafb;
}

.mg-chevron-icon {
  height: 16px;
  width: 16px;
  display: none;
}

/* Actions Container */
.mg-actions-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mg-cta-button {
  cursor: pointer;
  text-decoration: none;
  padding: 12.5px 23px;
  background-color: #0179ff;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(13, 13, 18, 0.06);
}

.mg-cta-text {
  font-size: 15px;
  line-height: 155%;
  color: #fff;
  font-family: "DM Sans";
  white-space: nowrap;
}

.mg-profile-icon {
  height: 48px;
  width: 48px;
  border-radius: 100px;
  background-color: #0179ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.mg-hamburger {
  display: none;
}

.mg-hamburger img {
  width: 30px;
  height: 30px;
}

.mg-mobile-menu {
  display: none;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
  .mg-nav-container {
    display: none;
  }

  .mg-actions-container{
    display: none;
  }
  
  .mg-hamburger {
    display: block;
  }
  
  .mg-main-navbar {
    padding: 16px 20px;
  }
  
  .mg-actions-container {
    gap: 8px;
  }
  
  .mg-cta-button {
    padding: 8px 16px;
  }
}

@media screen and (max-width: 480px) {
  .mg-cta-text {
    display: none;
  }

  .mg-actions-container{
    display: none;
  }
  
  .mg-profile-icon {
    height: 40px;
    width: 40px;
  }
}


/* Hidden mobile menu by default */
.mobile-menu {
  display: none;
  position: fixed; /* Changed to fixed for better mobile experience */
  top: 0;
  right: 0;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  width: 280px;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
  transform: translateX(0);
}

.mobile-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.mobile-menu ul li {
  padding: 0;
  margin: 8px 0;
  border-bottom: 1px solid #eaeaea;
}

.mobile-menu ul li:last-child {
  border-bottom: none;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-menu ul li a:hover {
  background-color: #f8f9fa;
  color: #2563eb;
  transform: translateX(4px);
}

/* Optional: Add overlay when menu is open */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

/* Add close button styles */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #333;
  top: 50%;
  left: 50%;
  transition: background-color 0.2s ease;
}

.mobile-menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-close:hover::before,
.mobile-menu-close:hover::after {
  background-color: #2563eb;
}