html, body {
    text-rendering: optimizeLegibility;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga" 1;
}

.dark-text {
 color: #25282A;
}

.hybd-navigation {
    background-color: #25282A;
    padding: 8px 0;
    height: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    will-change: height;
}

.hybd-navigation-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hybd-nav-logo {
    width: auto;
    height: 32px;
    transform-origin: left center;
    will-change: transform;
}

.megamenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.megamenu li {
    position: relative;
    list-style: none;
    display: inline-block;
}

.megamenu a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    transition: all 0.3s ease;
    gap: 6px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.megamenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.megamenu-top-item {
    position: relative;
}

.megamenu-top-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    bottom: -8px;
    z-index: 1;
      pointer-events: auto;
}

.megamenu-top-item.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    z-index: 998;
      background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.megamenu-top-item.has-dropdown.dropdown-active::after {
    opacity: 1;
    pointer-events: auto;
}

.megamenu-top-item > a {
    font-weight: 500;
    color: rgb(215, 215, 215);
    font-size: 15px;
    
}

.dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
    transition: transform 0.3s ease;
}

.nested-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nested-arrow .chevron-icon {
    transform: rotate(-90deg);
    
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.megamenu-dropdown-wrapper {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #CCD4D6;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    min-width: 280px;
    display: grid;
    grid-template-columns: 198px 1fr;
    gap: 18px;
    padding: 16px;
    overflow: visible;
  }

.megamenu-dropdown-wrapper.no-description {
    grid-template-columns: 1fr;
}


.megamenu-dropdown-wrapper.floating-ui-active {
    opacity: 1;
    visibility: visible;
}

.megamenu-dropdown-header {
    gap: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.megamenu-dropdown-title {
    font-size: 16px;
    font-weight: 450;
    margin: 0px;
    line-height: 1.4;
    opacity: 0.5;
}

.megamenu-dropdown-description {
    font-size: 13px;
    margin: 0px;
    line-height: 1.5;
}

.megamenu-dropdown {
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    background-color: #f6f8f8;
    border-radius: 6px;
    padding: 14px;
    align-items: flex-start;
    overflow: visible;
}

.megamenu-dropdown.no-description {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.megamenu-dropdown.single-column {
    grid-template-columns: 1fr;
}

.megamenu-dropdown-item {
    position: relative;
}

.megamenu-dropdown-item.nested-active {
    z-index: 100;
}

.megamenu-dropdown-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    bottom: -8px;
    z-index: 1;
      pointer-events: auto;
}

.megamenu-dropdown-item.has-nested::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 15px;
    height: 100%;
    z-index: 1;
      background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.megamenu-dropdown-item.has-nested.nested-active::after {
    opacity: 1;
    pointer-events: auto;
}

.megamenu-dropdown-item a {
    color: #25282A;
    text-wrap: nowrap;
    list-style-type: none;
    font-size: 14px;
    width: fit-content;
    border-radius: 8px;
    gap: 10px;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    z-index: 2;
    gap: 0;
}

.megamenu-dropdown-item:last-child a {
    border-bottom: none;
}

.megamenu-dropdown-item a:hover {
    background-color: #f8f9fa;
}

.megamenu-nested {
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    padding: 8px;
    display: flex;
    flex-direction: column;
  }


.megamenu-nested.floating-ui-active {
    opacity: 1;
    visibility: visible;
}

.megamenu-nested-item {
    position: relative;
}

.megamenu-nested-item.has-nested::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 20px;
    height: 100%;
    z-index: 1;
      background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.megamenu-nested-item.has-nested.deep-active::after {
    opacity: 1;
    pointer-events: auto;
}

.megamenu-nested-item::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    bottom: -12px;
    z-index: 1;
      pointer-events: auto;
}

.megamenu-nested-item a {
    color: #25282A;
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 2;
}

.megamenu-nested-item:last-child a {
    border-bottom: none;
}

.megamenu-nested-item a:hover {
    background-color: #f8f9fa;
}

.megamenu-deep {
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
  }


.megamenu-deep.floating-ui-active {
    opacity: 1;
    visibility: visible;
}

.megamenu-deep .megamenu-nested-item a {
    color: #25282A;
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 2;
}

.megamenu-deep .megamenu-nested-item a:hover {
    background-color: #f8f9fa;
}

.megamenu-column-wrapper {
    position: relative;
}

.megamenu-column-wrapper .megamenu-dropdown {
    min-width: 600px;
    padding: 20px;
}

.megamenu-column-wrapper .megamenu-dropdown li {
    float: left;
    width: 33.333%;
    padding: 0 10px;
}

.menu-fallback {
    color: #fff;
    padding: 20px;
}

.menu-fallback p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle:hover .hamburger-line {
    background-color: #f8f9fa;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #25282A;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content {
    padding: 80px 20px 40px;
}

.mobile-megamenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-megamenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-megamenu li:last-child {
    border-bottom: none;
}

.mobile-megamenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    text-decoration: none;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-megamenu a:hover {
    color: #f8f9fa;
}

.mobile-menu-text {
    flex: 1;
}

.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.mobile-submenu-toggle:hover {
    transform: scale(1.1);
}

.mobile-submenu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mobile-megamenu-dropdown,
.mobile-megamenu-nested,
.mobile-megamenu-deep {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
    padding-left: 16px;
}

.mobile-megamenu-dropdown li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-megamenu-dropdown a,
.mobile-megamenu-nested a,
.mobile-megamenu-deep a {
    font-size: 16px;
    padding: 14px 0 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-megamenu-dropdown a:hover,
.mobile-megamenu-nested a:hover,
.mobile-megamenu-deep a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-megamenu-nested a,
.mobile-megamenu-deep a {
    padding-left: 40px;
    font-size: 14px;
}

.mobile-megamenu-deep a {
    padding-left: 60px;
    font-size: 13px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .megamenu {
        display: none;
    }
}

@media (max-width: 768px) {
    .hybd-navigation {
        padding: 2px 8px 2px 0;
        height: 76px;
    }

    .mobile-menu-content {
        padding: 100px 20px 40px;
    }

    .mobile-megamenu a {
        font-size: 16px;
        padding: 14px 0;
    }

    .mobile-megamenu-dropdown a,
    .mobile-megamenu-nested a,
    .mobile-megamenu-deep a {
        font-size: 14px;
    }

    .mobile-megamenu-nested a,
    .mobile-megamenu-deep a {
        font-size: 13px;
    }

    .mobile-megamenu-deep a {
        font-size: 12px;
    }

    .hybd-nav-logo {
        width: auto;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .mobile-menu-content {
        padding: 80px 16px 32px;
    }

    .mobile-megamenu a {
        font-size: 15px;
        padding: 12px 0;
    }

    .mobile-megamenu-dropdown a,
    .mobile-megamenu-nested a,
    .mobile-megamenu-deep a {
        font-size: 13px;
        padding-left: 16px;
    }

    .mobile-megamenu-nested a,
    .mobile-megamenu-deep a {
        padding-left: 32px;
        font-size: 12px;
    }

    .mobile-megamenu-deep a {
        padding-left: 48px;
        font-size: 11px;
    }
}