/* Base Navigation Styling
================================================== */
.navigation {
  width: 100%;
  height: auto;
  display: table;
  position: relative;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navigation * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

#navigation .current-menu-item > a {
  color: #8D74A8 !important;
  font-weight: 600;
}

ul#menu-sidebar-practice-menu {
  margin-top: 0;
}

#menu-sidebar-practice-menu .current-menu-item > a {
  text-transform: uppercase;
  font-weight: 600;
}

/* Fixed Wrapper and Animation */
.navigation-fixed-wrapper {
  width: 100%;
  left: 0;
  z-index: 19998;
  will-change: opacity;
}

.navigation-fixed-wrapper.fixed {
  position: fixed !important;
  animation: fade 0.5s ease;
}

@keyframes fade {
  from { opacity: 0.999; }
  to { opacity: 1; }
}

.navigation-fixed-wrapper .navigation {
  margin: 0 auto;
}

.navigation-fixed-placeholder {
  width: 100%;
  display: none;
}

.navigation-fixed-placeholder.visible {
  display: block;
}

/* Utility Classes */
.navigation-hidden {
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute;
  top: -9999px;
}

.align-to-right { float: right; }
.nav-header { float: left; }

.navigation-hidden .nav-header { display: none; }

/* Logo */
.nav-logo img {
  max-width: 400px;
  height: auto;
  display: block;
  padding: 20px 0;
  margin-top: -45px;
}



.nav-logo:focus > img {
  outline: none;
}

.navigation-portrait {
  height: 65px;
}

.navigation-portrait .nav-logo > img {
  height: 65px;
  margin: 0;
  padding: 10px 0 10px 5px;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
  width: 30px;
  height: 30px;
  padding: 6px 2px 0;
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -15px;
  display: none;
  cursor: pointer;
}

.navigation-portrait .nav-toggle {
  display: block;
}

.nav-toggle:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 10px;
  box-shadow: 0 0.5em 0 0 currentColor, 0 1em 0 0 currentColor;
  background-color: currentColor;
}

.header .nav-toggle:before,
.navigation-portrait .nav-toggle:before {
  color: #FFF;
}

.header.active .nav-toggle:before,
.header-interior .nav-toggle:before,
.header-interior.active .nav-toggle:before {
  color: #614180 ;
}

/* Mobile Menu Wrapper */
.navigation-portrait .nav-menus-wrapper {
  width: 320px;
  height: 100%;
  top: 0;
  left: -400px;
  position: fixed;
  background-color: #FFF;
  z-index: 20000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all 0.8s ease;
}

.navigation-portrait .nav-menus-wrapper.nav-menus-wrapper-open {
  left: 0;
}
.navigation-portrait .nav-menus-wrapper.nav-menus-wrapper-right {
  left: auto;
  right: -400px;
}
.navigation-portrait .nav-menus-wrapper.nav-menus-wrapper-right.nav-menus-wrapper-open {
  right: 0;
}

.nav-menus-wrapper-close-button {
  width: 30px;
  height: 40px;
  margin: 10px 7px;
  float: right;
  display: none;
  font-size: 26px;
  color: #000;
  cursor: pointer;
}
.navigation-portrait .nav-menus-wrapper-close-button {
  display: block;
}

/* Main Nav Menu */
.nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0;
}

.navigation-portrait .nav-menu {
  width: 100%;
}

.nav-menu.nav-menu-centered {
  text-align: center;
}

.nav-menu.nav-menu-centered > li {
  float: none;
}

.nav-menu > li {
  display: inline-block;
  float: left;
  margin-bottom: 10px;
  text-align: left;
}

.navigation-portrait .nav-menu > li {
  width: 100%;
  border-top: 1px solid #eee;
  margin: 0;
}

.navigation-portrait .nav-menu > li:last-child {
  border-bottom: 1px solid #eee;
}

.nav-menu > li > a {
  display: inline-block;
  padding: 4px 18px;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  color: #FFF;
  transition: color 0.3s, background 0.3s;
}

.nav-menu > li > a:hover {
  color: #D6C3DE;
}

.nav-menu > li > a.active {
  color: #000;
}
.nav-menu > li > a.active:hover {
  color: #614180;
}

.header-interior .nav-menu > li > a {
  color: #000;
}
.header-interior .nav-menu > li > a:hover,
.header-interior .nav-menu > li > a.active,
.header-interior .nav-menu > li > a.active:hover {
  color: #614180;
}

/* Portrait-specific overrides */
.navigation-portrait .nav-menu > li > a {
  width: 100%;
  padding: 12px 15px 12px 26px;
  color: #000;
}

/* Submenu Indicator (Chevron) */
.submenu-indicator {
  float: right;
  margin-left: 6px;
  margin-top: 12px;
  transition: all 0.3s;
  color: #98d8ff;
}

.navigation-portrait .submenu-indicator {
  width: 54px;
  height: 44px;
  margin-top: 0;
  position: absolute;
  top: 0;
  right: 0;
  text-align: center;
  z-index: 20000;
}

