.card-nav-container {
  position: relative;
  left: auto;
  transform: none;
  width: min(94%, 1120px);
  max-width: 1120px;
  z-index: 10;
  box-sizing: border-box;
  margin: 1rem auto 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.site-logo-outside {
  flex: 0 0 auto;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-logo-img,
.nav-logo-img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0.35rem;
}

.card-nav {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  padding: 0;
  background-color: white;
  /* baseColor */
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  will-change: height;
}

.card-nav-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.5rem 0.45rem 0.55rem 1.1rem;
  z-index: 2;
}

.hamburger-menu {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
  color: #000;
  /* menuColor */
}

.hamburger-menu:hover .hamburger-line {
  opacity: 0.75;
}

.hamburger-line {
  width: 30px;
  height: 2px;
  background-color: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    margin 0.3s ease;
  transform-origin: 50% 50%;
}

.hamburger-menu.open .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.card-nav-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.card-nav-cta-button {
  flex: 0 0 auto;
  background-color: #111;
  /* buttonBgColor */
  color: white;
  /* buttonTextColor */
  border: none;
  border-radius: calc(0.75rem - 0.35rem);
  padding: 0 1rem;
  height: 100%;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
}

.card-nav-cta-button:hover {
  background-color: #333;
}

.card-nav-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  padding: 0.5rem;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.card-nav.open .card-nav-content {
  visibility: visible;
  pointer-events: auto;
}

.nav-card {
  height: 100%;
  flex: 1 1 0;
  min-width: 0;
  border-radius: calc(0.75rem - 0.2rem);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 8px;
  user-select: none;
  /* Default colors will be overridden inline or via utility classes if needed */
  background-color: #f0f0f0;
  color: #000;
}

.nav-card-label {
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.nav-card-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-card-link {
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.nav-card-link:hover {
  opacity: 0.75;
}

.nav-card-link-icon {
  width: 1em;
  height: 1em;
}

@media (max-width: 768px) {
  .card-nav-container {
    width: calc(100% - 1.5rem);
    gap: 0.5rem;
  }

  .site-logo-outside {
    height: 60px;
  }

  .site-logo-img,
  .nav-logo-img {
    width: 44px;
    height: 44px;
  }

  .card-nav-top {
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
  }

  .hamburger-menu {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .card-nav-cta-button {
    height: 40px;
    padding: 0 0.75rem;
    font-size: 13px;
  }

  .card-nav-content {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0.5rem;
    bottom: 0;
    justify-content: flex-start;
  }

  .nav-card {
    height: auto;
    min-height: 60px;
    flex: 1 1 auto;
    max-height: none;
  }

  .nav-card-label {
    font-size: 18px;
  }

  .nav-card-link {
    font-size: 15px;
  }
}

/* Custom Nav Card Colors */
.nav-card-explore { background-color: #0D0716; color: #fff; }
.nav-card-connect { background-color: #271E37; color: #fff; }
