/* MEGAMENU STYLING - Reusable mega menu system */

/* Primary menu configuration */

@media (min-width: 992px) {
  .megamenu-primary {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 400px;
    background-color: #0E0B1C;
    z-index: 999;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-top: 0;
    padding: 20px;
  }
}

@media (min-width: 992px) {
  .megamenu-trigger:hover .megamenu-primary, .megamenu-trigger.show .megamenu-primary, .megamenu-primary.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Primary menu items list */

@media (min-width: 992px) {
  .megamenu-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
}

@media (min-width: 992px) {
  .megamenu-primary ul li {
    margin: 0;
    padding: 0;
  }
}

@media (min-width: 992px) {
  .megamenu-primary ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    transition: color 0.3s ease;
    position: relative;
  }
}

@media (min-width: 992px) {
  .megamenu-primary ul li a:hover {
    color: #e88423;
  }
}

/* Chevron styling for expandable items */

@media (min-width: 992px) {
  .megamenu-item-expandable > a::after {
    /*content: '\f054';*/
    /*font-family: 'bootstrap-icons';*/
    /*margin-left: 8px;*/
    /*font-size: 0.8rem;*/
    /*display: inline-block;*/
    /*transition: transform 0.3s ease;*/
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    background-image: url('../../assets/img/right-chevron.svg?h=0960c7ca9ed167309f3ada67bc291599');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /*transition: transform 0.3s ease;*/
    vertical-align: middle;
  }
}

/* Secondary menu configuration */

@media (min-width: 992px) {
  .megamenu-secondary {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 400px;
    background-color: #0E0B1C;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 0;
    padding: 20px;
    border-left: 1px solid #00ffff;
    transform: translateX(-100%);
    z-index: 1000;
  }
}

@media (min-width: 992px) {
  .megamenu-item-expandable.show .megamenu-secondary, .megamenu-secondary.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
}

/* Secondary menu items list */

@media (min-width: 992px) {
  .megamenu-secondary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
  }
}

@media (min-width: 992px) {
  .megamenu-secondary ul li {
    margin: 0;
    padding: 0;
    /*border-left: 2px solid #fff;*/
    padding-left: 15px;
  }
}

@media (min-width: 992px) {
  .megamenu-secondary ul li:first-child {
    border-left: none;
    padding-left: 15px;
  }
}

@media (min-width: 992px) {
  .megamenu-secondary ul li a {
    color: rgba(255,255,255,0.6)!important;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    transition: color 0.3s ease;
  }
}

@media (min-width: 992px) {
  .megamenu-secondary ul li a:hover {
    color: #e88423;
  }
}

/* Chevron rotation for expanded state */

@media (min-width: 992px) {
  .megamenu-item-expandable.show > a::after {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }
}

/* Relative positioning for secondary menu */

@media (min-width: 992px) {
  .megamenu-item-expandable {
    position: static;
  }
}

/* MOBILE STYLES */

@media (max-width: 991px) {
  .megamenu-primary {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }
}

@media (max-width: 991px) {
  .megamenu-primary.show {
    display: block;
    opacity: 1;
    max-height: 500px;
  }
}

@media (max-width: 991px) {
  .megamenu-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 991px) {
  .megamenu-primary ul li {
    margin: 0;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #053e67;
  }
}

@media (max-width: 991px) {
  .megamenu-primary ul li:last-child {
    border-bottom: none;
  }
}

@media (max-width: 991px) {
  .megamenu-primary ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    transition: color 0.3s ease;
  }
}

@media (max-width: 991px) {
  .megamenu-primary ul li a:hover {
    color: #e88423;
  }
}

/* Chevron styling for mobile */

@media (max-width: 991px) {
  .megamenu-item-expandable > a::after {
    /*content: '\f054';*/
    /*font-family: 'bootstrap-icons';*/
    /*margin-left: 8px;*/
    /*font-size: 0.8rem;*/
    /*display: inline-block;*/
    /*transition: transform 0.3s ease;*/
    /*background-image: url('../../assets/img/down-chevron.svg?h=a7451c9495d82ae3efa186e3386d8c0f');*/
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    background-image: url('../../assets/img//down-chevron.svg?h=a7451c9495d82ae3efa186e3386d8c0f');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
  }
}

/* Secondary menu for mobile */

@media (max-width: 991px) {
  .megamenu-secondary {
    position: static;
    border-left: 2px solid #fff;
    padding-left: 15px;
    margin-left: 0;
    margin-top: 10px;
    max-width: 100%;
    min-width: auto;
    display: none;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 991px) {
  .megamenu-secondary.show {
    display: block;
  }
}

@media (max-width: 991px) {
  .megamenu-secondary ul {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 991px) {
  .megamenu-secondary ul li {
    border-left: none;
    padding-left: 0;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #053e67;
  }
}

@media (max-width: 991px) {
  .megamenu-secondary ul li:first-child {
    border-left: none;
  }
}

@media (max-width: 991px) {
  .megamenu-secondary ul li:last-child {
    border-bottom: none;
  }
}

@media (max-width: 991px) {
  .megamenu-secondary ul li a {
    font-size: 1rem;
  }
}

/* Chevron rotation for mobile */

@media (max-width: 991px) {
  .megamenu-item-expandable.show > a::after {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }
}

@media (max-width: 991px) {
  .megamenu-item-expandable {
    position: relative;
  }
}

