/*
  Theme Name: Divi Child Theme
  Theme URI: https://foxycocnept.com/
  Version: 1.0.0
  Template: Divi
  Author: Petar Milakovic
  Author URI: https://foxycocnept.com/
  Description: DIVI Child theme created for dev customization
  Text Domain: divi-child-theme
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
.hamburger {
  display: none;
}
@media all and (max-width: 1024px) {
  .hamburger {
    display: block;
  }
}
.hamburger .line {
  width: 30px;
  height: 2px;
  background-color: #222222;
  display: block;
  margin: 8px auto;
  transition: all 0.3s ease-in-out !important;
}
#hamburger-9 {
  position: relative;
  transition: all 0.3s ease-in-out;
}

#hamburger-9.is-active {
  transform: rotate(45deg);
}

#hamburger-9:before {
  content: "";
  position: absolute;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border: 2px solid transparent;
  top: calc(50% - 22px);
  left: calc(50% - 22px);
  border-radius: 100%;
  transition: all 0.3s ease-in-out !important;
}

#hamburger-9.is-active:before {
  border: 2px solid #222222;
}

#hamburger-9.is-active .line {
  width: 28px;
}

#hamburger-9.is-active .line:nth-child(2) {
  opacity: 0;
}

#hamburger-9.is-active .line:nth-child(1) {
  transform: translateY(10px);
}

#hamburger-9.is-active .line:nth-child(3) {
  transform: translateY(-10px) rotate(90deg);
}

.sub-menu a {
  line-height: 1.3;
}

/* header */
.mobile-toggle {
  display: none;
}
.header-inner {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  position: relative;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav ul {
  display: flex;
  gap: 30px;
  font-size: 18px;
}
.main-nav ul li {
  position: relative;
}
.menu-item-has-children {
  padding-right: 22px;
}
.submenu-arrow {
  position: absolute;
  right: 0;
  top: 17px;
}
.main-nav a {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
}
@media all and (min-width: 1025px) and (max-width: 1380px) {
}
@media all and (min-width: 1025px) {
  .main-nav ul li a {
    padding: 16px 5px;
    display: block;
    position: relative;
    z-index: 1;
  }
  .mobile-toggle {
    display: block;
  }
  #main-header .main-nav li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
  }
  .sub-menu li:hover a {
    background: #ededed;
  }
  .main-nav ul li a:hover {
    color: rgba(0, 0, 0, 0.8);
  }
}
.main-nav .sub-menu li {
  margin-bottom: 0 !important;
  padding: 0;
  font-size: 17px;
}
.main-nav .sub-menu li a {
  padding: 6px 10px;
  display: block;
  border-radius: 4px;
}
.main-nav .sub-menu {
  border-color: #ffba60 !important;
  position: absolute;
  top: 100%;
  display: flex;
  gap: 5px;
  flex-direction: column;
  padding: 10px 14px;
  z-index: 9999;
  width: 240px;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  border-top: 3px solid #2ea3f2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  -webkit-transform: translateZ(0);
  text-align: left;
}

@media all and (max-width: 1024px) {
  .submenu-arrow {
    width: 38px;
    height: 38px;
    top: 9px;
    background-color: #ededed;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
  }
  .submenu-arrow svg {
    transition: transform 0.25s ease !important;
  }

  .submenu-arrow.active svg {
    transform: rotate(180deg);
  }
  .submenu-arrow svg {
    pointer-events: auto;
  }
  .main-nav {
    position: absolute;
    padding: 0 20px 30px;
    box-shadow:
      rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
      rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    top: 100%;
    left: 0;
    right: 0;
    margin: auto;
    border-bottom: 1px solid #e1e1e1;
    background: #fff;
    width: 90%;
    z-index: 999;
    flex-direction: column;
    gap: 5px;
    padding-top: 12px !important;
    display: none;
    border-top: 1px solid #e1e1e1;
  }
  .main-nav ul {
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 5px !important;
    width: 100%;
  }
  .main-nav .menu-item-has-children {
    pointer-events: none;
  }

  .main-nav > ul > li {
    border-top: 1px solid #e1e1e1;
  }
  .main-nav > ul > li:first-of-type {
    border-top: none;
  }

  nav.main-nav .sub-menu {
    width: 100%;
    position: relative !important;
    box-shadow: none;
    border: none !important;
    margin-bottom: 0;
    padding: 12px 0 12px;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  nav.main-nav .sub-menu li {
    padding: 0 !important;
    font-weight: 400;
  }
}
@media all and (max-width: 480px) {
  .main-nav ul li {
    padding: 8px !important;
  }
  .main-nav > ul > li {
    font-size: 16px;
  }
}
