/* 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;
}

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: #444;
  text-decoration: none;
  padding: 5px;
  display: block;
  font-size: 1.2vw;
  transition: color 0.3s ease, background-color 0.3s ease;
  font-family: 'Nexa';
  font-weight: 800;
  text-transform: uppercase;
      border-radius: 5px;
}

.navbar ul li a:hover {
  color: #222;
  background-color: rgb(255 132 0 / 90%);
  border-radius: 5px;
}

/* 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 #444;
  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;
  background-color: #dc700a;
  top: 100%;
  left: 0;
  min-width: 160px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(60px);
  transition: all 0.5s ease;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  display: block;
}

/*
.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: white;
  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: #f8862d;
}

/* 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, #333, #111);
  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: 100px;
}

@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: 50px;
  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: 30px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 32%;
    margin-left: -3%;
}

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

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

.menu-container ul li a {
  color: white;
  font-size: 22px;
  text-decoration: none;
  font-family: 'Nexa';
  font-weight: 300;
  transition: all 0.5s ease-in;
}

.menu-container ul li a:hover {
    color: #fba33b;
    /* 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 #fba33a;;
  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 white;
  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: #666;
}

/* 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;
    display: block;
    font-size: 1vw;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'Nexa';
    font-weight: 800;
    text-transform: uppercase;
}

.menu li.menu-item-has-children ul {
    position: absolute;
    background-color: #dc700a;
    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;
    display: block;
    font-size: 1.1vw;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'Nexa';
    font-weight: 800;
    text-transform: uppercase;
}

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

}

@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: 15px;
    right: 20px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1001; /* Ensure the hamburger is always on top */
    background-color: #ff8827;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease; /* Smooth rotation */
  }

  /* 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: white;
    transition: background 0.3s 0.3s;
  }

  .hamburger span::before, .hamburger span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: white;
    right: 0;
    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: #f39c12; /* Darker orange on hover */
  }

  /* 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 #444;
    transition: transform 0.3s ease;
  }

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