/* Utility Classes */
#color {
  color: #01447a;
  color: #dc151a;
  color: #313131;
}
/* body {
  overflow: hidden !important;
} */
.yaunzhi-navbarx-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 16px;
}

.yaunzhi-navbarx-flex {
  display: flex;
  align-items: center;
}

.yaunzhi-navbarx-justify-between {
  justify-content: space-between;
}

/* Navbar */
.yaunzhi-navbarx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background-color: white;
  padding: 12px 0;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* box-shadow: none; */
}

.yaunzhi-navbarx-nav.scrolled {
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.yaunzhi-navbarx-logo {
  transition: width 0.3s ease-in-out;
}

/* Desktop Menu */
.yaunzhi-navbarx-menu {
  display: none;
  color: white;
  padding-top: 20px;
}

.yaunzhi-navbarx-menu li {
  position: relative;
}

.yaunzhi-navbarx-menu li a {
  color: black;
  padding-top: 20px;
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
}

.yaunzhi-navbarx-menu li a:hover {
  color: #dc151a;
  padding-top: 20px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: #01447a 5px solid;
}

/* Service Dropdown */
.service-dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: black;
  min-width: 600px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
  /* padding: 8px 0; */
}

.dropdown-content a {
  color: #333 !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal !important;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #dc151a;
  color: white !important;
}

.service-dropdown:hover .dropdown-content {
  display: block;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dropdown-contents {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 300px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
  /* padding: 8px 0; */
}

.dropdown-contents a {
  color: #333 !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal !important;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.dropdown-contents a:hover {
  background-color: #dc151a;
  color: white !important;
}

.service-dropdown:hover .dropdown-contents {
  display: block;
  display: grid;
  grid-template-columns: 1fr;
}

.dropdown-arrow {
  margin-left: 5px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.service-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.kej-wordlogo {
  font-size: 20px;
  color: white;
  font-weight: 600;
}

.kej-wordlogo-k {
  font-size: 36px;
  color: white;
  font-weight: 1000;
}

@media screen and (min-width: 1200px) {
  .yaunzhi-navbarx-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    font-size: 18px;
    color: #333;
  }

  .yaunzhi-navbarx-menu a {
    font-weight: bold;
    text-decoration: none;
  }

  .yaunzhi-navbarx-menu a:hover {
    color: #ebebea;
  }

  .yaunzhi-navbarx-donate-btn {
    display: inline-block;
    background-color: #01447a;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
  }

  .yaunzhi-navbarx-donate-btn:hover {
    background-color: #dc151a;
    color: white !important;
    text-decoration: none;
  }

  .yaunzhi-navbarx-mobile-btn {
    display: none;
    text-decoration: none !important;
  }
}

@media screen and (max-width: 1200px) {
  .yaunzhi-navbarx-nav {
    background-color: rgb(255, 255, 255);
  }

  .yaunzhi-navbarx-nav.scrolled {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  .yaunzhi-navbarx-mobile-btn {
    font-size: 28px;
    margin-left: 16px;
    background: none;
    border: none;
    color: #dc151a;
    cursor: pointer;
  }

  .yaunzhi-navbarx-donate-btn {
    display: none;
  }
}

/* Overlay */
.yaunzhi-navbarx-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.yaunzhi-navbarx-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile Menu - Right to Left Animation */
#yaunzhi-navbarx-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 120vh;
  background-color: #ffffff;
  box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  transition: all 0.3s ease-in-out;
  z-index: 50;
  display: none;
}

#yaunzhi-navbarx-mobile-menu.active {
  right: 0;
  display: block;
}

.yaunzhi-navbarx-mobile-logo {
  height: 80px;
}

.yaunzhi-navbarx-close-btn {
  font-size: 48px;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
}

.yaunzhi-navbarx-mobile-nav {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

/* Enhanced mobile menu items */
.yaunzhi-navbarx-mobile-nav li {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dc151a;
  position: relative;
}

.yaunzhi-navbarx-mobile-nav li:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #01447a;
  transition: width 0.3s ease;
}

.yaunzhi-navbarx-mobile-nav li:hover:after {
  width: 100%;
}

.yaunzhi-navbarx-mobile-nav a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 18px;
  display: block;
  font-weight: bold;
  transition: color 0.3s ease;
}

.yaunzhi-navbarx-mobile-nav a:hover {
  color: #01447a;
}

/* Mobile Service Dropdown */
.mobile-service-item {
  position: relative;
}

.mobile-service-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-plus {
  font-size: 30px;
  transition: transform 0.3s ease;
  color: #01447a;
  font-weight: 700;
}

.mobile-service-submenu {
  display: none;
  padding-left: 20px;
  margin-top: 10px;
}

.mobile-service-submenu.active {
  display: block;
}

.mobile-service-submenu a {
  font-size: 16px;
  color: #000000;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.mobile-service-submenu a:hover {
  color: white;
}

.mobile-plus.rotated {
  transform: rotate(45deg);
}

.yaunzhi-navbarx-mobile-donate {
  display: block;
  background-color: #01447a;
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 16px;
}

/* Demo content */
.demo-content {
  height: 200vh;
  padding: 20px;
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.demo-section {
  margin: 50px 0;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
