

#space {
            height: 125px!important;
        }


    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    

    body {
      font-family: 'Poppins', sans-serif;
      background-color: #f9f9f9;
    }

    .perfectmenu-top-bar {
      background-color: #040525;
      color: #fff;
      padding: 8px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

#perfectmenu-container {
      position: fixed!important;
      z-index: 99999!important;
      width: 100%!important;
    }

    .perfectmenu-top-left,
    .perfectmenu-top-right {
      display: flex;
      gap: 15px;
    }

    .perfectmenu-top-bar a {
      display: flex;
      align-items: center;
      color: #fff;
      text-decoration: none;
      font-size: 14px;
      gap: 8px;
    }

    .perfectmenu-icon {
      width: 35px;
      height: 35px;
      object-fit: contain;
    }

    .perfectmenu-navbar {
      background-color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 15px 10%;
      padding-right: 0%!important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      position: relative;
      gap: 5px!important;
      font-size: 14px;
    }

    .perfectmenu-logo {
      flex-shrink: 0;
    }

    .perfectmenu-logo img {
      height: 40px;
    }

    .perfectmenu-navbar ul {
      list-style: none;
      display: flex;
      justify-content: center;
      align-items: center;
      flex: 1;
      padding: 0;
      gap: 10px!important;
    }

    .perfectmenu-navbar ul li {
      position: relative;
    }

    .perfectmenu-navbar ul li a {
      text-decoration: none;
      color: #000;
      font-weight: 500;
      padding: 12px 10px;
      display: block;
      transition: 0.3s ease;
      text-transform: uppercase;
    }

    .perfectmenu-navbar ul li a:hover,
    .perfectmenu-navbar ul li a.active {
      color: #144a91;
      border-bottom: 2px solid #144a91;
    }

    .perfectmenu-hamburger {
      display: none;
      font-size: 28px;
      cursor: pointer;
    }

    .perfectmenu-dropdown {
      max-height: 0;
      overflow: hidden;
      position: absolute;
      background-color: #f4f4f4;
      top: 100%;
      left: 0;
      min-width: 175px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.4s ease;
      z-index: 1000;
    }

    .perfectmenu-dropdown a {
      display: block;
      padding: 10px;
      text-decoration: none;
      color: #000;
    }

    .perfectmenu-dropdown a:hover {
      background-color: #eee;
    }

     .overflow {
        display: none;
       
       
      }

    @media (min-width: 915px) {
      .perfectmenu-nav-item:hover .perfectmenu-dropdown {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
      }

      .overflow { display: none !important; }

     

      
    }

    @media (max-width: 914px) {
      .perfectmenu-navbar {
        flex-wrap: wrap;
        padding-left: 5%;
        padding-right: 5%!important;
        justify-content: space-between;
        align-items: center;
        max-width: 914px!important;
      }

      .perfectmenu-logo {
        margin-right: auto;
        padding-right: 5%!important;
      }

      .perfectmenu-hamburger {
        display: block;
        margin-left: auto;
       
      }

      .perfectmenu-navbar ul {
        flex-direction: column;
        align-items: flex-start;
        background-color: #ffffff;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        /* UPDATED: add opacity/visibility/pointer-events so nothing peeks before open */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        /* UPDATED: include opacity in the transition for a clean fade-in */
        transition: max-height 0.4s ease, opacity 0.2s ease;
        padding-left: 0;
      }

      .perfectmenu-navbar ul.open {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* UPDATED: reveal when open */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      .perfectmenu-navbar ul li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
      }

      .perfectmenu-navbar ul li a {
        width: 100%;
        padding: 12px 20px;
        text-align: left;
      }

      .perfectmenu-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 0;
        max-height: 0;
        background-color: #fafafa;
        transition: max-height 0.4s ease, opacity 0.3s ease;
      }

      .perfectmenu-nav-item.open .perfectmenu-dropdown {
        max-height: 300px;
        opacity: 1;
      }

      .perfectmenu-nav-links {
        background-color:  #ffffff!important;
      }

      
    }


    /* Right-side CTA */
.perfectmenu-right { 
  margin-left: auto;              /* pushes the button to the far right in the flex row */
  display: flex; 
  align-items: center;
  margin-right: 75px;
}

.perfectmenu-cta {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 9999px;          /* fully rounded corners */
  background: #144a91;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #144a91;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.perfectmenu-cta:hover,
.perfectmenu-cta:focus {
  background: #ffffff;
  color: #144a91;
  border-color: #144a91;
}

/* Mobile spacings so it sits nicely next to the hamburger */
@media (max-width: 913px) {
  .perfectmenu-right { margin-right: 8px; display: none!important;}
  .perfectmenu-cta { padding: 8px 14px; font-size: 14px; }

.fas, .fa-bars {
    color: #000000!important;
}

}
@media (max-width: 515px) {
 .perfectmenu-navbar {
        
        max-width: 515px!important;
      }
    }







<style>
/* --- Responsive top bar (no mobile-only rules) --- */

/* Let the bar and its sides flex and wrap if needed */
.perfectmenu-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;        /* prevent overflow/cutoff */
  min-width: 0;           /* allow children to shrink */
}

.perfectmenu-top-left,
.perfectmenu-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;        /* let items wrap before they overflow */
  min-width: 0;
}

/* Keep icon size stable */
.perfectmenu-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Smoothly scale label text down as space gets tight */
.perfectmenu-top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;                     /* keep each item on one line */
  font-size: clamp(12px, 1.1vw, 14px);     /* gradual shrink but readable */
  line-height: 1.2;
  padding: 4px 0;
  min-width: 0;
}

/* If wrapping occurs, keep items nicely spaced on the next line */
.perfectmenu-top-left a,
.perfectmenu-top-right a {
  margin: 2px 0;
}

/* Tablet-ish tightening (optional) */
@media (max-width: 992px) {
  .perfectmenu-top-left, .perfectmenu-top-right { gap: 10px; }
  .perfectmenu-top-bar a { gap: 6px; }
}

/* Ultra-narrow screens: allow a clean wrap without overlap */
@media (max-width: 520px) {
  .perfectmenu-top-bar { gap: 8px; }
  .perfectmenu-top-left { gap: 8px;}
  .perfectmenu-top-right {
    display: none!important;
  }


   #space {
      height: 100px;
    }

}

</style>


@media (min-width: 915px){ .overflow{ display:none !important; } }

