/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  margin: 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
  .navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #fff;
  background: rgba(74, 173, 189, 0.2);
}

.navbar .active {
  background: #4aadbd;
  color: #fff;
  box-shadow: 0 2px 10px rgba(74, 173, 189, 0.3);
}

/* Navbar styles when scrolled/fixed */
#header.header-scrolled .navbar a:hover,
#header.header-scrolled .navbar .active,
#header.header-scrolled .navbar .active:focus,
#header.header-scrolled .navbar li:hover>a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#header.header-scrolled .navbar .active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

#header.header-inner-pages .navbar a:hover,
#header.header-inner-pages .navbar .active,
#header.header-inner-pages .navbar .active:focus,
#header.header-inner-pages .navbar li:hover>a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#header.header-inner-pages .navbar .active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* Keep navbar background transparent on index only before scrolling */
#header.fixed-top:not(.header-inner-pages):not(.header-scrolled) {
  background: transparent;
}

#header.fixed-top:not(.header-inner-pages):not(.header-scrolled) .navbar a,
#header.fixed-top:not(.header-inner-pages):not(.header-scrolled) .navbar a:focus {
  color: #fff;
}

#header.fixed-top:not(.header-inner-pages):not(.header-scrolled) .navbar .getstarted {
  border-color: rgba(255,255,255,0.35);
}

/* Force a solid/colored navbar on inner pages so it's always visible */
#header.header-inner-pages,
#header.fixed-top.header-inner-pages {
  background: rgba(71,178,228,0.98); /* clearer/brighter blue (#47b2e4) */
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

#header.header-inner-pages .navbar a,
#header.header-inner-pages .navbar a:focus {
  color: #fff;
}

#header.header-inner-pages .navbar .getstarted {
  border-color: rgba(255,255,255,0.35);
}

/* Ensure dropdown links are dark on inner pages (override header link color) */
#header.header-inner-pages .navbar .dropdown ul a {
  color: #0c3c53;
}

/* Ensure dropdown link text remains dark when navbar is transparent */
#header.fixed-top:not(.header-inner-pages):not(.header-scrolled) .navbar .dropdown ul a {
  color: #0c3c53;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  padding: 8px 20px;
  margin-left: 30px;
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  border: 2px solid #47b2e4;
  font-weight: 600;
}

.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  color: #fff;
  background: #31a9e1;
}

/* Dropdown Menu */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
  min-width: 200px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 8px 16px;
  margin: 4px 8px;
  font-size: 14px;
  text-transform: none;
  font-weight: 500;
  color: #0c3c53;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #fff;
  background: #4aadbd;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation
*/
.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(40, 58, 90, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  margin: 4px 8px;
  font-size: 15px;
  color: #37517e;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: #fff;
  background: #4aadbd;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
  color: #37517e;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 8px 16px;
  margin: 4px 8px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: #fff;
  background: #4aadbd;
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}
