/* AIER Navigation CSS */

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

body {
  background: #fff;
}

header {
  position: relative;
  width: 100%;
  background: #fff;
}

.brandlogo {
  height: 80px;
  max-height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* =================================================================
   Desktop Navigation Architecture (>= 992px)
   ================================================================= */
@media screen and (min-width: 992px) {
  #site-header,
  header.nav-fixed,
  header#site-header {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 0 !important;
    border: none !important;
    z-index: 1020 !important;
  }

  .outer-nav {
    background-color: #ffffff;
    min-height: 68px !important;
    height: 68px !important;
    max-height: 68px !important;
    width: 100% !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1020 !important;
  }

  .outer-nav .header {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding-left: 20px !important;
    padding-right: 25px !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .outer-nav .header > .col-12:first-child {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
  }

  /* Header logo */
  .brandlogo {
    height: 105px;
    position: absolute;
    top: 0;
    left: 25px !important;
    background: #fff;
    padding: 4px 10px;
    border-radius: 0px 0px 24px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    margin: 0;
  }

  .logo-text {
    font-size: 17px;
    z-index: 2;
    color: #06163a;
    position: relative;
    margin: 0 0 0 140px !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    height: 68px;
    line-height: 1.25;
  }

  #cssmenu {
    margin: 0 0 0 auto !important;
    height: 68px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    padding: 0 !important;
  }

  #cssmenu > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    height: 68px !important;
    gap: 3px !important;
    float: none !important;
    width: auto !important;
  }

  #cssmenu > ul > li {
    position: relative;
    margin: 0;
    height: 68px;
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    float: none;
    transition: all .2s ease;
  }

  #cssmenu > ul > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    padding: 0 12px;
    font-size: 13.5px;
    letter-spacing: 0.2px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    border-radius: 6px 6px 0 0 !important;
    transition: all .2s ease;
    background: transparent;
    line-height: 1;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  /* Hover state for top-level menu */
  #cssmenu > ul > li:hover > a {
    background: rgba(10, 69, 163, 0.08);
    color: #0a45a3;
    border-radius: 6px 6px 0 0 !important;
  }

  #cssmenu > ul > li:hover {
    background: transparent !important;
    border-radius: 0 !important;
  }

  /* Active Top-Level Menu Highlight */
  #cssmenu > ul > li.active,
  #cssmenu > ul > li.active:hover {
    background: transparent !important;
    border-radius: 0 !important;
  }

  #cssmenu > ul > li.active > a,
  #cssmenu > ul > li > a.active-link {
    background: #0a45a3 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: none !important;
    border-radius: 6px 6px 0 0 !important;
  }

  #cssmenu > ul > li.active:hover > a {
    background: #083782 !important;
    color: #ffffff !important;
  }

  #cssmenu > ul > li.d-sm-none,
  #cssmenu > ul > li.nav-staff-drawer,
  #cssmenu > ul > li.nav-enroll-drawer {
    display: none !important;
  }

  /* Dropdown Menu styling - perfectly aligned to bottom of navbar */
  #cssmenu ul ul {
    position: absolute !important;
    left: -9999px;
    top: 100% !important;
    z-index: 1030 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0a45a3 !important;
    box-shadow: 0 8px 24px rgba(6, 22, 58, 0.25) !important;
    border-radius: 0 0 8px 8px !important;
    border: none !important;
    min-width: 215px !important;
    width: max-content !important;
    overflow: hidden !important;
  }

  /* Invisible hover bridge */
  #cssmenu ul ul:before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
  }

  #cssmenu ul ul li {
    height: 0;
    transition: all .2s ease;
    background: #0a45a3 !important;
    display: block !important;
    float: none !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  #cssmenu ul ul li:last-child,
  #cssmenu ul ul li:last-child > a {
    border-bottom: 0 !important;
    border-radius: 0 0 8px 8px !important;
  }

  /* Dropdown hover behavior */
  #cssmenu li:hover > ul {
    left: 0 !important;
    top: 100% !important;
  }

  #cssmenu li:hover > ul > li {
    height: 38px;
    overflow: visible;
    display: flex !important;
    align-items: center;
  }

  #cssmenu ul ul li a {
    padding: 0 18px;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    transition: all .2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
  }

  /* Dropdown Item Hover */
  #cssmenu ul ul li:hover {
    background: #ffa300 !important;
  }

  #cssmenu ul ul li:hover > a {
    color: #062860 !important;
    padding: 0 18px;
    font-weight: 600;
  }

  /* Active Dropdown Sub-Item Highlight */
  #cssmenu ul ul li a.active-link,
  #cssmenu ul ul li.active > a {
    color: #062860 !important;
    font-weight: 700;
    background: #ffa300 !important;
  }

  #cssmenu ul ul li:hover a.active-link {
    color: #062860 !important;
  }

  /* Dropdown Caret Icon */
  .dropdown-icon {
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.25s ease;
  }

  #cssmenu > ul > li:hover > a .dropdown-icon {
    transform: rotate(180deg);
  }
}

