/* ========================================
   ELEGANT SLIDE-OUT MENU STYLES
   ======================================== */

/* Hamburger Toggle Button */
.elegant-menu-toggle {
  position: fixed;
  top: 40px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #006a8e;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elegant-menu-toggle:hover {
  transform: scale(1.1) rotate(90deg);
}

.elegant-menu-toggle:active {
  transform: scale(0.95);
}

.elegant-hamburger-line {
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
}

.elegant-menu-toggle.is-active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Menu Overlay */
.elegant-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 106, 142, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.elegant-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Slide Panel */
.elegant-slide-panel {
  position: fixed;
  top: 0;
  left: -500px;
  width: 500px;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
}

.elegant-slide-panel.is-open {
  left: 0;
}

/* Smooth Scrollbar */
.elegant-slide-panel::-webkit-scrollbar {
  width: 8px;
}

.elegant-slide-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.elegant-slide-panel::-webkit-scrollbar-thumb {
  background: #006a8e;
  border-radius: 10px;
}

/* Menu Header */
.elegant-menu-header {
  padding: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.elegant-menu-close {
  width: 50px;
  height: 50px;
  background: #006a8e;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.elegant-menu-close:hover {
  transform: rotate(90deg) scale(1.1);
}

.elegant-menu-close:active {
  transform: rotate(90deg) scale(0.9);
}

/* Menu Body */
.elegant-menu-body {
  flex: 1;
  padding: 0 40px 40px;
}

/* Menu List */
.elegant-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.elegant-menu-list > li {
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-100px);
  animation: elegantSlideIn 0.6s ease forwards;
}

.elegant-slide-panel.is-open .elegant-menu-list > li:nth-child(1) {
  animation-delay: 0.1s;
}

.elegant-slide-panel.is-open .elegant-menu-list > li:nth-child(2) {
  animation-delay: 0.2s;
}

.elegant-slide-panel.is-open .elegant-menu-list > li:nth-child(3) {
  animation-delay: 0.3s;
}

.elegant-slide-panel.is-open .elegant-menu-list > li:nth-child(4) {
  animation-delay: 0.4s;
}

.elegant-slide-panel.is-open .elegant-menu-list > li:nth-child(5) {
  animation-delay: 0.5s;
}

.elegant-slide-panel.is-open .elegant-menu-list > li:nth-child(6) {
  animation-delay: 0.6s;
}

.elegant-slide-panel.is-open .elegant-menu-list > li:nth-child(7) {
  animation-delay: 0.7s;
}

.elegant-slide-panel.is-open .elegant-menu-list > li:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes elegantSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.elegant-menu-list > li > a {
  display: block;
  padding: 18px 25px;
  color: #2d3748;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: transparent;
}

.elegant-menu-list > li > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 106, 142, 0.1);
  transition: left 0.4s ease;
  z-index: -1;
}

.elegant-menu-list > li > a:hover::before {
  left: 0;
}

.elegant-menu-list > li > a:hover {
  color: #006a8e;
  padding-left: 35px;
}

.elegant-menu-list > li > a::after {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.elegant-menu-list > li > a:hover::after {
  opacity: 1;
  right: 20px;
}

/* Active/Current Menu Item */
.elegant-menu-list > li.current-menu-item > a,
.elegant-menu-list > li.current_page_item > a {
  background: rgba(0, 106, 142, 0.15);
  color: #006a8e;
  font-weight: 700;
}

/* Submenu Styles */
.elegant-menu-list .sub-menu {
  list-style: none;
  /* padding: 10px 0 10px 20px;
  margin: 8px 0 0 0; */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.elegant-menu-list li.menu-item-has-children.is-expanded .sub-menu {
  max-height: 500px;
  opacity: 1;
}

.elegant-menu-list .sub-menu li {
  margin-top: 10px;
}

.elegant-menu-list .sub-menu a {
  display: block;
  padding: 12px 20px;
  color: #4a5568;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.elegant-menu-list .sub-menu a:hover {
  color: #006a8e;
  padding-left: 30px;
  background: rgba(0, 106, 142, 0.08);
}

/* Parent menu item with children */
.elegant-menu-list li.menu-item-has-children > a {
  padding-right: 55px;
}

.elegant-menu-list li.menu-item-has-children > a::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: transform 0.3s ease;
}

.elegant-menu-list li.menu-item-has-children.is-expanded > a::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Menu Footer */
.elegant-menu-footer {
  padding: 30px 40px;
  border-top: 2px solid rgba(0, 106, 142, 0.1);
  background: rgba(0, 106, 142, 0.05);
}

.elegant-menu-social {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.elegant-menu-social a {
  width: 50px;
  height: 50px;
  background: #006a8e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elegant-menu-social a:hover {
  transform: translateY(-8px) scale(1.15);
}

.elegant-menu-social a:active {
  transform: translateY(-4px) scale(1.05);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .elegant-slide-panel {
    width: 100%;
    left: -100%;
  }
  
  .elegant-menu-toggle {
    top: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .elegant-menu-body {
    padding: 0 25px 25px;
  }
  
  .elegant-menu-footer {
    padding: 25px;
  }
  
  .elegant-menu-list > li > a {
    font-size: 18px;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .elegant-menu-toggle {
    width: 50px;
    height: 50px;
    top: 15px;
    right: 15px;
  }
  
  .elegant-hamburger-line {
    width: 24px;
  }
  
  .elegant-menu-list > li > a {
    font-size: 17px;
    padding: 14px 18px;
  }
  
  .elegant-menu-social a {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Accessibility - Focus States */
.elegant-menu-toggle:focus,
.elegant-menu-close:focus,
.elegant-menu-list a:focus,
.elegant-menu-social a:focus {
  outline: 3px solid #006a8e;
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  .elegant-menu-toggle,
  .elegant-menu-overlay,
  .elegant-slide-panel {
    display: none !important;
  }
}
