/* Products Dropdown Menu - Blue Theme with New Typography */

/* Blue Color Palette */
:root {
  --primary-blue: #2563eb;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1d4ed8;
  --secondary-blue: #1e40af;
  --accent-blue: #60a5fa;
  --light-blue: #dbeafe;
  --very-light-blue: #f0f9ff;
  --blue-gradient-start: #e0f2fe;
  --blue-gradient-end: #bae6fd;
}

/* Header Integration */
.header {
  position: relative;
  z-index: 100;
}

.menu-item-has-children.-has-mega-menu {
  position: relative;
}

.menu-item-has-children.-has-mega-menu .mega {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none !important;
  display: block !important;
}

.menu-item-has-children.-has-mega-menu:hover .mega,
.menu-item-has-children.-has-mega-menu.is-active .mega {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto !important;
}

/* Ensure dropdown stays open when hovering over it */
.menu-item-has-children.-has-mega-menu .mega:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto !important;
}

/* Add a small invisible bridge to prevent hover gap */
.menu-item-has-children.-has-mega-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  z-index: 999;
  background: transparent;
}

/* Ensure dropdown doesn't interfere with other menu items */
.nav > li:not(.menu-item-has-children.-has-mega-menu) {
  z-index: 10;
}

/* Hide mobile submenu on desktop */
@media (min-width: 769px) {
  .menu-item-has-children.-has-mega-menu .nav__submenu {
    display: none !important;
  }
}

/* Ensure only one dropdown is visible at a time - but allow hover */
.menu-item-has-children.-has-mega-menu:not(.is-active):not(:hover) .mega {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ensure active dropdown is visible */
.menu-item-has-children.-has-mega-menu.is-active .mega {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Fix Products dropdown z-index to be higher than Platform */
.products-mega {
  z-index: 1001 !important;
}

.platform-mega {
  z-index: 1000 !important;
}

.partners-mega {
  z-index: 999 !important;
}

/* Ensure Products menu item has higher z-index */
.nav > li:first-child.menu-item-has-children.-has-mega-menu {
  z-index: 101 !important;
}

.nav > li:nth-child(2).menu-item-has-children.-has-mega-menu {
  z-index: 100 !important;
}

.nav > li:nth-child(3).menu-item-has-children.-has-mega-menu {
  position: relative !important;
  z-index: 99 !important;
}

/* Ensure Partners menu item has proper positioning - override main.css */
@media (min-width: 992px) {
  .menu .nav > li:nth-child(4).menu-item-has-children.-has-mega-menu {
    position: relative !important;
  }
  
  .menu .nav li.menu-item-has-children.-has-mega-menu .partners-mega {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    transform: translateY(0) !important;
    margin-top: calc(0.75rem - 3px) !important;
  }
  
  /* Add hover bridge for Partners dropdown to prevent gap */
  .menu .nav > li:nth-child(4).menu-item-has-children.-has-mega-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 1rem;
    z-index: 998;
    background: transparent;
    pointer-events: auto;
  }
  
  /* Ensure dropdown stays open when hovering over menu item or dropdown */
  .menu .nav > li:nth-child(4).menu-item-has-children.-has-mega-menu:hover .partners-mega,
  .menu .nav li.menu-item-has-children.-has-mega-menu .partners-mega:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Add proper spacing between menu items to prevent hover conflicts */
.nav > li {
  margin-right: 1rem;
}

.nav > li:last-child {
  margin-right: 0;
}

/* Ensure menu items don't overlap */
.nav > li.menu-item-has-children.-has-mega-menu {
  position: relative;
}

/* Add invisible bridge between menu items to prevent hover gaps */
.nav > li.menu-item-has-children.-has-mega-menu + li.menu-item-has-children.-has-mega-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -0.5rem;
  width: 0.5rem;
  height: 100%;
  background: transparent;
  z-index: 99;
}

/* Prevent header menu disturbance */
.header__bar {
  position: relative;
  z-index: 50;
}

.nav {
  position: relative;
  z-index: 20;
}

.nav > li {
  position: relative;
  z-index: 15;
}

/* Ensure proper stacking context */
.menu-item-has-children.-has-mega-menu {
  z-index: 100;
}

.menu-item-has-children.-has-mega-menu .mega {
  z-index: 1000;
}

/* Smooth transitions for better UX */
.menu-item-has-children.-has-mega-menu .mega {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent layout shift */
.products-mega {
  will-change: transform, opacity;
}

/* Products Mega Menu Container */
.products-mega {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.1);
  padding: 2rem;
  min-width: 800px;
  max-width: 1000px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  overflow: hidden;
  margin-top: 0.5rem;
}

.products-mega::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(59, 130, 246, 0.02));
  border-radius: 16px;
  z-index: 1;
}