.submenu-indicator-chevron {
  width: 6px;
  height: 6px;
  border-style: solid;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  transition: border 0.3s;
  display: block;
}

.header .submenu-indicator-chevron {
  border-color: transparent #FFF #FFF transparent;
}
.header.active .submenu-indicator-chevron,
.header-interior .submenu-indicator-chevron,
.header-interior.active .submenu-indicator-chevron {
  border-color: transparent #614180 #614180 transparent;
}

.navigation-portrait .submenu-indicator-chevron {
  position: absolute;
  top: 18px;
  left: 24px;
}

.navigation-portrait .submenu-indicator.submenu-indicator-up {
  transform: rotate(-135deg);
}

/* Search Icon */
.nav-search {
  float: right;
  position: relative;
  z-index: 19998;
  background: none;
}

.nav-search-button {
  display: inline-block;
  margin-top: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: 10px;
}

.header .nav-search-button i {
  color: #FFF !important;
}
.header .nav-search-button i.active,
.header-interior .nav-search-button i,
.header-interior .nav-search-button i.active {
  color: #614180 !important;
}
.header .nav-search-button i:hover {
  color: red;
}

/* Search Overlay */
.nav-search-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-search-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.nav-search-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.nav-search-inner .search-logo {
  max-width: 260px;
  height: auto;
  margin-bottom: 20px;
}

.nav-search-inner label {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* Search Form */
.nav-search-overlay form {
  width: 500px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
}

.nav-search-overlay input[type="text"] {
  width: 100%;
  height: 50px;
  margin: 15px 0;
  padding: 0 15px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-search-overlay input[type="text"]:focus {
  border-color: #0066cc;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  outline: none;
}

.nav-search-overlay input[type="submit"] {
  width: 100%;
  height: 50px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: #614180;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.nav-search-overlay input[type="submit"]:hover {
  background-color: #8D74A8;
  box-shadow: 0 4px 10px rgba(141,116,168,0.3);
  transform: scale(1.02);
}

/* Close Button */
.nav-search-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 36px;
  background: none;
  border: none;
  color: #614180;
  cursor: pointer;
}

.nav-search-close-button span {
  display: inline-block;
  transition: transform 0.3s ease;
}
.nav-search-close-button:hover span {
  transform: rotate(360deg);
}
.nav-search-close-button:hover {
  color: #8D74A8;
}

/* Responsive Search */
@media (max-width: 768px) {
  .nav-search-overlay form {
    width: 90%;
    padding: 20px;
  }

  .nav-search-overlay input[type="text"],
  .nav-search-overlay input[type="submit"] {
    font-size: 16px;
  }
}

/* DROPDOWN EXTENSION */
.nav-dropdown {
  min-width: 260px;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  list-style: none;
  z-index: 999;
  white-space: nowrap; /* Fixed typo: "wrap" → "nowrap" */
  background: #FFF; /* Ensure background consistency */
}

.navigation-portrait .nav-dropdown {
  width: 100%;
  position: static;
  left: 0;
}

.nav-dropdown .nav-dropdown {
  left: 100%;
}

/* Dropdown Item Styling */
.nav-dropdown > li {
  width: 100%;
  position: relative;
  text-align: left;
  margin: 0;
}

/* Add border separator between dropdown items */
.nav-dropdown > li:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Light separator */
}

/* Dropdown Links */
.nav-dropdown > li > a {
  width: 100%;
  padding: 15px 20px;
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: normal;
  color:  #614180;
  transition: padding-left 0.3s ease, background 0.3s ease, color 0.3s ease;
  position: relative; /* Needed for pseudo-elements */
}

/* Hover & Focus States */
.nav-dropdown > li:hover > a,
.nav-dropdown > li.focus > a {
  background:  #614180;
  color: #FFF;
  padding-left: 30px; /* Indent on hover */
}

/* Font Awesome Icon on Hover */
.nav-dropdown > li:hover > a::before {
  content: "\f0da"; /* Font Awesome Unicode */
  font-family: "Font Awesome 6 Pro"; /* Ensure correct font */
  font-weight: 900; /* Use solid icon */
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.3s ease;
}

/* Ensure default icon is empty (no flicker issue) */
.nav-dropdown > li > a::before {
  content: ""; 
  position: absolute;
}



/* Dropdown Links */
.navigation-portrait .nav-dropdown > li > a {
  width: 100%;
  padding: 15px 10px 15px 30px;
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: normal;
  color: #117DBF;
  transition: padding-left 0.3s ease, background 0.3s ease, color 0.3s ease;
  position: relative; /* Needed for pseudo-elements */
}

/* Hover & Focus States */
.navigation-portrait .nav-dropdown > li:hover > a,
.navigation-portrait .nav-dropdown > li.focus > a {
  background: #000;
  color: #FFF;
  padding-left: 30px; /* Indent on hover */
}

