  .custom-topbar {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
  }

  .topbar-logo {
    width: 100px;
    height: 25px;
    object-fit: contain;
    display: block;
  }

  .topbar-left {
    min-width: 0;
  }

  .topbar-menu {
    gap: 6px;
  }

  .topbar-link {
    color: #111 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .topbar-link:hover {
    background: #f5f7fa;
    color: #000 !important;
  }

  .topbar-cta {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
  }

  .topbar-cta:hover {
    background: #eef3ff;
    border-color: #cfd8ff;
  }

  .topbar-login {
    background: #111;
    color: #fff !important;
    border: 1px solid #111;
  }

  .topbar-login:hover {
    background: #222;
    color: #fff !important;
  }

  /* Desktop alignment */
  @media (min-width: 992px) {
    .custom-topbar .container-fluid {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: nowrap;
    }

    .topbar-left {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .navbar-collapse {
      flex-grow: 1;
      justify-content: flex-end !important;
    }
  }

  /* Mobile layout */
  @media (max-width: 991.98px) {
    .custom-topbar .container-fluid {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
    }


    .topbar-left {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1 1 auto;
      min-width: 0;
    }

    .navbar-toggler {
      margin-left: auto;
    }

    .navbar-collapse {
      width: 100%;
      margin-top: 10px;
      background: #fff;
      border-top: 1px solid #eee;
      padding-top: 10px;
      padding-bottom: 6px;
    }

    .topbar-menu {
      width: 100%;
      gap: 0;
    }

    .topbar-menu .nav-item {
      width: 100%;
    }

    .topbar-menu .nav-link {
      display: block;
      width: 100%;
      padding: 10px 12px !important;
      border-radius: 8px;
    }

    .topbar-logo {
      width: 88px;
      height: 24px;
    }
  }


.mega-wrapper {
  position: static;
}

.products-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.products-mega-menu {
  display: none;
  position: absolute;
  top: 65px;
  left: 50px;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
  padding: 28px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr ;
  gap: 28px;
  z-index: 9999;
  border: 1px solid #eef0f4;
}

.products-mega-menu.show {
  display: grid;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.overview-col {
  background: linear-gradient(135deg, #f7f8ff, #eef5ff);
  border-radius: 16px;
  padding: 24px;
}

.mega-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.overview-col h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0;
  color: #0f172a;
}

.overview-col p {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 10px;
}

.learn-link {
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.mega-link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.2s ease;
}


.mega-link:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

.mega-link i {
  font-size: 20px;
  color: #2563eb;
  margin-top: 2px;
}

.mega-link strong {
  display: block;
  font-size: 15px;
}

.mega-link small {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}

@media (max-width: 900px) {
  .products-mega-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    width: 100%;
    background: #ffffff;
    padding: 16px;
    margin-top: 12px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
  }

  .topbar-menu {
    width: 100%;
    align-items: stretch !important;
  }

  .topbar-menu .nav-item {
    width: 100%;
  }

  .topbar-link,
  .products-btn {
    width: 100%;
    display: block;
    text-align: left;
    padding: 12px 14px;
  }

  .products-mega-menu {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    padding: 16px;
    margin-top: 8px;
    box-shadow: none;
    border-radius: 14px;
  }

  .products-mega-menu.show {
    display: grid;
  }
}


