/* General Styling */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  line-height: 1.6;
}

/* Navbar Styling */
.navbar {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    /* background-color: #333; */
    /* padding: 10px; */
    z-index: 998;
    /* height: 60px; */
    padding-right: 4%;
}
/*
.navbar .logo {
  color: #fff;
  font-size: 24px;
  float: left;
  padding-left: 10px;
  line-height: 40px;
} */

.navbar-wrap {
    padding-top: 28px;
    position: absolute;
    left: 0;
    right: 3%;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  float: right;
  display: flex;
  gap: 13px;
}

li#menu-item-37 {
    display: none;
}

.navbar ul li {
  margin-left: 4px;
  margin-right: 4px;
  margin-top: 5px;
  margin-bottom: 5px;
  position: relative;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 5px;
    display: block;
    font-size: 1vw;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'Outfit';
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar ul li a:hover {
  color: #a691bc;
  /* background-color: rgb(255 132 0 / 90%); */
  border-radius: 0px;
  border-bottom: 2px solid #a691bc;
}

/* Triangle next to menu items with children
.menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  margin-bottom: 2px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #e85d1c;
  transition: transform 0.3s ease;
}
*/
/* Rotate triangle on hover */
.menu li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Dropdown Styling */


.menu li.menu-item-has-children ul {
  position: absolute;

  top: 100%;
  left: 0;
  min-width: 160px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(60px);
  transition: all 0.5s ease;
  /*box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); */
  display: block;

  background: #C8BCD6;
}

/*
.sub-menu {
  position: absolute;
background-color: #444;
top: 100%;
left: 0;
min-width: 160px;
z-index: 999;
opacity: 0;
visibility: hidden;
transform: translateY(20px);
transition: all 0.5s ease;
border-radius: 5px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}*/

.navbar ul li:hover .menu li.menu-item-has-children ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu li.menu-item-has-children ul a {
  color: #574a6a;
  text-decoration: none;
  display: block;
  font-size: 0.9vw;
  transition: background-color 0.3s ease;
  margin-top: 5px !important;

}



.menu li.menu-item-has-children ul a:hover {
  background-color: #574a6a;
  color: white;
  /*  margin-left: -4px !important;
    margin-top: -5px !important;
    margin-right: -4px !important;
    margin-bottom: -5px !important;*/
    border-bottom: unset !important
}

/* Show dropdown on hover (desktop only) with smoother fade-in and slide-up */
.menu li.menu-item-has-children:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Fullscreen overlay menu for mobile */
.overlay {
  position: fixed;
  height: 100%;
  width: 100%;
      background: linear-gradient(135deg, #615275, #362f3f);
  background-size: 400% 400%;
  animation: backgroundMove 5s infinite alternate ease-in-out;
  top: 0;
  left: 0;
  transform: translate(100%, -100%); /* Start off-screen diagonally */
  z-index: 999; /* Higher than the navbar */
  display: flex;
  justify-content: flex-start;
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
  overflow: scroll;
}

ul#menu-primary-menu-1 {
    padding-bottom: 50px;
    padding-top: 50px;
}

@keyframes backgroundMove {
  0% { background-position: left top; }
  100% { background-position: right bottom; }
}

.overlay.active {
  transform: translate(0, 0); /* Slide in diagonally */
  opacity: 1;
}

/* Menu-container for delayed slide-in */
.menu-container {
  padding-top: 120px;
  padding-left: 12%;
  opacity: 0;
  transform: translateX(-100px); /* Start slightly off-screen */
  transition: transform 0.8s ease, opacity 0.8s ease;
  transition-delay: 1s; /* Delay the slide-in */
}

.overlay.active .menu-container {
  opacity: 1;
  transform: translateX(0); /* Slide into place */
}

/* Logo box inside the mobile menu */
.menu-logo-box {
    text-align: left;
    margin-bottom: 50px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 250px;
    margin-left: -2%;
    margin-top: 55px;
}

.menu-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-container ul li {
  margin: 30px 0;
  text-align: left;
}

.menu-container ul li a {
    color: white;
    font-size: 19px;
    text-decoration: none;
    transition: all 0.5s
ease-in;
    letter-spacing: 1.5px;
    font-weight: 200;
font-family: 'Outfit';
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    float: right;
    display: flex;
    gap: 9px;
}

.menu-container ul li a:hover {
    color: #a691bc;
    /* padding: 10px; */
    /* border-radius: 10px; */
}

.mobile-menu .sub-menu .menu-item a {
  font-size: 18px; /* Change this size as desired */
}

/* Arrow styling */
.mobile-menu li.menu-item-has-children > a .arrow {
  display: inline-block;
  margin-left: 10px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #a691bc;
  transition: transform 0.3s ease;
}

/* Rotate the arrow when active */
.mobile-menu li.menu-item-has-children.active > a .arrow {
  transform: rotate(180deg);
}

/* Arrow for mobile dropdown */
.arrow {
  display: inline-block;
  margin-left: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #C8BCD6;
  transition: transform 0.3s ease-in-out;
  margin-bottom: 3px;
}

/* Rotate arrow when active */
.arrow.active {
  transform: rotate(180deg);
}

/* Mobile-specific dropdown (toggle) */
.mobile-dropdown {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, max-height 0.5s ease, transform 0.5s ease; /* Adjust timing if necessary */
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Active dropdown state */
.mobile-dropdown.active {
  opacity: 1;
  max-height: 500px; /* Set an appropriately large value to accommodate the expanded height */
  transform: translateY(0);
}

.mobile-dropdown a {
  font-size: 16px;
  padding: 8px 16px;
  color: #ddd;
  transition: background-color 0.3s ease;
  display: block;
  width: 100%;
}

.mobile-dropdown a:hover {
  background-color: #1f3a5c;
}

/* Hide submenu by default
.menu li.menu-item-has-children ul {
  display: none; /* Hide the submenu
} */

/* Show submenu on hover for desktop */
.menu li.menu-item-has-children:hover ul {
  display: block; /* Show the submenu when hovering */
}


@media only screen and (min-width:1250px) {

.navbar ul li a {
    text-decoration: none;
    padding: 8px 14px;
    display: block;
    font-size: 1vw;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'outfit';
    font-weight: 200;
    text-transform: uppercase;
}

.menu li.menu-item-has-children ul {
    position: absolute;
    background-color: #C8BCD6;
    top: 100%;
    left: 0;
    min-width: 250px;
  }

  li#menu-item-37 {
      display: block;
  }

}

@media screen and (min-width: 1050px) and (max-width: 1249px) {

.navbar ul li a {
    text-decoration: none;
    padding: 6px 12px;
    display: block;
    font-size: 1vw;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'outfit';
    font-weight: 200;
    text-transform: uppercase;
}

li#menu-item-37 {
    display: block;
}

}

