/* =========================
   SECOND MENU BAR
   ========================= */
.second-menu {
  width: 100%;
  background: #025c9b;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.menu-row {
  display: flex;
  justify-content: center;
  gap: 120px;
  padding: 0; /* remove vertical padding */
  align-items: stretch;
}
.menu-row li {
  list-style: none;
  position: relative;
  display: flex;
}

.menu-row > li > a {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
}

/* =========================
   DESKTOP DROPDOWN (FIXED)
   ========================= */
.has-dropdown {
  position: relative;
}

/* HOVER BRIDGE (prevents gap flicker) */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

/* DROPDOWN BOX */
.dropdown-box {
  position: absolute;
  top: 110%;
  left: 0;
  width: 320px;
  background: #f3f4f6;
  border-top: 4px solid #025c9b;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);

  /* animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;

  z-index: 999;
}

/* SHOW ON HOVER */
.has-dropdown:hover .dropdown-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* LIST */
.dropdown-box ul {
  background: #e5e7eb;
  padding: 12px 15px;
}

/* ITEMS */
.dropdown-box li {
  padding: 10px 0;
  border-bottom: 1px solid #d1d5db;
}

.dropdown-box li:last-child {
  border-bottom: none;
}

/* LINKS */
.dropdown-box li a {
  display: block;
  font-weight: 600;
  color: #025c9b;
  font-size: 16px;
  transition: all 0.25s ease;
}

/* HOVER EFFECT */
.dropdown-box li a:hover {
  padding-left: 6px;
  color: #013e6b;
}

/* =========================
   MOBILE MENU
   ========================= */
#mobile-menu-icon {
  font-size: 24px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 12px;
  margin-left: 8px;
  transition: 0.3s;
  cursor: pointer;
}

/* HOVER FOR ALL MENU ITEMS */
.menu-row li:hover > a {
  background: #e5e7eb;
  color: #025c9b;
}

/* KEEP ACTIVE FOR DROPDOWN */
.has-dropdown:hover > a {
  background: #e5e7eb;
  color: #025c9b;
}
/* rotate arrow */
.has-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* =========================
   MOBILE STYLE
   ========================= */
@media (max-width:1023px){

  /* SECOND MENU STACK */
  .menu-row {
    display: none;
    flex-direction: column;
    background: #025c9b;
    gap: 0;
  }

  .menu-row.active {
    display: flex;
  }

  .menu-row li {
    padding: 14px 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .menu-row a {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
  }

  /* MOBILE DROPDOWN */
  .dropdown-box {
    position: static;
    width: 100%;
    background: #014a7a;
    border: none;
    box-shadow: none;

    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: all 0.3s ease;
  }

  .has-dropdown.active > .dropdown-box {
    max-height: 500px;
    margin-top: 10px;
  }

  .dropdown-box ul {
    background: transparent;
    padding: 0;
  }

  .dropdown-box li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .dropdown-box li:last-child {
    border-bottom: none;
  }

  .dropdown-box li a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
  }

  .dropdown-box li:hover {
    background: rgba(255,255,255,0.1);
  }

  /* LINK ALIGN */
  .menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width:1023px){

  /* RESET TOP MENU LINK HEIGHT */
  .menu-row > li > a {
    height: auto;
    padding: 0;
    background: transparent;
  }

  /* REMOVE FLEX STRETCH ISSUE */
   .menu-row li {
        display: block;
        padding: 12px 0;
    }

  /* FULL WIDTH CLICK AREA */
  .menu-row a {
    width: 100%;
  }
  .menu-row li:hover > a {
    background: transparent;
    color: #fff;
}
.dropdown-box li{
        margin-left: 10px;
    }

}