/* Complete HubSpot Navigation CSS with Working Mega Menus */

.top-bar {
    background-color: ;
    color: ;
}

.top-bar svg,
.top-bar svg g {
    fill: ;
}

.close-top-bar i {
    color: ;
    opacity: 0.8;
    position: absolute;
    right: 15px;
    font-size: 1.3rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.navbar-nav .nav-link:not(.btn) {
    padding-right: 0;
    padding-left: 0
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center
}

.navbar-toggler {
    padding: 0;
    font-size: 1.3375rem;
    line-height: 1;
    background-color: transparent;
    border: .0625rem solid transparent;
    border-radius: .25rem
}

@media (max-width:1200px) {
    .navbar-toggler {
        font-size: calc(1.25875rem + .105vw)
    }
}

.navbar-toggler:focus,
.navbar-toggler:hover {
    text-decoration: none
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background-image: none !Important;
}

.mobile-only {
    display:block;
}

.top-bar ul {
    display:none;
}

@media (min-width:1200px) {
    .language-wrapper {
        margin-right: -.75rem;
    }
    .mobile-only {
        display:none;
    }
    .top-bar ul {
        display:block;
    }
    .navbar-expand-xl .navbar-nav .nav-link {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
    .navbar-expand-xl .navbar-toggler {
        display: none
    }
}

.sr-navbar .navbar-toggler {
    color: #2f3338;
    border-color: transparent;
    border: none;
}

.headroom {
    will-change: transform;
    background-color: inherit;
    transition: all .2s ease
}

.headroom--pinned,
.headroom--unpinned,
.position-fixed {
    position: fixed!important
}

@media (prefers-reduced-motion:reduce) {
    .headroom {
        transition: none
    }
}

.headroom--pinned {
    transform: translateY(0)
}

.headroom--not-top .navbar-theme-default .navbar-brand-light,
.navbar-theme-default .navbar-brand-dark {
    display: none
}

.headroom--not-top .navbar-theme-default .navbar-brand-dark {
    display: block
}

/* Mega Menu Styles - Final Fix */
.mega-menu {
    position: fixed; /* Changed from absolute to fixed */
    top: auto; /* We'll calculate this with JavaScript */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Will be set by JavaScript */
    max-width: none; /* Remove the 1200px limit */
    padding: 0;
    border: 0;
    border-radius: 8px ;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: white !important;
    display: none !important;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    z-index: 9999;
    margin-top: -5px;
}

.mega-menu.show {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
    animation: show-mega-menu .3s ease forwards;
}

.mega-menu-content {
    display: flex;
    min-height: 400px;
    background: white !important;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.mega-menu-left {
    flex: 1;
    padding: 40px 30px 30px 40px;
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
    background: white;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.mega-menu-section {
    flex: 0 0 calc(50% - 20px) !important;
    min-width: 200px !important;
    max-width: calc(50% - 20px) !important;
    margin-bottom: 0;
}

.mega-menu-header {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-links li {
    margin: 0 0 8px 0;
}

.mega-menu-link {
    display: block;
    color: #343a40;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s ease;
    border: none;
    background: none;
}

.mega-menu-link:hover {
    color: ;
    text-decoration: none;
}

.mega-menu-link[href*="overview"]::after {
    content: " →";
    margin-left: 5px;
    opacity: 0.7;
}

/* Updated mega-menu-right to handle horizontal featured content layout */
.mega-menu-right {
    flex: 0 0 400px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top-right-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start; /* Align to top */
}

/* When there's only one featured block, make it full width */
.mega-menu-featured:only-child {
    width: 100%;
}

/* When there are two featured blocks, make them horizontal */
.mega-menu-right:has(.mega-menu-featured:nth-child(2)) {
    flex-direction: row;
    flex-wrap: wrap;
}

.mega-menu-right .mega-menu-featured:first-child:not(:only-child) {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
}

.mega-menu-right .mega-menu-featured:nth-child(2) {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
}

.mega-menu-featured {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.mega-menu-featured-2 {
    margin-bottom: 0;
}

.featured-image {
    width: calc(100% - 40px);
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0 !important;
    margin: 0 20px !important;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.featured-content {
    padding: 20px;
}

.featured-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.featured-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    color: ;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.featured-cta span {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.featured-cta:hover {
    color: ;
    text-decoration: none;
}

.featured-cta:hover span {
    transform: translateX(3px);
}

.mega-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.mega-menu-footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mega-menu-footer-content span {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.mega-menu-footer-cta {
    display: inline-flex;
    align-items: center;
    color: #494949;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-menu-footer-cta span {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.mega-menu-footer-cta:hover {
    color: ;
    text-decoration: none;
}

.mega-menu-footer-cta:hover span {
    transform: translateX(3px);
}

.mega-menu-social {
    display: flex;
    gap: 15px;
}

.mega-menu-social a {
    color: #6c757d;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.mega-menu-social a:hover {
    color: ;
}

/* Mobile override */
@media (max-width: 1199px) {
    .mega-menu-left {
        padding: 20px !important;
        flex-direction: column !important;
    }
    
    .mega-menu-section {
        flex: none !important;
        max-width: none !important;
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .mega-menu-right {
        padding: 20px;
        flex-direction: column !important;
    }
    
    .mega-menu-right .mega-menu-featured:first-child:not(:only-child),
    .mega-menu-right .mega-menu-featured:nth-child(2) {
        flex: none !important;
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .mega-menu-featured:last-child {
        margin-bottom: 0;
    }
}

@keyframes show-mega-menu {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.navbar-main {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    -webkit-box-shadow: 15px 10px 20px 0 rgba(0, 0, 0, 0.0);
    box-shadow: 15px 10px 20px 0 rgba(0, 0, 0, 0.0);
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.headroom--not-top .navbar-main {
    -webkit-box-shadow: 15px 10px 20px 0 rgba(0, 0, 0, 0.05);
    box-shadow: 15px 10px 20px 0 rgba(0, 0, 0, 0.05);
}

.navbar .navbar-nav .nav-item .media:not(:last-child) {
    margin-bottom: 1.5rem
}

.navbar .navbar-nav .dropdown .dropdown-menu {
    top: calc(100% + 7px);
}

.navbar .navbar-nav .dropdown-submenu {
    position: relative
}

.navbar .navbar-nav .dropdown-submenu .dropdown-menu {
    top: -5px;
    left: 100%;
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.navbar .navbar-nav .dropdown-submenu .dropdown-menu.show {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -7.5px);
}

.dropdown-toggle::after {
    display: none;
}

.nav-ctas {
    align-self: center;
}

@media (min-width:1200px) {
    .nav-ctas {
        margin-left: 1.25rem;
    }
    .navbar-nav > .nav-item {
        position: relative
    }
    .navbar-nav > .nav-item [data-toggle=dropdown]::after {
        transition: all .2s ease
    }
    .navbar-nav > .nav-item.show [data-toggle=dropdown]::after,
    .navbar-nav > .nav-item.show .dropdown-toggle-click::after {
        transform: rotate(180deg)
    }
    .navbar-nav > .nav-item:not(.dropdown):after, .navbar-nav .nav-item.active:after {
        content: '';
        height: 3px;
        transition: .3s ease all;
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 0
    }
    .navbar-nav > .nav-item:not(.dropdown):hover:after, .navbar-nav > .nav-item.active:after {
        width: 80%
    }
    .navbar-nav .nav-item.dropdown.active:after {
        left: 46%;
    }
    .navbar-nav > .nav-item.dropdown.active:after {
        width: 76%
    }
    .navbar-nav .nav-link {
        padding-top: 2rem;
        padding-bottom: 2rem;
        border-radius: .25rem
    }
    .navbar-nav .nav-link i {
        margin-right: .3rem;
        font-size: 1.25rem;
    }
    .navbar-nav .nav-link-icon {
        padding-left: .5rem;
        padding-right: .5rem;
        font-size: 1rem;
        border-radius: .25rem
    }
    .navbar-nav .nav-link-icon i {
        margin-right: 0
    }
    .navbar-nav .dropdown-menu-right:before {
        right: 20px;
        left: auto
    }
    
    .navbar-nav .dropdown-menu-inner {
        position: relative;
        padding: 1rem
    }
    .navbar-collapse > .container,
    .navbar-collapse > .container-fluid {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding: 0;
    }
}

.navbar-collapse-header {
    display: none
}

@media (max-width:1199.98px) {
    .navbar .navbar-nav .dropdown .dropdown-menu {
        border-top: 0;
        border-left: 3px solid;
        border-radius: 0;
    }
}

.navbar-main {
    padding: 0.5rem 1rem;
}

@media (min-width: 1200px) {
    .navbar-main {
        padding: 0rem 5rem;
    }
}

.dropdown-menu {
    min-width: 14rem
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-item {
    padding: .7rem 1.85rem;
}

.dropdown-menu .dropdown-header {
    color: #4b4d58;
    font-weight: 600
}

.dropdown-toggle:after,
.dropleft .dropdown-toggle:before,
.dropright .dropdown-toggle:after,
.dropup .dropdown-toggle:after {
    display: none
}

.headroom--not-top .navbar-theme-default {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.navbar-nav .nav-link {
    color:  !important;
    text-transform: uppercase !important;
}

.navbar-main {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1) !important;
}

.navbar-nav .nav-link:hover {
    color:  !important;
}

.navbar-nav > .nav-item:not(.dropdown):after, .navbar-nav .nav-item.active:after {
    background: ;
}

.sr-navbar .navbar-nav .nav-link,
.sr-navbar .navbar-nav .active > .nav-link,
.globe_class {
    color:  !important;
}

.sr-navbar .navbar-nav svg,
.sr-navbar .navbar-nav svg g,
.navbar-collapse .collapse-close svg g {
    fill:  !important;
}

.sr-navbar .navbar-nav .nav-link:focus svg,
.sr-navbar .navbar-nav .nav-link:hover svg g,
.dropdown-item:focus svg,
.dropdown-item:hover svg g {
    fill:  !important;
}

.toggler path {
    stroke: ;
}

.dropdown-item,
.lang_list_class li a {
    {% if module.fixed %}
    color:  !important;
    {% else %}
    color:  !important;
    {% endif %}
}

.sr-navbar .navbar-nav .nav-link.disabled {
    color:  !important;
}

.navbar .navbar-nav .dropdown .dropdown-item,
.navbar .navbar-nav .nav-link,
.lang_list_class li a {
    {% if !module.design_settings.custom_font %}
    ;
    font-size: ;
    {% else %}
    font-size: rem;
    {% endif %}
    {% if module.design_settings.uppercase %}
    text-transform: uppercase;
    {% endif %}
}

.navbar-nav .nav-link {
    text-transform: none !important;
}

{% if module.fixed %}
.headroom--not-top .navbar-theme-default .nav-link,
.headroom--not-top .navbar-theme-default .active > .nav-link,
.headroom--not-top .globe_class,
.headroom--not-top .lang_list_class li a{
    color:  !important;
}
.headroom--not-top .navbar-nav svg,
.headroom--not-top .navbar-nav svg g {
    fill:  !important;
}
.headroom--not-top .navbar-theme-default > .nav-item:not(.dropdown):after,
.headroom--not-top .navbar-theme-default .nav-item.active:after,
.headroom--not-top .navbar-theme-default .nav-item:not(.dropdown):after,
.headroom--not-top .navbar-theme-default .nav-item:after {
    background: ;
}
.headroom--not-top .navbar-theme-default .toggler path {
    stroke: ;
}
{% endif %}

.sr-navbar .navbar-nav .nav-link:focus,
.sr-navbar .navbar-nav .nav-link:hover,
.dropdown-item:focus,
.dropdown-item:hover,
.lang_list_class li a:hover,
.globe_class:hover {
    color:  !important;
    background: none;
}

{% if module.fixed && module.transparent %}
.navbar-main {
    position: relative;
}
.headroom--top .navbar-theme-default {
    position: relative;
    background-color: transparent;
}
{% endif %}

{% if module.fixed && !module.transparent %}
.navbar-main {
    position: relative;
    background-color: ;
    backdrop-filter: blur(px);
    -webkit-backdrop-filter: blur(px);
}

body {
    margin-top: 100px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
{% endif %}

{% if !module.fixed && !module.transparent %}
.navbar-main {
    position: relative;
    background-color: ;
    backdrop-filter: blur(px);
    -webkit-backdrop-filter: blur(px);
}
{% endif %}

{% if module.fixed && module.hide_on_scroll %}
.headroom--unpinned {
    transform: translateY(-100%)
}
{% endif %}

@media (max-width:1199.98px) {
    .navbar .navbar-nav .dropdown .dropdown-menu {
        border-top: 0;
        border-left: 3px solid;
        border-radius: 0;
    }
}

.navbar-collapse-header .container {
    display: block;
}

/** Search CSS **/
.search {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
}

input.hs-search-field__input.form-control {
    padding: 0;
    height: auto;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d9d9d9;
    border-radius: 0;
}

.navbar-search-form-wrapper {
    position: absolute;
    background: #fff;
    {% if module.menu_align == "right" %}
    left: 100%;
    {% else %}
    right: 100%;
    {% endif %}
    width: 0;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    opacity: 0;
}

.navbar-search-form-wrapper.open {
    opacity: 1;
    width: 250px;
}

.navbar-search-form-wrapper .hs-search-field {
    width: 100%;
    -webkit-box-shadow: 0 3px 20px 0 rgba(0,0,0,0.1);
    box-shadow: 0 3px 20px 0 rgba(0,0,0,0.1);
}

span.sr-search-toggle {
    position: relative;
    z-index: 1;
}

input.hs-search-field__input.form-control {
    color: #262628;
}

.sr-nav .hs-menu-depth-1 > a:not(.cta-button), .show-search {
    color: #FFFFFF;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.lang_switcher_class {
    border-color: inherit;
}

.globe_class:before {
    content: "\f0ac";
}

.globe_class {
    font-family: FontAwesome;
    font-size: 1.5rem;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: none !important;
    position: relative;
    padding: 2.7rem 1.5rem 2.7rem 2.25rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-color: inherit;
}

.lang_list_class {
    top: 100% !important;
    left: 60% !important;
    box-shadow: 0 1rem 3rem rgb(11 11 12 / 5%);
    border-top: 2px solid;
    border-color: inherit;
    padding: 0;
    min-width: 12rem;
    padding: .7rem 0;
    background: #fff;
    text-align: left;
}

.lang_list_class li {
    border: none !important;
    padding: 0 !important;
}

.lang_list_class li a {
    padding: 1rem 1.85rem;
    display: block;
}

.lang_list_class:after,
.lang_list_class:before {
    display: none;
}

{% if !module.fixed && module.transparent %}
.navbar-main {
    position: relative;
}
nav#navbar-main{
    position: absolute;
}
{% endif %}

@media (max-width: 1199.98px) {
    .sr-navbar .navbar-nav .nav-link,
    .sr-navbar .navbar-nav .active > .nav-link,
    .globe_class,
    .lang_list_class li a {
        {% if module.fixed %}
        color:  !important;
        {% else %}
        color:  !important;
        {% endif %}
    }
    .sr-navbar .navbar-nav svg,
    .sr-navbar .navbar-nav svg g,
    .navbar-collapse .collapse-close svg g{
        {% if module.fixed %}
        fill:  !important;
        {% else %}
        fill:  !important;
        {% endif %}
    }
    .globe_class {
        padding: 1rem 0 2rem 0;
        margin-top: 1.5rem;
        width: 100%;
        font-size: 2rem;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
    .globe_class:hover .lang_list_class {
        display: block;
        left: 0 !important;
        transform: none;
        text-align: left;
        box-shadow: none;
        border-left: 2px solid;
        border-color: inherit;
        border-top: 0;
        width: 100%;
    }
    .navbar-collapse .container,
    .navbar-collapse .container-fluid {
        display: block;
        padding: 0;
    }
    .search {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
        flex-direction: row-reverse;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
        margin: 0.5rem 0;
    }
    .navbar-search-form-wrapper {
        width: 265px !important;
        margin-right: 1rem;
        left: 0;
        right: 0;
        opacity: 1;
        position: relative;
    }
    .navbar-search-form-wrapper .hs-search-field {
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    .sr-nav .hs-menu-depth-1 > a:not(.cta-button):hover {
        color: #333;
        opacity: .6;
    }
    input.hs-search-field__input.form-control {
        color: rgba(85,85,85, 1);
        border-bottom: 1px solid #333;
    }
}

/** Top Bar **/
.top-bar {
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-align:space-between;
    -ms-flex-align:space-between;
    align-items:space-between;
    width:100%;
}

.top-bar .right {
    text-align:right;
}

.top-bar ul {
    padding-left:0;
    margin:0;
}

.top-bar ul li {
    list-style-type:none;
    display:inline-block;
    padding:.5rem 0;
}

.top-bar ul li a {
    padding-right:2rem;
    color:#fff;
    font-size:0.8rem;
}

.top-bar ul li a:hover {
    filter: brightness(110%);
}

.top-bar ul li:last-child a {
    padding-right:0;
}

nav#navbar-main {
    width:100%;
    left: 0;
    top:0;
    z-index:100;
}

.top-bar-text p {
    margin:0;
    font-size:0.9rem;
}

.top-bar-text {
    padding:0.25rem 2rem;
    text-align:center;
}

.close-top-bar i:hover {
    cursor:pointer;
    opacity:1;
}

.hubspot-disable-focus-styles {
    margin: 0 !important
}

.hubspot-disable-focus-styles nav#navbar-main {
    position: relative !important;
}

/* Bold font weight for active dropdown */
.dropdown.show .nav-link {
    font-weight: bold !important;
}

/* Smaller navigation text */
.navbar-nav .nav-link {
    font-size: 0.9rem !important;
}

/* Increase spacing between navigation items */
.navbar-nav .nav-link {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* Centre the logo better */
.navbar-main .navbar-brand {
    margin-top: -6px;
}


/* Single section menus: Left 25%, Right 75% (like Kaseya Company menu) */
.mega-menu.mega-menu-single-section .mega-menu-content .mega-menu-left {
    flex: 0 0 25% !important;
}

.mega-menu.mega-menu-single-section .mega-menu-content .mega-menu-right {
    flex: 0 0 75% !important;
}

/* Multi-section menus: Left 60%, Right 40% (like Kaseya Platform menu) */
.mega-menu.mega-menu-multi-section .mega-menu-content .mega-menu-left {
    flex: 0 0 60% !important;
}

.mega-menu.mega-menu-multi-section .mega-menu-content .mega-menu-right {
    flex: 0 0 40% !important;
    padding: 30px 25px !important;
}

.mega-menu-multi-section .mega-menu-right .featured-image {
    height: 120px !important;
}

/* Mobile override */
@media (max-width: 1199px) {
    .mega-menu.mega-menu-single-section .mega-menu-content .mega-menu-left,
    .mega-menu.mega-menu-multi-section .mega-menu-content .mega-menu-left,
    .mega-menu.mega-menu-single-section .mega-menu-content .mega-menu-right,
    .mega-menu.mega-menu-multi-section .mega-menu-content .mega-menu-right {
        flex: none !important;
        width: 100% !important;
    }
}


/* Make the grey border line extend further in single-section menus */
.mega-menu-single-section .mega-menu-header {
    position: relative !important;
}

.mega-menu-single-section .mega-menu-header::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: -60px !important;
    height: 1px !important;
    background-color: #e9ecef !important;
    border-bottom: 1px solid #e9ecef !important;
}

/* Remove the original border to avoid double lines */
.mega-menu-single-section .mega-menu-header {
    border-bottom: none !important;
}

/* Make single featured block in multi-section menus fill more vertical space */
.mega-menu-multi-section .mega-menu-right {
    align-items: flex-start !important;
}

.mega-menu-multi-section .mega-menu-featured:only-child {
    display: flex !important;
    flex-direction: column !important;
    /* Removed flex: 1 to prevent stretching */
}

.mega-menu-multi-section .mega-menu-featured:only-child .featured-content {
    display: flex !important;
    flex-direction: column !important;
    /* Removed flex: 1 and justify-content: flex-end to prevent stretching */
}

/* Make the image taller in single featured block layout */
.mega-menu-multi-section .mega-menu-featured:only-child .featured-image {
    height: 200px !important;
}

/* Better featured content alignment - headers line up consistently */
.mega-menu-featured {
    display: flex !important;
    flex-direction: column !important;
    min-height: 200px !important;
    /* Removed height: 100% to prevent stretching */
}

.mega-menu-featured .featured-content {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 10px !important;
    /* Removed flex: 1 to prevent stretching */
}

.mega-menu-featured .featured-content h4 {
    margin-bottom: 12px !important;
}

.mega-menu-featured .featured-content p {
    margin-bottom: 16px !important;
    /* Removed flex: 1 to prevent stretching */
}

.mega-menu-featured .featured-content .featured-cta {
    margin-top: auto !important;
}

/* Make sure the featured image doesn't prevent bottom alignment */
.mega-menu-single-section .mega-menu-featured .featured-image {
    flex-shrink: 0 !important;
}

/* Change featured content background from grey to white */
.mega-menu-right {
    background: white !important;
}

/* Add vertical grey line dividing menu from featured content */
.mega-menu-right {
    border-left: 1px solid #e9ecef !important;
}

/* Ensure the border line extends full height */
.mega-menu-content {
    align-items: stretch !important;
}

/* Remove card styling from featured content blocks to make them flat */
.mega-menu-featured {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Remove any padding/styling that creates card appearance */
.featured-content {
    background: transparent !important;
}

.mega-menu-content {
    background: rgba(255, 255, 255, 0.8) !important;
}

.mega-menu-left,
.mega-menu-right {
    background: transparent !important;
}

/* Ensure mega menu links change to pink on hover */
.mega-menu-left .mega-menu-link:hover {
    color: #E54F96 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

/* Also target any other link styles in the mega menu */
.mega-menu-section a:hover {
    color: #E54F96 !important;
    text-decoration: none !important;
}

/* Make sure the transition is smooth */
.mega-menu-left .mega-menu-link {
    transition: color 0.2s ease !important;
}



/* Hide desktop mega menu on mobile */
@media (max-width: 1199px) {
    .navbar-main {
        display: none !important;
    }
}


/* Mobile Navigation Styles */
/* Alternative approach - make mobile nav take more space */
.mobile-nav {
    display: none;
    position: relative;
    width: 100%;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 10px 20px 10px;
    border-bottom: none !important;
    border: none !important;
}

.mobile-brand-logo {
    height: 30px;
    width: auto;
    margin-left: 10px;
}

.mobile-hamburger {
    display: block; /* Changed from flex */
    position: relative;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

.mobile-hamburger span {
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-hamburger span:nth-child(1) {
    top: 6px;
}

.mobile-hamburger span:nth-child(2) {
    top: 13px;
}

.mobile-hamburger span:nth-child(3) {
    top: 20px;
}

.mobile-hamburger.active span:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
}

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

.mobile-hamburger.active span:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
}

.mobile-nav-menu {
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.3s ease; */
    background: white;
    padding-top: 15px;
    padding-bottom: 0;
}

/* Make sure mobile menu takes full height when open */
.mobile-nav-menu.open {
    max-height: fit-content;
    overflow-y: auto;
    min-height: auto; /* Ensure it takes significant space */
}

.mobile-nav-item {
    border-bottom: 1px solid #eee;
}

.mobile-nav-toggle {
    width: 100%;
    padding: 25px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-arrow {
    display: none;
}

.mobile-nav-toggle.active .mobile-arrow {
    display: none;
}

.mobile-nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-nav-dropdown.open {
    max-height: none;
}

.mobile-nav-section {
    padding: 15px 20px;
    margin: 0 8px;
}

.mobile-nav-section:not(:first-child) {
    margin-top: 10px;
    padding-top: 10px;
}

.mobile-nav-section:first-child {
    margin-top: 0;
    padding-top: 15px;
}

.mobile-nav-section .mobile-nav-header {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin: 0 -4px 10px -4px;
    padding: 0 4px 8px 4px;
    border-bottom: 1px solid #ddd !important;
}

.mobile-nav > .mobile-nav-header {
    border-bottom: none !important;
}

.mobile-nav-link,
.mobile-nav-link-direct {
    display: block;
    padding: 20px 0;
    margin-left: 8px;
    margin-right: 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-nav-link::after,
.mobile-nav-link-direct::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -12px;
    right: 0;
    height: 1px;
    background: #eee;
    border-bottom: 1px solid #eee;
}

.mobile-nav-link {
    border-bottom: none;
}

.mobile-nav-link-direct {
    border-bottom: none;
}

.mobile-nav-link:last-child,
.mobile-nav-section .mobile-nav-link:last-of-type {
    border-bottom: none !important;
}

.mobile-nav-link:hover,
.mobile-nav-link-direct:hover {
    color: ;
    text-decoration: none;
}

.mobile-nav-link.overview {
    font-weight: 500;
    color: ;
}

.mobile-nav-link-direct {
    padding: 15px 20px;
    font-weight: 500;
}

.mobile-nav-cta {
    padding: 20px;
    text-align: center;
    border-top: 2px solid #eee;
}

/* Show mobile nav only on mobile */
@media (max-width: 1199px) {
    .mobile-nav {
        display: block;
    }
}

/* Remove fixed padding, let JavaScript handle it dynamically */
body.mobile-nav-open {
    /* Remove the fixed padding-top: 400px; */
}

.mobile-nav-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 2px solid #eee;
    text-align: center;
}

.mobile-footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.mobile-footer-content span {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.mobile-footer-cta {
    display: inline-flex;
    align-items: center;
    background: ;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.mobile-dropdown-container {
    background: white;
    border-radius: 12px;
    margin: 25px 15px 15px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    padding-top: 15px;
}



.mobile-dropdown-content {
    padding: 15px 20px;
}

.mobile-dropdown-footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 15px 20px;
    text-align: center;
}

.mobile-dropdown-footer-content {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 25px;
}

.mobile-dropdown-footer span,
.mobile-dropdown-footer .mobile-dropdown-cta {
    font-size: 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    vertical-align: baseline !important;
}

.mobile-dropdown-footer span {
    color: #666 !important;
    font-weight: 400 !important;
}

.mobile-dropdown-footer .mobile-dropdown-cta {
    font-weight: 600 !important;
}

.mobile-dropdown-footer .mobile-dropdown-cta {
    background: none !important;
    color: #333 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    border: none !important;
    border-radius: 0 !important;
}

.mobile-dropdown-footer .mobile-dropdown-cta::after {
    content: " →";
    margin-left: 5px;
}

.mobile-dropdown-footer .mobile-dropdown-cta:hover {
    color:  !important;
    text-decoration: none;
    background: none !important;
}

.mobile-dropdown-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.mobile-dropdown-social a {
    color: #666;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-dropdown-social a:hover {
    color: ;
}

@media (max-width: 1199px) {
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Remove any default browser margins on the last elements */
.mobile-nav-item:last-child {
    border-bottom: none !important;
}

/* Fix white space when only main nav items are showing */
.mobile-nav-menu.open:not(:has(.mobile-nav-dropdown.open)) {
    max-height: fit-content !important;
}

/* Fallback for browsers that don't support :has() */
.mobile-nav-menu.open {
    max-height: fit-content !important;
}

.mobile-nav-menu.open .mobile-nav-dropdown.open {
    max-height: none !important;
}

/* Ensure no extra spacing on mobile nav container */
.mobile-nav {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.mega-menu-featured .featured-image {
    width: calc(100% - 40px);
    height: 200px;
    overflow: hidden;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
}

.mega-menu-featured .featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
}


.navbar-nav {
    margin-top: 6px;
}