/* === MEGA MENU CORE === */
.mega-menu {
    background: #0a2540;
    font-family: system-ui, sans-serif;
    min-height: 90px;
  }
  
  .mega-menu .main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
  }
  
  .mega-menu .main-menu > li {
    position: relative;
  }
  
  .mega-menu .main-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease-in-out;
  }
  
  .mega-menu .main-menu > li:hover {
    background: #102b4d;
  }
  
  /* === DROPDOWN PANEL === */
  .mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 700px;
    display: none;
    flex-wrap: wrap;
    gap: 30px;
    border-top: 3px solid #ff6600;
  }
  
  .has-mega:hover .mega-dropdown {
    display: flex;
  }
  
  /* === COLUMN STYLING === */
  .mega-column {
    flex: 1;
    min-width: 180px;
  }
  
  .mega-column h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #0a2540;
    font-weight: bold;
  }
  
  .mega-column a {
    display: block;
    margin-bottom: 8px;
    color: #0a2540;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
  }
  
  .mega-column a:hover {
    text-decoration: underline;
    color: #ff6600;
  }
  
  /* === RESPONSIVE CLEANUP === */
  @media screen and (max-width: 768px) {
    .mega-menu .main-menu {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .mega-menu .main-menu > li {
      width: 100%;
    }
  
    .mega-dropdown {
      position: static;
      width: 100%;
      flex-direction: column;
      box-shadow: none;
      padding: 15px;
      border-top: none;
    }
  
    .has-mega:hover .mega-dropdown {
      display: block;
    }
  }
  #logo {
    display: flex;
    align-items: center;
    width: 176px; /* 84px + 84px + 8px spacing */
    margin:8px;
  }
  
  .logo-img, .logo-icon {
    background-color: white;
    padding: 5px;
    border-radius: 8px;
  }
  
  .logo-img {
    width: 84px;
    height: 84px;
  }
  
  .logo-icon {
    width: 84px;
    height: 84px;
    font-size: 1.5rem;
    color: #000;
  }

  .active {
    border-bottom: 2px solid #ff6600; /* Example active style */
  }
  
  /* Find and modify the hamburger menu button styles */
  .hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 20px; /* Position from right side */
    top: 2%;    /* Center vertically */
    transform: translateY(-50%); 
    z-index: 1000;
}

/* Calculator drawer */
.calc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}
.calc-overlay.open {
    opacity: 1;
    visibility: visible;
}
.calc-drawer {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    height: 100vh;
    background: #0c2747;
    color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.25s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.calc-drawer.open {
    left: 0;
}
.calc-drawer__header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.calc-drawer__list {
    padding: 12px 16px 24px;
    overflow-y: auto;
    flex: 1;
}
.calc-drawer__item {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.05);
}
.calc-drawer__item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Sidebar list */
.calc-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.calc-sidebar__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.calc-sidebar__list li {
    margin-bottom: 6px;
}
.calc-sidebar__list a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f5f7fb;
    color: #0c2747;
    text-decoration: none;
    font-size: 14px;
}
.calc-sidebar__list a:hover {
    background: #e2e8f4;
    color: #0c2747;
}

.calc-sidebar__heading {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 16px 0 8px;
    color: #0c2747;
}

.calc-sidebar__heading:first-of-type {
    margin-top: 0;
}

.calc-menu-heading {
    font-weight: 600;
    padding: 8px 10px;
    color: #fff;
}

/* Modify your existing media query for 768px */
@media screen and (max-width: 1024px) {
    /* Add these specific display rules */
    .hamburger-menu {
        display: block; /* Only show hamburger on mobile */
    }

    .mega-menu .main-menu {
        display: none; /* Hide menu by default on mobile */
    }

    .mega-menu .main-menu.active {
        display: block; /* Show menu when active class is added */
    }

    /* Your other existing mobile styles remain unchanged */
}

/* Add this to ensure menu shows on desktop */
@media screen and (min-width: 1024px) {
    .mega-menu .main-menu {
        display: flex !important; /* Force display on desktop */
    }

    .calc-drawer {
        width: 360px;
        left: -360px;
    }
}

@media (max-width: 576px) {
    .calc-drawer {
        width: 90%;
        left: -90%;
    }
}

#calc-sidebar-col {
    display: none;
}

@media (min-width: 992px) {
    #calc-sidebar-col {
        display: block;
    }
}

#calc-sidebar-col.sidebar-hidden {
    display: none !important;
    flex: 0 !important;
    max-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
}

#ad-sidebar-col {
    display: none;
}

@media (min-width: 992px) {
    #ad-sidebar-col {
        display: block;
    }
}

#ad-sidebar-col.sidebar-hidden {
    display: none !important;
    flex: 0 !important;
    max-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
}

#main-content-col.main-full {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}
