/* Mobile Menu Styles */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
}
.mobile-menu-panel.active {
  right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #30aadd;
}
.mobile-menu-header .mobile-logo img {
  max-height: 50px;
  width: 120px;
}
.mobile-menu-close {
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.mobile-menu-close:hover {
  background: #f5f5f5;
  transform: rotate(90deg);
}
.mobile-menu-close svg {
  width: 20px;
  height: 20px;
  stroke: #333;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
  padding: 0;
  list-style: none;
  margin: 0;
}
.mobile-menu-nav li {
  border-bottom: 1px solid #eee;
}
.mobile-menu-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.mobile-menu-nav li a:hover,
.mobile-menu-nav li.current > a {
  background: #f8f9fa;
  color: #30aadd;
}
.mobile-menu-nav li.current > a {
  border-left: 3px solid #30aadd;
}

/* Dropdown Toggle */
.mobile-dropdown-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.mobile-dropdown-toggle.active {
  transform: rotate(180deg);
}
.mobile-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  stroke: #666;
}

/* Submenu */
.mobile-submenu {
  display: none;
  padding: 0;
  list-style: none;
  background: #f8f9fa;
  margin: 0;
}
.mobile-submenu.active {
  display: block;
}
.mobile-submenu li {
  border-bottom: 1px solid #eee;
}
.mobile-submenu li:last-child {
  border-bottom: none;
}
.mobile-submenu li a {
  padding: 14px 20px 14px 35px;
  font-size: 15px;
  font-weight: 400;
  color: #555;
}
.mobile-submenu li a:hover {
  color: #30aadd;
  background: #f0f0f0;
}

/* Mobile Menu Contact Info */
.mobile-menu-contact {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}
.mobile-menu-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: #555;
  font-size: 14px;
}
.mobile-menu-contact-item:last-child {
  margin-bottom: 0;
}
.mobile-menu-contact-item i {
  width: 35px;
  height: 35px;
  background: #30aadd;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.mobile-menu-contact-item a {
  color: #555;
  text-decoration: none;
}
.mobile-menu-contact-item a:hover {
  color: #30aadd;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  width: 45px;
  height: 45px;
  background: #30aadd;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Social Links */
.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  border-top: 1px solid #eee;
}
.mobile-menu-social a {
  width: 40px;
  height: 40px;
  background: #30aadd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.mobile-menu-social a:hover {
  background: #2590ba;
  transform: translateY(-3px);
}
.mobile-menu-social a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Show hamburger on mobile */
@media only screen and (max-width: 991px) {
  /* Hide header top bar on mobile */
  .main-header .header-top {
    display: none !important;
  }
  .hamburger-btn {
    display: flex;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  .main-menu .navbar-header .navbar-toggle {
    display: none !important;
  }
  .main-menu .navbar-collapse {
    display: none !important;
  }
  /* Fix header layout - single row */
  .main-header .header-bottom {
    padding: 10px 0;
  }
  .main-header .header-bottom .container {
    padding: 0 15px;
    position: relative;
  }
  .main-header .header-bottom .container > .clearfix {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
  }
  .main-header .logo-box {
    width: auto !important;
    float: none !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .main-header .logo-box .logo {
    margin: 0 !important;
    padding: 0 !important;
  }
  .main-header .logo-box .logo img {
    max-height: 55px;
    width: auto;
  }
  .main-header .nav-outer {
    display: none !important;
  }
  .main-header .menu-area {
    display: none !important;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
