/* mega-menu.css */ /* ... (keep the existing base styles) ... */ /* Dropdown Arrow Styles */ .dropdown-arrow { display: inline-flex; align-items: center; transition: transform 0.3s ease; } .dropdown-arrow svg { display: block; } .dropdown-arrow.active { transform: rotate(180deg); } /* Menu Arrow Styles */ .mega-menu-arrow { position: absolute; top: -8px; width: 16px; height: 16px; background: white; transform: rotate(45deg); border-left: 1px solid rgba(0, 0, 0, 0.1); border-top: 1px solid rgba(0, 0, 0, 0.1); z-index: 1; transition: left 0.3s ease; } /* Update mega menu styles */ .mega-menu { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 100vw; max-width: 100vw; background: white; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); z-index: 1000; padding: 0; border-radius: 3px; margin: 0 calc(-50vw + 50%); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; } .mega-menu.active { display: block; opacity: 1; visibility: visible; } /* Remove old arrow pseudo-elements */ .mega-menu::before, .mega-menu::after { display: none; } /* Adjust wrapper to account for new arrow */ .mega-menu-wrapper { position: relative; max-width: 1400px; margin: 0 auto; background: white; border-radius: 3px; z-index: 2; } /* Navigation link styles */ nav a { display: inline-flex; align-items: center; text-decoration: none; position: relative; } /* Mobile styles */ @media screen and (max-width: 768px) { .mega-menu-arrow { display: none; } .dropdown-arrow { margin-left: auto; /* Push to right side on mobile */ } }