        /* Fullscreen menu on mobile */
        @media (max-width: 1024px) {
            #navbarNavDropdown {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(255, 255, 255, 0.8);
                display: none;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                z-index: 50;
            }
            .close-menu-button {
                position: absolute;
                top: 20px;
                right: 20px;
                background: #000;
                border: none;
                color: #fff;
                font-size: 2rem;
                transition: transform 0.3s ease, opacity 0.3s ease;
                border-radius: 50%;
                width: 30px; /* Increased to better fit the 'X' */
                height: 30px; /* Increased to better fit the 'X' */
                display: flex; /* Use flexbox to align the content */
                align-items: center; /* Center content vertically */
                justify-content: center; /* Center content horizontally */
                line-height: 0; /* Prevent extra spacing from line height */
            }
            .close-menu-button:hover {
                transform: scale(1.2);
                opacity: 0.8;
            }
            #navbarNavDropdown ul {
                text-align: center;
            }
            #navbarNavDropdown ul li a {
                color: #1b1b1b;
                font-size: 1.3rem;
                margin-bottom: 1rem;
            }
            #navbarNavDropdown ul li button {
                color: #1b1b1b;
                font-size: 1.3rem;
                margin-bottom: 1rem;
            }
            .dropdown-menu {
                position: relative;
                background-color: rgba(255, 255, 255, 0.8); 
                color: #1a1a1a;
                border: none;
                box-shadow: none;
                display: none;
                flex-direction: column;
                align-items: center;
                padding: 1rem;
            }
        }

        /* Desktop submenu styling */
        @media (min-width: 1024px) {
            .dropdown-menu {
                display: none;
                position: absolute;
                left: 0;
                top: 100%;
                width: 300px;
                background-color: #ffffff; 
                color: #000;
                border: 1px solid #e5e7eb;
                border-radius: 0.5rem;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            }

            .dropdown-toggle.open + .dropdown-menu {
                display: block;
            }

            /* Sub-submenu styling */
            .dropdown-menu .dropdown-menu {
                left: 100%;
                top: 0;
                margin-left: 10px;
                border: 1px solid #e5e7eb;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            }
        }