/* =================================================================
   Mobile & Tablet Navigation (<= 991.98px) - Clean Floating White Card
   ================================================================= */
@media screen and (max-width: 991.98px) {
  #site-header,
  header.nav-fixed,
  header#site-header {
    z-index: 1020 !important;
  }

  .outer-nav {
    position: relative !important;
    min-height: 60px !important;
    height: 60px !important;
    background: #ffffff !important;
    padding: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    z-index: 1020 !important;
  }

  .outer-nav .header {
    position: relative !important;
    min-height: 60px !important;
    height: 60px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .outer-nav .header > .col-12:first-child {
    height: 60px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 15px !important;
    padding-right: 65px !important;
    width: 100% !important;
  }

  .brandlogo {
    height: 78px !important;
    position: absolute !important;
    left: 15px !important;
    top: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    padding: 4px 8px !important;
    border-radius: 0px 0px 22px 22px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
  }

  .logo-text {
    margin: 0 0 0 95px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    color: #06163a !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    display: inline-block !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  #cssmenu {
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #cssmenu .button {
    display: block !important;
    position: absolute !important;
    right: 15px !important;
    top: 10px !important;
    width: 44px !important;
    height: 40px !important;
    background: #0a45a3 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }

  #cssmenu .button span.bar,
  #cssmenu .button:before,
  #cssmenu .button:after {
    position: absolute !important;
    left: 11px !important;
    display: block !important;
    height: 2.5px !important;
    width: 22px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    content: '' !important;
    border: none !important;
  }

  #cssmenu .button:before {
    top: 11px !important;
  }

  #cssmenu .button span.bar {
    top: 19px !important;
    opacity: 1 !important;
  }

  #cssmenu .button:after {
    top: 27px !important;
  }

  #cssmenu .button.menu-opened span.bar {
    opacity: 0 !important;
  }

  #cssmenu .button.menu-opened:before {
    top: 19px !important;
    transform: rotate(45deg) !important;
    background: #ffa300 !important;
  }

  #cssmenu .button.menu-opened:after {
    top: 19px !important;
    transform: rotate(-45deg) !important;
    background: #ffa300 !important;
  }

  #cssmenu ul {
    width: 100% !important;
    max-width: 100% !important;
    display: none;
    float: none !important;
    position: absolute !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    z-index: 9000 !important;
  }

  #cssmenu ul li {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    float: none !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  #cssmenu > ul > li {
    float: none !important;
  }

  #cssmenu > ul > li:first-child,
  #cssmenu > ul > li:first-child > a {
    border-top: none !important;
    border-radius: 0 !important;
  }

  #cssmenu > ul > li:last-child,
  #cssmenu > ul > li:last-child > a {
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
  }

  #cssmenu > ul > li:not(.nav-apply-item) > a {
    padding: 12px 50px 12px 20px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    display: block !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    border-left: none !important;
  }

  #cssmenu > ul > li:first-child > a {
    padding-top: 30px !important;
    padding-bottom: 12px !important;
    padding-left: 20px !important;
    padding-right: 50px !important;
  }

  /* Direct top-level active link (like Home or Contact us) - Soft Blue Tint */
  #cssmenu > ul > li:not(.has-sub).active > a,
  #cssmenu > ul > li:not(.has-sub) > a.active-link {
    background: #e8f0fe !important;
    color: #0a45a3 !important;
    font-weight: 700 !important;
    border-left: none !important;
  }

  /* Submenu parent (like About us) active state - Soft Blue Tint */
  #cssmenu > ul > li.has-sub.active > a {
    color: #0a45a3 !important;
    font-weight: 700 !important;
    background: #e8f0fe !important;
    border-left: none !important;
  }

  /* Subtle visible hover tint on mobile */
  #cssmenu > ul > li:not(.active):hover > a,
  #cssmenu > ul > li:not(.active) > a:active {
    background: #e8f0fe !important;
    color: #0a45a3 !important;
    border-left: none !important;
  }

  #cssmenu ul ul {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: none;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #0a45a3 !important;
  }

  #cssmenu ul ul li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0a45a3 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
  }

  #cssmenu ul ul li a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 25px !important;
    color: #ffffff !important;
    background: transparent !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
  }

  /* Active sub-page highlight in yellow across full width */
  #cssmenu ul ul li.active > a,
  #cssmenu ul ul li a.active-link {
    background: #ffa300 !important;
    color: #06163a !important;
    font-weight: 700 !important;
  }

  #cssmenu ul ul li:hover > a {
    background: #ffa300 !important;
    color: #06163a !important;
  }

  #cssmenu > ul > li.has-sub > a:after,
  #cssmenu > ul > li.has-sub > a:before,
  #cssmenu ul ul > li.has-sub > a:after,
  #cssmenu ul ul > li.has-sub > a:before {
    display: none !important;
  }

  #cssmenu .submenu-button {
    position: absolute !important;
    z-index: 99 !important;
    right: 0 !important;
    top: 0 !important;
    display: block !important;
    border-left: 1px solid #f1f5f9 !important;
    height: 44px !important;
    width: 44px !important;
    cursor: pointer !important;
    background: transparent !important;
  }

  #cssmenu li:not(.has-sub) > .submenu-button {
    display: none !important;
  }

  #cssmenu .submenu-button.submenu-opened {
    background: #ffa300 !important;
  }

  #cssmenu .submenu-button:after {
    position: absolute !important;
    top: 21px !important;
    right: 17px !important;
    width: 10px !important;
    height: 2px !important;
    display: block !important;
    background: #ffa300 !important;
    content: '' !important;
  }

  #cssmenu .submenu-button.submenu-opened:after {
    background: #ffffff !important;
  }

  #cssmenu .submenu-button:before {
    position: absolute !important;
    top: 17px !important;
    right: 21px !important;
    display: block !important;
    width: 2px !important;
    height: 10px !important;
    background: #ffa300 !important;
    content: '' !important;
  }

  #cssmenu .submenu-button.submenu-opened:before {
    display: none !important;
  }

  .dropdown-icon {
    display: none !important;
  }
}

/* =================================================================
   Universal Modal & Backdrop Layering Rules
   Ensures all modals, backdrops & dialogs ALWAYS appear above header
   ================================================================= */
.modal-backdrop,
.modal-backdrop.show,
.modal-backdrop.fade.show {
  z-index: 104000 !important;
}

.modal,
.modal.fade,
.modal.show,
.modal.fade.show,
.enroll-modal,
#enrollModal,
.notice-modal,
#noticeModal {
  z-index: 105000 !important;
}

.modal-dialog {
  z-index: 105001 !important;
}
