.navbar {
  background: #fff;
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-light .navbar-brand {
  color: #521138;
}
.navbar-light .navbar-nav .nav-link {
  color: #521138;
  font-size: 17px !important;
  font-weight: 500;
}
.navbar-light .navbar-brand:focus,
.navbar-light .navbar-brand:hover {
  color: #521138;
}
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  color: #fff;
}
.navbar-light .navbar-nav .nav-link {
  transition: 0.3s;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 14px;
}
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  background: #521138;
  transition: 0.3s;
  border-radius: 5px;
}
.dropdown-item:focus,
.dropdown-item:hover {
  color: #fff;
  text-decoration: none;
  background-color: #521138 !important;
  border-radius: 5px;
  padding: 8px;
}
.sm-menu {
  border-radius: 0px;
  border: 0px;
  top: 97%;
  box-shadow: rgba(173, 173, 173, 0.2) 1px 3px 4px 0px;
}

.dropdown-item {
  color: #3c3c3c;
  font-size: 14px;
  padding: 8px;
}

.margin-top{
  margin-top: 3px;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #521138;
}
.navbar-toggler {
  outline: none !important;
}
.navbar-tog {
  color: #521138;
}
.megamenu-li {
  position: static;
}

.megamenu {
  position: absolute;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -22px;
  padding-top: 40px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(10px); 
  border-radius: 10px solid white;
}


.megamenu h6 {
  margin-left: 12px;
  font-size: 18px;
  text-decoration: none; 
  border-bottom: 1.5px solid #521138; 
  display: inline-block; 
  color: #521138;
}


.megamenu i {
  width: 20px;
}

/* -------Request Button----------- */
.nav-req-btn {
  border: 2px solid #521138;
  outline: none;
  background-color: #521138;
  color: #eee;
  border-radius: 7px;
  margin-left: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease-out;
}

.nav-req-btn:hover {
  background-color: #fff;
  color: #521138;
  border-color: #521138;
}
/* -------Get started Button----------- */
.nav-get-btn {
  border: 2px solid #521138;
  background-color: transparent;
  outline: none;
  color: #521138;
  border-radius: 7px;
  margin-left: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease-out;
}

.nav-get-btn:hover {
  background-color: #521138;
  color: #fff;
  border-color: #521138;
}


/* Mobile Styles - Stacked Dropdown Menu */
@media (max-width: 991px) {
  /* Ensure the dropdown items are displayed vertically on mobile */
  .navbar-nav .nav-item.dropdown .dropdown-menu {
    position: relative;
    width: 100%; /* Make the dropdown take full width */
    padding: 10px 0;
    background-color: transparent;
    box-shadow: none;
  }

  /* Make each dropdown item display as block */
  .navbar-nav .nav-item.dropdown .dropdown-item {
    display: block; /* Stack items vertically */
    width: 100%; /* Full width for each item */
    padding: 12px 15px;
    text-align: left; /* Align text to the left */
    background-color: #fff;
    border-radius: 0;
    transition: 0.3s;
  }

  /* Add hover and focus effects for the dropdown items */
  .navbar-nav .nav-item.dropdown .dropdown-item:hover,
  .navbar-nav .nav-item.dropdown .dropdown-item:focus {
    color: #fff;
    background-color: #521138 !important;
  }

  /* Adjust the dropdown heading (Digital Signage, Webcasting) */
  .navbar-nav .nav-item.dropdown > a {
    padding-right: 15px;
    padding-left: 15px;
    font-size: 16px;
    color: #521138;
    font-weight: 500;
  }

  /* Collapse MegaMenu on mobile */
  .megamenu {
    display: none; /* Hide mega menu images and complex structures */
    margin-top: 0px;

  }

  /* For items inside dropdown (stack them one by one) */
  .navbar-nav .nav-item.dropdown .dropdown-menu > div {
    display: block;
    width: 100%;
  }

  /* Buttons (Request Demo and Free Trial) */
  .nav-req-btn,
  .nav-get-btn {
    /* width: 100%;  */
    text-align: center;
    margin-top: 10px;
  }

  /* Hide mega menu image on mobile */
  .megamenu img {
    display: none;
  }
}
