@media (min-width: 1200px) {
  .page-template-front-page-template .site-header {
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent !important;
  }
  .hero-section {
    min-height: 100vh;
  }
  .header-sticky-wrapper.is-sticky .site-header{
    background:#141823 !important;
    }
}
.header-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 1030;
}



/* ========== MEGA MENU STYLES ========== */
.mega-menu-dropdowns {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mega-menu-dropdowns.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.mega-menu-panel {
    display: none;
    background: #141823;
    border-radius: var(--radius-lg);
    margin: 20px auto 0;
    border-top: 1px solid #374151;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 85%;
    
}

.mega-menu-panel.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.mega-menu-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px;
}

.mega-menu-content[data-layout="solutions"] {
    display: grid;
    grid-template-columns: 60% 35%;
    align-items: start;
}

.mega-menu-content[data-layout="storage"] {
    display: block;
    width: 100%;
}

.mega-menu-section {
    flex: 1;
    min-width: 200px;
    padding-right: 40px;
    border-right: 1px solid #374151;
}

.mega-menu-section:last-child {
    border-right: none;
    padding: 0;
}

.mega-menu-section-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #FDE0C7;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    line-height: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #374151;
    margin-bottom: 24px;
}

.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.mega-menu-content[data-layout="solutions"] .mega-menu-section:first-child .mega-menu-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px;
}

.mega-menu-content[data-layout="solutions"] .mega-menu-section:last-child .mega-menu-columns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px;
    /* padding: 24px 0; */
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-column-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 24px;
    margin-bottom: 16px;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Mega menu: add spacing only for All Backup Solutions item (CSS-only) */
.mega-menu-list li > a.mega-menu-link[href*="all-backup-solutions"] {
  margin-top: 24px;
}

.mega-menu-link {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: #A1A3A7;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    line-height: 140%;
}

.mega-menu-list li {
    padding-bottom: 8px;
}

.mega-menu-link:hover,
.mega-menu-link.active {
    color: #DE3C0D;
    padding-left: 12px;
}

.mega-menu-link:hover::before,
.mega-menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-orange);
    border-radius: 2px;
}

.mega-menu-storage-layout {
    position: relative;
    width: 100%;
}

.mega-menu-storage-title {
    width: 100%;
    margin-bottom: 24px;
}

.mega-menu-storage-wrapper {
    display: flex;
    justify-content: space-between;
}

.mega-menu-storage-list {
    flex: 1;
    min-width: 0;
}

.mega-menu-content[data-layout="why-switch"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mega-menu-content[data-layout="resources"] {
    display: grid;
    grid-template-columns: repeat(3, 33.33%);
    align-items: start;
}

.mega-menu-illustration {
    padding-top: 15%;
}

.illustration-image {
    width: 250px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    /* padding-top: 15%; */
    border: 1px solid #374151
}
.diagram-image{
  height:200px;   
}

.mega-menu-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-white-10);
}

.mega-menu-footer-link {
    font-family: var(--font-body);
    font-size: var(--fs-14);
    font-weight: var(--fg-600);
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mega-menu-footer-link:hover {
    color: var(--color-orange-hover);
}

.mega-menu-footer-text {
    font-family: var(--font-body);
    font-size: var(--fs-14);
    color: var(--color-white-60);
    margin-top: 24px;
    line-height: 1.6;
}

.nav-link{
    padding:0 !important;
}
.nav-item.mega-menu-item .nav-link {
    position: relative;
}

.nav-item.mega-menu-item.active .nav-link,
.nav-item.mega-menu-item:hover .nav-link {
    color: var(--color-orange) !important;
}

.nav-item.mega-menu-item.active .nav-link::after,
.nav-item.mega-menu-item:hover .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-orange);
}

