/* ====== GENERAL RESET ====== */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.5;
  font-size: 18px;
}

/* ====== HEADER ====== */
#templatemo_header {
  width: 100%;
  background-color: #466069;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}

/* ====== NAVIGATION BAR ====== */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #CAD2D8; /* NAV BACKGROUND */
}

.nav-item {
  position: relative;
  margin: 0;
}

.nav-link {
  display: block;
  padding: 12px 18px;
  color: #006747; /* USF GREEN TEXT */
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: italic;
}

/* ====== HOVER UNDERLINE CONTROL (fixed) ====== */
.nav-item.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* isolate arrow from underline inheritance */
.nav-link .caret {
  text-decoration: none;
  display: inline-block;
}

/* underline only text part */
.nav-link:hover {
  text-decoration: underline;
}

/* keep arrow clean when hovering */
.nav-item.has-dropdown > .nav-link:hover .caret {
  text-decoration: none;
}

/* ====== ACTIVE TAB UNDERLINE ====== */
.nav-link.active {
  position: relative;
  background-color: #CAD2D8;
  color: #006747;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
}

/* ====== DROPDOWN MENU ====== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 220px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background-color: #466069;
  color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
}

/* Dropdown item appearance */
.dropdown-item {
  display: block;
  padding: 10px 14px;
  color: #FFFFFF;
  text-decoration: none;
  text-align: left;
  font-size: 20px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: italic;
}

/* Divider between dropdown items */
.dropdown-item + .dropdown-item {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* Hover underline (no box highlight) */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: transparent;
  color: #FFFFFF;
  text-decoration: underline;
}

/* Show dropdown when JS toggles .open */
.nav-item.open > .dropdown-menu {
  display: block;
}

/* ====== FOOTER ====== */
#templatemo_footer {
  width: 100%;
  background-color: #006747;
  color: #ffffff;
  text-align: center;
  padding: 20px 10px;
  font-size: 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 768px) {
  #templatemo_header {
    font-size: 28px;
    padding: 12px;
  }

  .nav {
    flex-direction: column;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
  }

  .dropdown-item {
    text-align: center;
  }
}
