        /* Header Styles */
        .header {
            background-color: #45046a; /* Purple Background */
            color: white;
            padding: 20px 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: auto;
        }
        .navbar-brand {
            color: white;
            font-weight: bold;
            font-size: 24px;
            text-transform: uppercase;
            align-items: center;
                 }
        .navbar-brand img {
            width: 100%;
            height: 100px;
            padding-left: 30px;
            padding-bottom: 20px;
        }
        .navbar-brand span {
            font-family: 'Poppins', sans-serif;
            font-style:italic;
            font-weight: 700;
            font-size: 36px;
            background: linear-gradient(65deg, #ffffff, #ffffff, #ffffff);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
            letter-spacing: 3px;
            position: relative;
            display: inline-block;
            transition: all 0.4s ease-in-out;
        }

        /* 3D Depth Effect */
        .navbar-brand span::after {
            content: "VoucherBoost";
            position: absolute;
            top: 2px;
            left: 2px;
            z-index: -1;
            color: rgba(255, 255, 255, 0.2);
            filter: blur(4px);
        }


/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    width: 600px;
    margin-bottom: 15px;
    position: relative;
    background-color: white;
    border-radius: 50px;
    padding: 0px;
}

/* Ensure the form doesn't add extra space or disrupt the layout */
.search-bar form {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
    border-radius: inherit; /* Inherit the border radius from .search-bar */
}

.search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    border-radius: 50px 0 0 50px; /* Adjust border-radius so it only rounds the left side */
}

.search-bar button {
    background-color: #ed6a00;
    border: none;
    color: white;
    padding: 15px 15px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    cursor: pointer;
    margin-left: -10px; /* Moves button slightly into the input field */
}

.search-bar button:hover {
    background-color: darkorange;
}

        /* Navigation Bar */
        .navbar {
            background-color: #ffffff;
            padding-left: 10px;
            padding-right: 150px;
            position: relative;
            margin-top: -20px; /* Moves it up to overlap */
            z-index: 5;
            box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
            border-radius: 15px;
            margin-left: 100px;
            margin-right: 100px;
            transition: transform 0.3s ease-in-out;
        }
        .nav-container {
            display: flex;
            align-items: start;
            justify-content: space-between;
            width: 100%;
        }
          .nav-links {
            display: flex;
            align-items: center;
            justify-content: space-between; /* Aligns items to the left */
            background-color: #5c2a9d;
            border-radius: 10px;
            padding: 5px 10px;
            flex-grow: 1; /* Takes up available space */
        }
        .nav-item {
            margin-right: 10px;
            position: relative;
        }
        .nav-item a {
            color: #d8d8d8;
            font-size: 16px;
            text-decoration: none;
            padding: 8px 15px;
            display: inline-block;
            transition: all 0.3s ease-in-out;
            white-space: nowrap;
        }
        .nav-item a:hover {
            color: orange;
        }
        .nav-item a.active {
            color: orange;
        }
        /* Underline Effect */
        .nav-item a::after {
            content: "";
            display: block;
            width: 0;
            height: 2px;
            background: orange;
            transition: width 0.3s;
            margin: auto;
        }
        .nav-item a:hover::after {
            width: 100%;
        }
        /* Categories Button */
        .category-btn {
            background-color: #ed6a00;
            color: white;
            border: none;
            margin-left: 180px;

            padding: 8px 15px;
            border-radius: 5px;
            transition: background-color 0.3s;
            display: flex;
            align-items: center;
        }
        .category-btn:hover {
            background-color: rgb(194, 107, 0);
        }
        .category-btn i {
            margin-right: 5px;
        }

        /* Mega Dropdown Styling */
        .mega-dropdown {
            min-width: 520px;
            max-width: 600px; /* Prevents overflow */
            background-color: white;
            white-space: nowrap;
        }

        .dropdown-menu {
            width: 400px;
            max-height: 500px; /* Prevents excessive height */
            overflow-y: auto; /* Enables scrolling */
        }

        .dropdown-item {
            font-size: 15px;
            transition: all 0.3s ease-in-out;

            /* word-break: break-word; Ensures long words wrap properly */
        }

        .dropdown-item:hover {
            background-color: #f8f9fa;
            transform: translateX(5px);
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .category-btn {
                margin-left: 0; /* Adjust for smaller screens */
                width: 100%;
                justify-content: center;
            }
            .mega-dropdown {
                max-width: 100%;
            }
        }
        /* Mobile Menu */
        .mobile-nav-toggle {
            display: none;
            font-size: 24px;
            color: white;
            cursor: pointer;
            position: absolute;
            right: 20px;
        }
        .mobile-nav-toggle:hover {
            color: orange;
        }

        .mobile-nav {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #5c2a9d;
            z-index: 1000;
            padding: 20px;
        }

        .mobile-nav.active {
            display: block;
        }
        .mobile-nav img {
            width: 150px;
            height: 50px;
            margin-bottom: 20px;
        }

        .mobile-nav a {
            color: #d8d8d8;
            font-size: 16px;
            text-decoration: none;
            display: block;
            margin-bottom: 10px;
            font-size: 18px;
            align-items: center ;
        }

        .mobile-nav a:first-child {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
        }



            .header-links {
            display: flex;
            align-items: center;
            }
            .header-links a {
            text-decoration: none;
            color: white;
            margin: 0 10px;
            position: relative;
            font-size: small;
        text-wrap: nowrap;
            }
            .header-links a::after {
            content: "";
            position: absolute;
            width: 80%;
            transform: scaleX(0);
            height: 2px;
            bottom: -2px;
            left: 0;
            background-color: orange;
            transform-origin: bottom right;
            transition: transform 0.25s ease-out;
          }
          .header-links a:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
          }
        @media (max-width: 768px) {
            .navbar-brand img {
            width: 100%;
            height: 90px;
            margin-bottom: 20px;
        }
            .mobile-nav-toggle {
                display: block;
            }

            .nav-links {
                display: none;
            }
            .category-btn {
                display: none;
            }

            .navbar {
                padding: 10px;
                margin: 0;
                border-radius: 0;
            }

            .header {
                flex-direction: column;
                align-items: flex-start;
                padding: 10px;
            }

            .search-bar {
                width: 100%;
                margin: 10px 0;
            }

            .nav-right {
                margin-top: 10px;
            }
        }

           .ui-autocomplete {
              position: absolute;
              z-index: 1000;
              max-height: 200px;
              overflow-y: scroll;
              width: 600px;
              border: 1px solid #ccc;
              border-radius: 5px;

              color: rgb(0, 0, 0);
              box-shadow: 0 4px 6px rgba(159, 10, 192, 0.1);

        }


  #myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color:#45046a ; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
  }

  #myBtn:hover {
    background-color: #555; /* Add a dark-grey background on hover */
  }

.language-selector {

    z-index: auto; /* Ensure it appears above other elements */
}
