/* Resources dropdown — shared across home and inner pages */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  font-family: 'Nunito Sans', sans-serif;
  color: #4f6883;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  position: relative;
}

.nav-links .nav-dropdown-toggle {
  font-size: 0.86rem;
}

nav .nav-links .nav-dropdown-toggle {
  font-size: 0.88rem;
  padding: 9px 14px;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  transition: transform .2s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle::after,
.nav-dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-active .nav-dropdown-toggle {
  color: #2e5877;
  background: rgba(210, 224, 235, 0.35);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  min-width: 0;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 4px;
  border-radius: 0;
  background: linear-gradient(160deg, #f8fcff 0%, #eaf2f6 100%);
  box-shadow: 10px 14px 24px rgba(112, 141, 156, 0.22), inset 1px 1px 0 rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 140;
}

.nav-links .nav-dropdown-menu a,
.nav-links .nav-dropdown-menu a:hover,
.nav-links .nav-dropdown-menu a[aria-current="page"],
.nav-links .nav-dropdown-menu a.active {
  border-radius: 0;
  font-size: 0.74rem;
}

.nav-dropdown-menu a {
  display: block;
  position: relative;
  padding: 7px 9px;
  border-radius: 0;
  text-decoration: none;
  color: #4f6883;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: #2e5877;
  background: rgba(210, 224, 235, 0.35);
}

.nav-dropdown-menu a[aria-current="page"],
.nav-dropdown-menu a.active {
  color: #19998c;
  background: transparent;
}

.nav-dropdown-menu a[aria-current="page"]::after,
.nav-dropdown-menu a.active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #20b2a4;
}

.nav-dropdown-menu a[aria-current="page"]:hover,
.nav-dropdown-menu a.active:hover {
  background: transparent;
}

@media (min-width: 961px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 960px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 13px 14px;
    font-size: 0.95rem;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: auto;
    max-width: 220px;
    margin: 2px auto 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    border-radius: 0;
    box-shadow: inset 4px 4px 10px rgba(183, 202, 214, 0.18), inset -4px -4px 10px rgba(255,255,255,0.75);
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    gap: 4px;
  }

  .nav-dropdown-menu a,
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a[aria-current="page"],
  .nav-dropdown-menu a.active {
    text-align: center;
    padding: 10px 12px;
    border-radius: 0;
    font-size: 0.78rem;
  }

  .nav-dropdown-menu a[aria-current="page"]::after,
  .nav-dropdown-menu a.active::after {
    display: none;
  }
}
