 /* ═══════════════════════════════════════
   MEGA MENU — FULL WIDTH DROPDOWN
   ═══════════════════════════════════════ */
 :root {
    --navy: #0a1628;
    --navy-mid: #111d32;
    --navy-light: #162033;
    --blue: #2563eb;
    --blue-bright: #3b82f6;
    --blue-glow: #60a5fa;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --amber: #f59e0b;
    --coral: #f43f5e;
    --white: #ffffff;
    --violet: #8b5cf6;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --font-display: "Poppins", sans-serif;
    --font-body: "Poppins", sans-serif;
    --max-w: 1280px;
    --radius: 12px;
    --radius-lg: 20px;
}
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.25);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mega-backdrop.active { opacity: 1; pointer-events: auto; }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 999;
  box-shadow: 0 25px 80px rgba(10,22,40,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.solutions-menu {
  position: absolute;
  top: 100%;
  left: 20%;
  min-width:480px;grid-template-columns:1fr 1fr;
  background: var(--white);
  z-index: 999;
  box-shadow: 0 25px 80px rgba(10,22,40,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.solutions-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.solutions-menu a:hover {
    background: var(--gray-50);
    color: var(--blue);
}
.solutions-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s;
}

.solutions-menu a .dm-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Tab bar */
.mega-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-100);
  padding: 0 40px;
  background: var(--gray-50);
}
.mega-tab {
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.mega-tab:hover { color: var(--gray-700); }
.mega-tab.active {
  color: var(--bs-blue);
}
.mega-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--bs-blue);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-tab.active::after { transform: scaleX(1); }

/* Tab panels */
.mega-panel {
  display: none;
  padding: 32px 40px 36px;
  animation: megaFadeIn 0.25s ease;
}
.mega-panel.active { display: block; }

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── VENDOR GRID ── */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.vendor-category-title {
  grid-column: 1 / -1;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 10px 12px 6px;
  margin-top: 4px;
}
.vendor-category-title:first-child { margin-top: 0; }

.vendor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.15s ease;
}
.vendor-item:hover {
  background: var(--gray-50);
  color: var(--blue);
  transform: translateX(2px);
}
.vendor-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.vendor-item:hover .vendor-icon { transform: scale(1.08); }
.vendor-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1px;
}
.vendor-info p {
  font-size: 11.5px;
  color: var(--gray-400);
  line-height: 1.3;
}

/* ── SKILLING GRID ── */
.skilling-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 380px;
}

.skilling-sidebar {
  border-right: 1px solid var(--gray-100);
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skilling-cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px 0 0 10px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
  white-space: nowrap;
  position: relative;
}
.skilling-cat-btn:hover { color: var(--blue); background: var(--gray-50); }
.skilling-cat-btn.active {
  color: var(--blue);
  background: #eff6ff;
  font-weight: 600;
}
.skilling-cat-btn.active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--bs-blue);
  border-radius: 3px 0 0 3px;
}
.skilling-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.skilling-content {
  padding-left: 28px;
}
.skilling-subcategories {
  display: none;
  animation: megaFadeIn 0.2s ease;
}
.skilling-subcategories.active { display: block; }
.skilling-subcategories h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.skilling-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.skilling-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.15s;
}
.skilling-link:hover { background: var(--gray-50); color: var(--bs-blue); }
.skilling-link::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
  transition: background 0.15s;
}
.skilling-link:hover::before { background: var(--blue); }

/* Promo card in mega menu */
.mega-promo {
  margin-top: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mega-promo-text h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 4px;
}
.mega-promo-text h4 em {
  font-style: italic;
  color: var(--cyan);
}
.mega-promo-text p {
  font-size: 12.5px;
  color: var(--gray-400);
}
.mega-promo .btn-sm {
  padding: 9px 20px;
  font-size: 12.5px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.mega-promo .btn-sm:hover { background: #1d4ed8; transform: translateY(-1px); }

/* View All row */
.mega-footer-row {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-footer-row a {
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.mega-footer-row a:hover { gap: 10px; }
.mega-footer-row .quick-tags { display: flex; gap: 6px; }
.mega-footer-row .qtag {
  padding: 5px 12px;
  background: var(--bs-gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 11.5px;
  color: var(--gray-500);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
}
.mega-footer-row .qtag:hover { background: var(--bs-blue); color: white; border-color: var(--bs-blue); }


/* ═══════════════════════════════════════
   MOBILE MEGA MENU
   ═══════════════════════════════════════ */
  .hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.hamburger span {
    width: 18px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 9998;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.active { display: flex; flex-direction: column; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.mobile-close {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--gray-200);
  background: none; cursor: pointer; font-size: 22px; color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
}

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Mobile tabs */
.mobile-mega-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-100);
  padding: 0 20px;
  background: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-mega-tab {
  flex: 1;
  padding: 14px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  position: relative;
  text-align: center;
  transition: color 0.2s;
}
.mobile-mega-tab.active { color: var(--blue); }
.mobile-mega-tab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s;
}
.mobile-mega-tab.active::after { transform: scaleX(1); }

.mobile-panel {
  display: none;
  padding: 16px 20px 32px;
}
.mobile-panel.active { display: block; }

.mobile-vendor-section {
  margin-bottom: 20px;
}
.mobile-vendor-section-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 8px 0 8px;
}
.mobile-vendor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.15s;
}
.mobile-vendor-item:hover { background: var(--gray-50); }

/* Mobile accordion for skilling */
.mobile-skill-accordion {}
.mobile-skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  transition: color 0.15s;
  text-align: left;
}
.mobile-skill-header:hover { color: var(--blue); }
.mobile-skill-header .chevron {
  margin-left: auto;
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.25s;
}
.mobile-skill-header.active .chevron { transform: rotate(180deg); }
.mobile-skill-header.active { color: var(--blue); border-bottom-color: var(--blue); }

.mobile-skill-body {
  display: none;
  padding: 8px 0 8px 40px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-skill-body.active { display: block; }
.mobile-skill-body a {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}
.mobile-skill-body a:hover { color: var(--blue); background: var(--white); }

/* Mobile extra links */
.mobile-extra-links {
  display: none;
  flex-direction: column;
  padding: 10px 0;
}

.mobile-extra-links a {
  display: block;
  padding: 10px;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

.toggle-btn {
  width: 100%;
  padding: 12px;
  background: #333;
  color: #fff;
  border: none;
  font-size: 16px;
  text-align: left;
}

.mobile-extra-links a:last-child { border-bottom: none; }

.mobile-cta-bar {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  background: var(--white);
}
.mobile-cta-bar .btn { flex: 1; justify-content: center; text-align: center; padding: 12px 16px; }
@media (min-width: 1025px) and (max-width: 1325px) {
    .mega-menu-wrapper {
        left: -237px !important;
        width: 950px !important;}
}
@media (max-width: 1024px) {
    .mega-menu-wrapper {
    position: absolute;
    top: 120%;
    left: -240px;
    width: 90vw;
      }
}

@media (max-width: 991px) {
    .hamburger {
        display: flex;
    }
    nav, .mega-menu-wrapper, .login-button, .cart-button {

        display: none !important;

      }
      
}
