 * {
  margin: 0;
  box-sizing: border-box;
}
:before,
:after {
  box-sizing: border-box;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.v-center {
  align-items: center;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}

/* ========== HEADER BASE ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: rgba(255, 255, 255, 0%);
  transition: background 0.3s ease;
  padding: 10px 0;
}

.header .item-left {
  flex: 0 0 14%;
}
.header .logo a {
  font-size: 30px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
.header .item-center {
  flex: 0 0 58%;
}
.header .item-right {
  flex: 0 0 28%;
  display: flex;
  justify-content: flex-end;
}
.header .item-right a {
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Menu Desktop */
.header .menu > ul > li {
  display: inline-block;
  line-height: 50px;
  margin-left: 32px;
}
.header .menu > ul > li > a {
  font-size: 14px;
  color: #fff;
  position: relative;
  text-transform: capitalize;
  transition: color 0.3s ease;
}

/* Submenu */
.header .menu > ul > li .sub-menu {
  position: absolute;
  z-index: 500;
  background-color: #262626;
  box-shadow: -2px 2px 70px -25px rgba(0, 0, 0, 0.3);
  padding: 20px 30px;
  transition: all 0.5s ease;
  margin-top: 25px;
  opacity: 0;
  visibility: hidden;
}

/* ========== DESKTOP ONLY (≥992px) ========== */
@media (min-width: 992px) {
  .header .menu > ul > li.menu-item-has-children:hover .sub-menu {
    margin-top: 0;
    visibility: visible;
    opacity: 1;
  }
  .header .menu > ul > li .sub-menu > ul > li {
    line-height: 1;
  }
  .header .menu > ul > li .sub-menu > ul > li > a {
    display: inline-block;
    padding: 10px 0;
    font-size: 14px;
    color: #fff;
    transition: color 0.3s ease;
    text-decoration: none;
    text-transform: capitalize;
  }

  /* Mega menu */
  .header .menu > ul > li .single-column-menu {
    min-width: 280px;
    max-width: 350px;
  }
  .header .menu > ul > li .sub-menu.mega-menu {
    left: 50%;
    transform: translateX(-50%);
  }
  .header .menu > ul > li .sub-menu.mega-menu-column-4 {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 15px;
  }
  .header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item {
    flex: 0 0 25%;
    padding: 0 15px;
  }
  .header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item .title {
    font-size: 14px;
    color: #ea4636;
    font-weight: 500;
    line-height: 1;
    padding: 10px 0;
  }
  .header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item img {
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    margin-top: 10px;
    height: 300px;
    object-fit: cover;
  }

  /* Hover effects */
  .header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li > a:hover,
  .header .menu > ul > li .sub-menu > ul > li > a:hover,
  .header .item-right a:hover,
  .header .menu > ul > li:hover > a {
    color: #ffa300;
  }

  .banner-section {
    background-image: url("../img/banner.jpg");
    background-size: cover;
    background-position: center;
    height: 700px;
    width: 100%;
    display: block;
  }

  .mobile-menu-head,
  .mobile-menu-trigger {
    display: none;
  }
}

/* ========== MOBILE & TABLET (≤991px) ========== */
@media (max-width: 991px) {
  .header .item-center {
    order: 3;
    flex: 0 0 100%;
  }
  .v-center {
    justify-content: space-between;
  }
  .header .mobile-menu-trigger {
    display: flex;
    height: 30px;
    width: 30px;
    margin-left: 15px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }
  .header .mobile-menu-trigger span {
    display: block;
    height: 2px;
    background-color: #fff;
    width: 24px;
    position: relative;
  }
  .header .mobile-menu-trigger span:before,
  .header .mobile-menu-trigger span:after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
  }
  .header .mobile-menu-trigger span:before {
    top: -6px;
  }
  .header .mobile-menu-trigger span:after {
    top: 6px;
  }
  .header .item-right {
    align-items: center;
  }

  /* Mobile menu */
  .header .menu {
    position: fixed;
    width: 320px;
    background-color: #000;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    transform: translate(-100%);
    transition: all 0.5s ease;
    z-index: 1099;
  }
  .header .menu.active {
    transform: translate(0%);
  }
  .header .menu > ul > li {
    line-height: 1;
    margin: 0;
    display: block;
  }
  .header .menu > ul > li > a {
    line-height: 50px;
    height: 50px;
    padding: 0 50px 0 15px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  /* Mobile submenu */
  .header .menu > ul > li .sub-menu {
    visibility: visible;
    opacity: 1;
    position: absolute;
    box-shadow: none;
    margin: 0;
    padding: 15px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 65px;
    display: none;
    transform: translateX(0%);
    overflow-y: auto;
  }
  .header .menu > ul > li .sub-menu.active {
    display: block;
  }

  /* Menu head */
  .header .menu .mobile-menu-head {
    display: flex;
    border-bottom: 1px solid #fff;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    background-color: #000;
    top: 0;
    z-index: 501;
  }
  .header .menu .mobile-menu-head .go-back {
    height: 50px;
    width: 50px;
    border-right: 1px solid #fff;
    cursor: pointer;
    line-height: 50px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    display: none;
  }
  .header .menu .mobile-menu-head.active .go-back {
    display: block;
  }
  .header .menu .mobile-menu-head .current-menu-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
  }
  .header .menu .mobile-menu-head .mobile-menu-close {
    height: 50px;
    width: 50px;
    border-left: 1px solid #fff;
    cursor: pointer;
    line-height: 50px;
    text-align: center;
    color: #fff;
    font-size: 25px;
  }

  .menu-overlay {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1098;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease;
  }
  .menu-overlay.active {
    visibility: visible;
    opacity: 1;
  }
}
