﻿

body.mega-ready .top-level-menu {
    visibility: visible;
}
.top-level-menu {
    visibility: hidden;
    gap: 7px;
}
/* Layout Wrapper */
.mega-menu-container {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

.mega-menu-wrapper {
    width: 100%;
    position: relative;
    font-family: "Barlow Condensed",Helvetica, Arial, sans-serif;
}

/* Header */
.mega-menu-header {
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 32px;
    padding: 10px 20px;
}

    .mega-menu-header img {
        width: 193px;
        object-fit: contain;
    }



.top-btn {
    align-items: center;
    flex-direction: row;
    line-height: 1;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 20px;
    font-family: "Barlow Condensed",Helvetica, Arial, sans-serif;
}
    .top-btn i {
        display: inline-flex;
        align-items: center;
        text-decoration: none !important;
    }
    .top-btn:hover,
    .top-btn.active {
        color: #0177b2;
        text-decoration: underline;
    }

/* Mega Panel */
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    overflow: hidden;
    background: #0f0f0f;
    border-top: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

/* Column Layout — FIXED FIRST & LAST, FLEX MIDDLE */
.mega-columns {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    flex-wrap: nowrap;
}

.mega-group {
    display: none;
    width: 100%;
    flex-direction: row;
}

.column {
    padding: 0 1rem;
    border-right: 1px solid #565656;
    color: #fff;
    box-sizing: border-box;
}

    .column:last-child {
        border-right: none;
    }

    /* FIRST FIXED COLUMN */
    .column.parent-column {
        flex: 0 0 clamp(180px, 22%, 250px);
    }

    /* LAST FIXED COLUMN */
    .column.edge-last {
        flex: 0 0 clamp(180px, 22%, 250px);
    }

    /* MIDDLE FLEX COLUMNS */
    .column.mid {
        flex: 1;
    }

    .column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .column li,
    .column li a {
        display: block;
        padding: 0.2rem 0;
        color: #fff;
        text-decoration: none;
        font-size: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .column li a:hover {
            text-decoration: underline!important;
            cursor: pointer;
        }

.column-title a {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    color: inherit;
}
.menu-third a {
    font-size: 16px!important;
    font-family: 'Source Sans 3';
    line-height:25px;
}
.mega-menu-placeholder {
    padding: 20px;
}

.mega-menu-search {
    padding: 8px;
    width: 200px;
}

/* === Responsive Mobile Styles === */


/* ---------------------------------------------------
   MOBILE MENU BASE
--------------------------------------------------- */
.mobile-menu-container {
    max-height: 0;
    overflow: hidden;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #0f0f0f;
    color: white;
    z-index: 9999;
    transition: max-height 0.3s ease-in-out;
    padding-left:10px;
}

    .mobile-menu-container.open {
        max-height: 500px;
    }

.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222c;
    padding: 8px;
}

    .menu-row a {
        color: #fff;
        text-decoration: none;
        display: inline-block;
        font-family: "Barlow Condensed",Helvetica, Arial, sans-serif;
        text-transform:uppercase;
        font-size:1.5rem;
    }

.toggle-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    mask: url("../../images/icons/chevron-down.svg") no-repeat center / contain;
    -webkit-mask: url("../../images/icons/chevron-down.svg") no-repeat center / contain;
    background-color: white; 
}

.menu.open > .menu-row .toggle-icon {
    transform: rotate(180deg);
}

.mobile-menu-level2,
.mobile-menu-level3 {
    display: none;
    background: #111;
}

.menu.open > .mobile-menu-level2,
.menu.open > .mobile-menu-level3 {
    display: block;
}
.mobile-menu-level2 .menu-row {
    border-bottom: none;
    padding: 10px;
    font-family: 'Source Sans 3';
 
    text-transform: uppercase;
}
.mobile-menu-level3 .menu-row {
    border-bottom: none;
    padding: 10px;

}
.mobile-menu-level2 .menu-row a {
    font-size: 1rem;
    font-family: 'Source Sans 3';
    text-transform:none;
}

.mobile-menu-level3 .menu-row a {
    padding-left: 40px;
    font-family: 'Source Sans 3';
    text-transform: none;
}

    .mobile-menu-level2 .menu-row a:hover,
    .mobile-menu-level3 .menu-row a:hover {
        text-decoration: underline;
    }

.mobile-menu-level1 > .menu.open > .menu-row a {
    text-decoration: underline !important;
}

.mobile-menu-level2 > .menu.open > .menu-row a {
    text-decoration: underline!important;
}


.menu-toggle {
    border: none;
    padding: 0;
    width: 45px;
    height: 45px;
    background-color: #0277b2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
    
    .menu-toggle span {

        width: 28px;
        height: 28px;
        mask: url("../../images/icons/bar.svg") no-repeat center / contain;
        -webkit-mask: url("../../images/icons/bar.svg") no-repeat center / contain;
        background-color: white;
    }
    .menu-toggle.active {
        border: 2px solid #0277b2; /* blue border */
        background: transparent; /* transparent background */
        padding: 0;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin:10px;
        /* transition removed */
    }
    .menu-toggle.active span {
        width: 15px;
        height: 15px;
        display: block;
        mask: url("../../images/icons/close.svg") no-repeat center / contain;
        -webkit-mask: url("../../images/icons/close.svg") no-repeat center / contain;
        background-color: #0277b2;
    }
/* Mobile mode */
@media (max-width: 979px) {
    .menu-toggle {
        display: block; /* <=== Show toggle button */
        position: absolute;
        right: 20px;
        top: 15px;
        z-index: 10002;
        color: #0f0f0f;
    }

    /* Hide desktop menus */
    .top-level-menu, .mega-panel {
        display: none !important; /* <=== Hide desktop menus on mobile */
    }

    .mega-menu-header {
        padding: 20px;
        justify-content:left;
    }
}

/* Desktop mode */
@media (min-width: 980px) {
    /* Hide mobile menu & toggle */
    .mobile-menu-container,
    .menu-toggle {
        display: none !important;
    }

    /* Mega panel shows only if open */
    .mega-panel.open {
        display: block;
    }
  
}