.products-mega .mega__menu {
  position: relative;
  z-index: 2;
}

/* Column Layout */
.products-mega .col-4 {
  padding: 0 1rem;
}

.products-mega .col-4:first-child {
  padding-left: 0;
}

.products-mega .col-4:last-child {
  padding-right: 0;
}

/* Section Titles */
.mega__title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem; /* text-lg (18px) - Reduced from 20px */
  font-weight: 600; /* font-semibold */
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
}

.mega__title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
  border-radius: 1px;
}

/* Products List */
.products-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-item {
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.product-item:last-child {
  border-bottom: none;
}

/* Hover effects now handled by .product-link */

/* Product Icons */
.product-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--light-blue), var(--very-light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  flex-shrink: 0;
  box-shadow: 
    0 4px 16px rgba(37, 99, 235, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

/* Icon hover effects now handled by .product-link:hover .product-icon */

.product-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

/* Product Content */
.product-content {
  flex: 1;
  min-width: 0;
}
.header .nav li .product-content a{
  padding:5px 0px 5px 0px !important;
}
.header .nav li .platform-content a{
  padding:5px 0px 5px 0px !important;
}
.product-name {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; /* text-base (16px) - Reduced from 18px */
  font-weight: 600; /* font-semibold */
  color: #1e293b;
  text-decoration: none;
  display: block;
  margin-bottom: 0.125rem;
  line-height: 1.3;
  transition: color 0.3s ease;
  padding-left:0px !important;
}

.product-name:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

.product-description {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8125rem; /* 13px - Reduced from 14px */
  font-weight: 400; /* font-normal */
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Call to Action Section */
.mega__cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--very-light-blue), var(--light-blue));
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.mega__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
  border-radius: 12px;
  z-index: 1;
}

.mega__cta > * {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem; /* text-lg (18px) - H4 Card Titles */
  font-weight: 600; /* font-semibold */
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cta-description {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem; /* text-sm (14px) - Card descriptions, metadata */
  font-weight: 400; /* font-normal */
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem; /* text-sm (14px) */
  font-weight: 500; /* font-medium - Button text */
  line-height: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  color: white;
  text-decoration: none;
}

.cta-button:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .products-mega {
    min-width: 700px;
    max-width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .products-mega {
    min-width: 600px;
    max-width: 95vw;
    padding: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .products-mega .col-4 {
    padding: 0 0.75rem;
  }
  
  .mega__title {
    font-size: 1.125rem; /* text-lg (18px) */
  }
  
  .product-name {
    font-size: 1rem; /* text-base (16px) */
  }
  
  .product-description {
    font-size: 0.8125rem; /* 13px */
  }
}

@media (max-width: 768px) {
  /* Hide mega menu dropdowns on mobile - they will be handled by mobile menu system */
  .products-mega,
  .platform-mega {
    display: none !important;
  }
  
  /* Hide desktop mega menu completely on mobile */
  .menu-item-has-children.-has-mega-menu .mega {
    display: none !important;
  }
  
  /* Ensure mobile menu items work properly */
  .menu-item-has-children.-has-mega-menu > a::after {
    content: '\e907';
    font-family: 'icomoon' !important;
    font-size: 0.625rem;
    font-weight: normal;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Mobile submenu styling */
  .menu-item-has-children.-has-mega-menu .nav__submenu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    transform: none;
    z-index: auto;
  }
  
  /* Mobile submenu items */
  .menu-item-has-children.-has-mega-menu .nav__submenu .nav__submenu_item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .menu-item-has-children.-has-mega-menu .nav__submenu .nav__submenu_item:last-child {
    border-bottom: none;
  }
  
  .menu-item-has-children.-has-mega-menu .nav__submenu .nav__submenu_item > a {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
  }
  
  .menu-item-has-children.-has-mega-menu .nav__submenu .nav__submenu_item > a:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary-blue);
  }
  
  /* Mobile product/platform item styling */
  .mobile-product-item,
  .mobile-platform-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .mobile-product-item:last-child,
  .mobile-platform-item:last-child {
    border-bottom: none;
  }
  
  .mobile-product-item:hover,
  .mobile-platform-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
  }
  
  .mobile-product-icon,
  .mobile-platform-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--light-blue), var(--very-light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
  }
  
  .mobile-product-icon svg,
  .mobile-platform-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .mobile-product-content,
  .mobile-platform-content {
    flex: 1;
    min-width: 0;
  }
  
  .mobile-product-name,
  .mobile-platform-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }
  
  .mobile-product-description,
  .mobile-platform-description {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .products-mega {
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  .mega__title {
    font-size: 0.9375rem; /* 15px */
  }
  
  .product-item {
    padding: 0.5rem 0;
  }
  
  .product-icon {
    width: 36px;
    height: 36px;
  }
  
  .product-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .product-name {
    font-size: 0.875rem; /* text-sm (14px) */
  }
  
  .product-description {
    font-size: 0.75rem; /* 12px */
  }
  
  .mega__cta {
    padding: 1rem;
  }
  
  .cta-title {
    font-size: 0.9375rem; /* 15px */
  }
  
  .cta-description {
    font-size: 0.75rem; /* 12px */
  }
  
  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.75rem; /* 12px */
  }
}