@media (max-width: 991.98px) {
    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Mobile Menu Overlay - Full Screen, slides from RIGHT */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #141823;
        z-index: 1020;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    /* Mobile Menu Header Bar - starts below topbar */
    .navbar-collapse::before {
        content: '';
        display: block;
        height: 70px;
        position: sticky;
        top: 0;
        background: #141823;
        z-index: 9999;
        margin-bottom: 0;
    }

    .navbar-collapse .navbar-nav {
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 12;
        display: flex;
        flex-direction: column;
    }

    /* Logo in Mobile Menu - Normal position, not sticky */
    .site-header .navbar-brand {
        position: relative;
        z-index: 1024;
    }

    .site-header .navbar-brand img {
        max-height: 40px;
        width: auto;
    }

    /* Hamburger Icon Position - Normal position, not sticky */
    .navbar-toggler {
        position: relative;
        z-index: 1025;
        background: transparent;
        border: none;
        padding: 8px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .navbar-toggler:hover {
        opacity: 0.8;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M24 6L6 24'/%3e%3c/svg%3e");
    }

    .mega-menu-dropdowns {
        display: none !important;
    }

    /* Navigation Links with Arrows */
    .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px !important;
        color: #fff !important;
        font-size: 14px;
        font-weight: 600;
        border: none;
        position: relative;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    /*.navbar-nav .nav-link::after {*/
    /*    content: '→';*/
    /*    font-size: 18px;*/
    /*    color: #fff;*/
    /*    margin-left: auto;*/
    /*    transition: transform 0.2s ease;*/
    /*}*/

    /* Active nav link - Orange color */
    .navbar-nav .nav-item.mega-menu-item.active > .nav-link {
        color: var(--color-orange) !important;
        background-color: transparent;
    }

    /* My Account Section - Move to bottom */
    .navbar-nav .nav-item-account {
        margin-top: 25vh;
        order: 999;
    }

    .navbar-nav .nav-item-account .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 16px 20px !important;
        font-weight: 500;
    }

    .navbar-nav .nav-item-account .nav-link::after {
        display: none;
    }

    .navbar-nav .nav-item-account .nav-link img {
        width: 20px;
        height: 20px;
    }

    /* Buttons Section - At bottom (not fixed) */
    .navbar-nav ~ .d-flex {
        position: relative;
        background: #141823;
        padding: 20px;
        flex-direction: row;
        gap: 24px !important;
        margin: 0;
        z-index: 13;
    }

    .navbar-nav ~ .d-flex .btn {
        width: 100%;
        height:35px;
        padding: 8px 12px !important;
        font-size: 11px !important;
        font-weight: 600;
        text-align: center;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .navbar-nav ~ .d-flex .btn-outline-light {
        background: transparent;
        border: 1px solid #fff;
        color: #fff;
    }

    .navbar-nav ~ .d-flex .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #fff;
        color: #fff;
    }

    .navbar-nav ~ .d-flex .btn-primary {
        background: #DE3C0D;
        border: none;
        color: #fff;
    }

    .navbar-nav ~ .d-flex .btn-primary:hover {
        background: #DE3C0D;
        color: #fff;
    }

    /* Submenu Panel - Desktop-like Design but Responsive */
    .navbar-nav .nav-item .mega-menu-panel {
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
    }

    .navbar-nav .nav-item.active .mega-menu-panel {
        display: block;
        max-height: 5000px;
        padding: 20px;
    }

    /* Submenu Content - Desktop Structure but Stacked Vertically */
    .navbar-nav .nav-item .mega-menu-content,
    .navbar-nav .nav-item .mega-menu-content[data-layout="solutions"],
    .navbar-nav .nav-item .mega-menu-content[data-layout="storage"],
    .navbar-nav .nav-item .mega-menu-content[data-layout="why-switch"],
    .navbar-nav .nav-item .mega-menu-content[data-layout="resources"] {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0;
        background: transparent;
        margin: 0;
    }

    /* Sections - Desktop-like but stacked */
    .navbar-nav .nav-item .mega-menu-section {
        padding: 0;
        margin: 0;
        border-right: none;
        border-bottom: 1px solid #374151;
        padding-bottom: 24px;
        margin-bottom: 24px;
        width: 100%;
    }

    .navbar-nav .nav-item .mega-menu-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Section Titles - Desktop Style */
    .navbar-nav .nav-item .mega-menu-section-title {
        font-family: var(--font-heading);
        font-size: 17px;
        font-weight: 700;
        color: #FDE0C7;
        text-transform: uppercase;
        letter-spacing: 0.9px;
        line-height: 28px;
        padding-bottom: 24px;
        border-bottom: 1px solid #374151;
        margin-bottom: 24px;
    }

    /* Columns - Stack vertically on mobile */
    .navbar-nav .nav-item .mega-menu-columns,
    .navbar-nav .nav-item .mega-menu-content[data-layout="solutions"] .mega-menu-section:first-child .mega-menu-columns,
    .navbar-nav .nav-item .mega-menu-content[data-layout="solutions"] .mega-menu-section:last-child .mega-menu-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Column - Desktop structure */
    .navbar-nav .nav-item .mega-menu-column {
        display: flex;
        flex-direction: column;
    }

    /* Column Titles - Desktop Style */
    .navbar-nav .nav-item .mega-menu-column-title {
        font-family: var(--font-body);
        font-size: 16px;
        font-weight: 500;
        color: #FFFFFF;
        line-height: 24px;
        margin-bottom: 16px;
    }

    /* List - Desktop structure */
    .navbar-nav .nav-item .mega-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    /* Links - Desktop styling */
    .navbar-nav .nav-item .mega-menu-link {
        font-family: var(--font-body);
        font-size: 16px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        display: flex;
        align-items: center;
        padding: 0 0 8px;
        transition: all 0.3s ease;
        position: relative;
        line-height: 100%;
    }

    .navbar-nav .nav-item .mega-menu-link:hover,
    .navbar-nav .nav-item .mega-menu-link.active {
        color: var(--color-orange);
        padding-left: 12px;
    }

    .navbar-nav .nav-item .mega-menu-link:hover::before,
    .navbar-nav .nav-item .mega-menu-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background: var(--color-orange);
        border-radius: 2px;
    }

    /* Storage Layout - Stack vertically */
    .navbar-nav .nav-item .mega-menu-storage-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .navbar-nav .nav-item .mega-menu-storage-title {
        width: 100%;
        margin-bottom: 0;
    }

    .navbar-nav .nav-item .mega-menu-storage-wrapper {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .navbar-nav .nav-item .mega-menu-storage-list {
        width: 100%;
    }

    /* Hide diagrams and illustrations on mobile */
    .navbar-nav .nav-item .mega-menu-diagram,
    .navbar-nav .nav-item .diagram-image,
    .navbar-nav .nav-item .mega-menu-illustration,
    .navbar-nav .nav-item .illustration-image {
        display: none;
    }

    /* Fix z-index for mobile menu to appear below announcement bar */
    .topbar {
        z-index: 1021;
        position: relative;
    }

    .site-header {
        z-index: 1020;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-item .mega-menu-panel {
        display: none !important;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}