
@media (max-width: 991.98px) {
    .navbar-collapse {
      align-items: flex-start !important;
    }
  
    .navbar-nav {
      width: 100%;
      align-items: flex-start;
    }
  
    .navbar-nav .nav-item {
      width: 100%;
    }
  
    .navbar-nav .nav-link {
      width: 100%;
      text-align: left;
      padding: 12px 16px;
      border-bottom: 1px solid #eee;
      font-size: 16px;
    }
    .dropdown-menu {
      display: block;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
      padding: 0;
    }
  
    .nav-item.dropdown.show .dropdown-menu {
      max-height: 400px; 
      padding: 0.5rem 0;
    }
  
    .dropdown-menu .dropdown-item {
      padding: 10px 12px;
      font-size: 15px;
    }
  }
.mobile-nav {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
    z-index: 999;
  }
  
  .mobile-nav .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-nav .logo img {
    height: 40px;
  }
  
  .mobile-nav button {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--main-color);
  }
  
  .mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .mobile-menu.open {
    max-height: 600px; 
    overflow: auto;
  }
  
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
  }
  
  .mobile-menu ul li {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .mobile-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-dropdown > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
  }
  
  .mobile-dropdown.open > ul {
    max-height: 500px;
  }
  
  .mobile-dropdown i.bi-chevron-down {
    margin-left: auto;
  }
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-bottom: 1px solid #eee;
  }
  
  .mobile-logo img {
    height: 70px;
  }
  
  .mobile-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--main-color);
  }
  
  .mobile-search-bar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    display: none;
    animation: slideDown 0.3s ease forwards;
    position: relative; 
    z-index: 2000;      
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .mobile-search-bar.active {
    display: block;
  }
  
  .mobile-search-bar .search-form {
    position: relative;
  }
  
  .mobile-search-bar input {
    width: 100%;
    padding: 10px 38px 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  
  .mobile-search-bar .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
  }
.mobile-search-bar .dropdown-menu {
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  background-color: #fff;
  z-index: 10000;
}
.mobile-dropdown > a i.bi-chevron-down {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.mobile-dropdown.open > a i.bi-chevron-down {
  transform: rotate(180deg);
}

.hamburger {
  width: 24px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--main-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 4px;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.open span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}