@media screen and (max-width: 980px) {

.menu-container ul li a {
    color: white;
    font-size: 19px;
    text-decoration: none;
    transition: all 0.5s ease-in;
    letter-spacing: 1.5px;
}
}

@media screen and (max-width: 870px) {

  .navbar-wrap {
    padding-top: 18px;
}

.navbar ul li a {
    font-size: 11px;
}

.menu li.menu-item-has-children ul a {
    font-size: 10px;
}

.menu li.menu-item-has-children ul {
    min-width: 120px;
  }

}

/* Media query for mobile */
@media screen and (max-width: 890px) {
  .navbar ul {
    display: none; /* Hide the full navbar on mobile */
  }

  li#menu-item-37 {
      display: block;
  }

  /* Hamburger Menu */
  .hamburger {
          display: flex;
          position: fixed;
          top: 73px !important;
          right: 45px;
          width: 44px;
          height: 44px;
          cursor: pointer;
          z-index: 1001;
          background: #816e9b;
          /* border-radius: 1px; */
          justify-content: center;
          align-items: center;
          transition: transform 0.6s ease;
      }

  /* Rotate the entire box on click */
  .hamburger.active {
    transform: rotate(270deg); /* Rotate 270 degrees when active */
  }

  .hamburger span {
    position: relative;
    display: block;
    width: 24px;
    height: 3px;
    background: #574a6a;
    transition: background 0.3s 0.3s;
  }

  .hamburger span::before, .hamburger span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: #574a6a;

    transition: transform 0.3s 0.3s;
  }

  .hamburger span::before {
    top: -8px;
  }

  .hamburger span::after {
    top: 8px;
  }

  /* Hamburger transformation to X */
  .hamburger.active span {
    background-color: transparent;
  }

  .hamburger.active span::before {
    transform: translateY(8px) rotate(45deg); /* Rotates and moves the top line */
  }

  .hamburger.active span::after {
    transform: translateY(-8px) rotate(-45deg); /* Rotates and moves the bottom line */
  }

  /* Hover effect for hamburger */
  .hamburger:hover {
    background-color: #a08cbb;
  }



  /* Ensure smooth transitions for dropdowns */
  .sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease, max-height 0.8s ease, transform 0.8s ease;
  }

  /* Active class applied to parent li when opened */
  .menu-item-has-children.active .sub-menu {
    opacity: 1;
    transform: translateY(0);
  }

  /* Arrow styling for rotation */
  .arrow {
    display: inline-block;
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #e85d1c;
    transition: transform 0.3s ease;
  }

  .arrow.active {
    transform: rotate(180deg);
  }
}
