.dropdown-menu {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(1px);
  /* border: 1px solid rgba(255, 255, 255, 0.3);   */
  /* background-color: #ffffff;  */
  border: 1px solid rgba(148, 163, 184, 0.555);
  border-radius: 12px;
}

.mm-grid {
  display: grid;
  gap: 1rem;
}

.mm-3 {
  grid-template-columns: repeat(5, minmax(200px, 1fr));
}

.mm-4 {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
}

@media (max-width: 991.98px) {
  .mm-3,
  .mm-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1076px) {
  .mm-3 {
    grid-template-columns: repeat(3, minmax(200px, 1fr)) !important;
  }
}

@media (max-width: 1240px) {
  .mm-3 {
    grid-template-columns: repeat(3, minmax(200px, 1fr)) !important;
  }
}

@media (max-width: 575.98px) {
  .mm-3,
  .mm-4 {
    grid-template-columns: 1fr;
  }
  .dropdown-menu {
    background-color: #ffffff30;
  }
  .mm-title {
    color: #101722 !important;
  }
  .mm-text {
    color: #6f6f6f !important;
  }
}

@media (max-width: 475px) {
    .mm-3 {
    grid-template-columns: repeat(1, minmax(200px, 1fr)) !important;
  }
}

.mm-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.61) !important;
  border: 1px solid rgba(148, 163, 184, 0.555);
  color: #e5e7eb;
  transition: all 0.2s ease;
}

.mm-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.35);
}

.mm-icon {
  flex: 0 0 100px;
  width: 100%;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
  overflow: hidden;
}

.mm-title {
  margin: 0;
  font-weight: 600;
  color: #1f2124 !important;
  font-size: 14px;
}

/* Smooth Transition Dropdown */
.animated-dropdown {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: absolute;
  min-width: 280px;
}

/* Desktop Hover Behavior */
@media (min-width: 992px) {
  .dropdown-hover:hover .animated-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    z-index: 1000;
  }
}

/* Mobile (use Bootstrap default toggle) */
@media (max-width: 991.98px) {
  .dropdown-menu {
    position: static !important;
    width: 100%;
    margin-top: 0.5rem;
    z-index: 999 !important;
    transition: none !important;
  }

  .navbar-expand-lg .navbar-nav .dropdown-menu {
    width: 100% !important;
  }

  .animated-dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    /* default hidden */
  }

  .navbar-collapse ul {
    padding-right: 0px !important;
  }

  .navbar-collapse {
    margin-top: 10px;
    padding-inline: 10px;
    padding-block: 15px;
    z-index: 1000 !important;
  }

  .dropdown.show .animated-dropdown {
    display: block;
    /* show when toggled */
  }
}

.navbar {
  position: relative;
  z-index: 1000;
}
