/* Mobile Menu Styles */
.site-mobile-menu {
  display: block; /* Changed from none to block */
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999; /* Very high z-index to ensure it's on top */
  width: 280px;
  height: 100%;
  background: #fff !important; /* Force white background */
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  -webkit-overflow-scrolling: touch;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  opacity: 0;
}

.site-mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  display: block !important;
}

/* Overlay when menu is open */
.offcanvas-menu {
  position: relative;
  overflow: hidden;
  width: 100%;
  z-index: 1;
}

.offcanvas-menu:before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998; /* Just below the menu */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.offcanvas-menu:before {
  /* opacity: 1; */
  visibility: visible;
  pointer-events: auto;
}

/* Ensure body doesn't scroll when menu is open */
body.offcanvas-menu {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Force white background for all menu elements */
.site-mobile-menu,
.site-mobile-menu * {
  background-color: #fff !important;
  color: #333 !important;
}

/* Ensure links are visible */
.site-mobile-menu a {
  color: #333 !important;
}

/* Mobile menu header */
.site-mobile-menu-header {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.site-mobile-menu-close {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.2s ease;
}

.site-mobile-menu-close:hover {
  color: #244c41;
}

/* Navigation links */
.site-mobile-menu .site-nav-wrap {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-mobile-menu .site-nav-wrap li {
  position: relative;
  margin: 0;
}

.site-mobile-menu .site-nav-wrap > li {
  border-bottom: 1px solid #f5f5f5;
}

.site-mobile-menu .site-nav-wrap li a {
  display: block;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.site-mobile-menu .site-nav-wrap li a:hover {
  color: #244c41;
}

/* Dropdown menu */
.site-mobile-menu .site-nav-wrap .dropdown {
  display: none;
  padding-left: 15px;
  background-color: #f9f9f9;
  margin: 0 -20px;
  padding: 0 20px 0 35px;
}

.site-mobile-menu .site-nav-wrap .dropdown li {
  border-bottom: 1px solid #eee;
}

.site-mobile-menu .site-nav-wrap .dropdown li:last-child {
  border-bottom: none;
}

.site-mobile-menu .site-nav-wrap .dropdown li a {
  padding: 10px 0;
  font-size: 14px;
  color: #666;
}

/* Active states */
.site-mobile-menu .site-nav-wrap li.active > a {
  color: #244c41;
  font-weight: 500;
}

/* Has children indicator */
.site-mobile-menu .site-nav-wrap .has-children > a {
  position: relative;
  padding-right: 25px;
}

.site-mobile-menu .site-nav-wrap .has-children > a:after {
  content: '\e315';
  font-family: 'icomoon';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.site-mobile-menu .site-nav-wrap .has-children.active > a:after {
  transform: translateY(-50%) rotate(180deg);
}

/* Ensure links are clickable */
.site-mobile-menu .site-nav-wrap a {
  position: relative;
  z-index: 1;
}

/* Prevent body scroll when menu is open */
body.offcanvas-menu {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}