/* Animation for dropdown appearance */
.products-mega {
  animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile-specific animations */
@media (max-width: 768px) {
  .products-mega {
    animation: mobileDropdownSlideIn 0.3s ease-out;
  }
  
  @keyframes mobileDropdownSlideIn {
    from {
      opacity: 0;
      transform: translateY(-100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Hover effects for better interactivity */
.product-item {
  cursor: pointer;
}

.product-item:hover .product-name {
  color: var(--primary-blue);
}

/* Product Link - Full clickable area */
.product-link {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.product-link:hover {
  background: rgba(37, 99, 235, 0.04);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.product-link:hover .product-name {
  color: var(--primary-blue);
}

.product-link:hover .product-icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Focus states for accessibility */
.product-name:focus,
.cta-button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .products-mega {
    border: 2px solid var(--primary-blue);
  }
  
  .product-icon {
    border: 2px solid var(--primary-blue);
  }
  
  .mega__cta {
    border: 2px solid var(--primary-blue);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .products-mega,
  .product-item,
  .product-icon,
  .cta-button,
  .cta-button::before,
  .menu-item-has-children.-has-mega-menu .mega {
    animation: none;
    transition: none;
  }
}

/* Performance optimizations */
.products-mega {
  contain: layout style paint;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.product-item {
  contain: layout style;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  .product-item {
    min-height: 60px;
    padding: 1rem 0;
  }
  
  .product-name,
  .cta-button {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Improved focus states for accessibility */
.product-name:focus,
.cta-button:focus,
.product-item:focus-within {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Better contrast for accessibility */
@media (prefers-contrast: high) {
  .products-mega {
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 0 1px var(--primary-blue);
  }
  
  .product-icon {
    border: 2px solid var(--primary-blue);
  }
  
  .mega__cta {
    border: 2px solid var(--primary-blue);
  }
}

/* Platform Dropdown Styling - Same as Products */
.platform-mega {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.1);
  padding: 2rem;
  min-width: 800px;
  max-width: 1000px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  overflow: hidden;
  margin-top: 0.5rem;
}

.platform-mega::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(59, 130, 246, 0.02));
  border-radius: 16px;
  z-index: 1;
}

.platform-mega .mega__menu {
  position: relative;
  z-index: 2;
}

/* Platform List Styling */
.platform-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.platform-item {
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.platform-item:last-child {
  border-bottom: none;
}

/* Hover effects now handled by .platform-link */

/* Platform Icons */
.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--light-blue), var(--very-light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  flex-shrink: 0;
  box-shadow: 
    0 4px 16px rgba(37, 99, 235, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

/* Icon hover effects now handled by .platform-link:hover .platform-icon */

.platform-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

/* Platform Content */
.platform-content {
  flex: 1;
  min-width: 0;
}

.platform-name {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; /* text-base (16px) - Reduced from 18px */
  font-weight: 600; /* font-semibold */
  color: #1e293b;
  text-decoration: none;
  display: block;
  margin-bottom: 0.125rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.platform-name:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

.platform-description {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8125rem; /* 13px - Reduced from 14px */
  font-weight: 400; /* font-normal */
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Platform Dropdown Responsive Design */
@media (max-width: 1200px) {
  .platform-mega {
    min-width: 700px;
    max-width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .platform-mega {
    min-width: 600px;
    max-width: 95vw;
    padding: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .platform-mega .col-4 {
    padding: 0 0.75rem;
  }
  
  .mega__title {
    font-size: 1.125rem; /* text-lg (18px) */
  }
  
  .platform-name {
    font-size: 1rem; /* text-base (16px) */
  }
  
  .platform-description {
    font-size: 0.8125rem; /* 13px */
  }
}

@media (max-width: 768px) {
  .platform-mega {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-radius: 0;
    margin-top: 0;
    transform: none;
    z-index: 9999;
    overflow-y: auto;
  }
  
  .platform-mega .d-flex {
    flex-direction: column;
  }
  
  .platform-mega .col-4 {
    padding: 0;
    margin-bottom: 1.5rem;
  }
  
  .platform-mega .col-4:last-child {
    margin-bottom: 0;
  }
  
  .mega__title {
    font-size: 1rem; /* text-base (16px) */
    margin-bottom: 1rem;
  }
  
  .platform-item {
    padding: 0.75rem 0;
  }
  
  .platform-icon {
    width: 40px;
    height: 40px;
  }
  
  .platform-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .platform-name {
    font-size: 0.9375rem; /* 15px */
  }
  
  .platform-description {
    font-size: 0.8125rem; /* 13px */
  }
  
  /* Add close button for mobile */
  .platform-mega::after {
    content: '×';
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
  }
  
  .platform-mega::after:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
  }
  
  /* Add backdrop for mobile */
  .platform-mega::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

@media (max-width: 480px) {
  .platform-mega {
    padding: 0.75rem;
  }
  
  .mega__title {
    font-size: 0.9375rem; /* 15px */
  }
  
  .platform-item {
    padding: 0.5rem 0;
  }
  
  .platform-icon {
    width: 36px;
    height: 36px;
  }
  
  .platform-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .platform-name {
    font-size: 0.875rem; /* text-sm (14px) */
  }
  
  .platform-description {
    font-size: 0.75rem; /* 12px */
  }
}

/* Platform Dropdown Animation */
.platform-mega {
  animation: dropdownFadeIn 0.3s ease-out;
}

/* Platform Hover Effects */
.platform-item {
  cursor: pointer;
}

.platform-item:hover .platform-name {
  color: var(--primary-blue);
}

/* Platform Link - Full clickable area */
.platform-link {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.platform-link:hover {
  background: rgba(37, 99, 235, 0.04);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.platform-link:hover .platform-name {
  color: var(--primary-blue);
}

.platform-link:hover .platform-icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Platform Focus States */
.platform-name:focus,
.platform-item:focus-within {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Partners Dropdown Styling - Simple text dropdown */
.partners-mega {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.1);
  padding: 0.75rem 0;
  min-width: 180px;
  max-width: 200px;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 999 !important;
  overflow: hidden;
  margin-top: calc(0.75rem - 3px);
  transform: translateY(0) !important;
}

.partners-mega .mega__menu {
  position: relative;
  z-index: 2;
}

/* Partners List */
.partners-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.partners-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.partners-item:last-child {
  border-bottom: none;
}

.partners-link {
  display: block;
  padding: 0.625rem 1rem;
  text-decoration: none;
  color: #1e293b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.partners-link:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary-blue);
  text-decoration: none;
}

/* Partners Dropdown Responsive Design */
@media (max-width: 768px) {
  .partners-mega {
    display: none !important;
  }
}

/* Partners Dropdown Animation */
.partners-mega {
  animation: dropdownFadeIn 0.3s ease-out;
}