/* Style for main mobile menu items */
@media (max-width: 768px) {
  .nv-mobile-menu ul li > a {
    color: #ffffff;
    background-color: #1a1a1a;
  }

  /* Style for submenu items inside mobile menu */
  .nv-mobile-menu ul.sub-menu li > a {
    color: #000000;
    background-color: #f5f5f5;
    padding-left: 25px;
  }

  /* Hover effect for submenu */
  .nv-mobile-menu ul.sub-menu li > a:hover {
    color: #ff6600;
    background-color: #e0e0e0;
  }
}

/* Clean site footer: useful widgets + focused link row */
.site-footer {
  background: #24323a !important;
}

.site-footer .footer-top {
  display: block !important;
  background: #24323a !important;
  color: #f7fbfb !important;
  padding: 34px 0 24px !important;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.site-footer .footer-top .widget,
.site-footer .footer-top p,
.site-footer .footer-top li {
  color: #f7fbfb !important;
  font-size: 15px;
  line-height: 1.65;
}

.site-footer .footer-top strong {
  color: #ffffff !important;
  font-weight: 700;
}

.site-footer .footer-top ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.site-footer .footer-top li:first-child {
  margin-bottom: 8px;
  font-size: 16px;
}

.site-footer .footer-top .hfg-grid {
  gap: 22px;
}

.site-footer .footer-bottom {
  display: block !important;
  background: #1b272d !important;
  color: #f7fbfb !important;
  padding: 14px 0 !important;
}

.site-footer .footer-bottom .hfg-grid {
  align-items: center;
  gap: 10px;
}

.site-footer .footer-bottom .builder-item--footer-menu,
.site-footer .footer-bottom .nav-menu-footer {
  width: 100%;
}

.site-footer .footer-bottom .builder-item--footer-copyright {
  display: none !important;
}

.site-footer .footer-bottom #footer-menu {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.site-footer .footer-bottom #footer-menu li {
  display: none !important;
  margin: 0 !important;
}

.site-footer .footer-bottom #footer-menu li:has(a[href$="/about/"]),
.site-footer .footer-bottom #footer-menu li:has(a[href$="/courses-coming-soon/"]),
.site-footer .footer-bottom #footer-menu li:has(a[href$="/blogs/"]),
.site-footer .footer-bottom #footer-menu li:has(a[href$="/contact/"]),
.site-footer .footer-bottom #footer-menu li:has(a[href$="/advanced-epidemiology-courses/"]),
.site-footer .footer-bottom #footer-menu li:has(a[href$="/biostatistics-course/"]),
.site-footer .footer-bottom #footer-menu li:has(a[href$="/statistical-analysis-using-r-and-python/"]),
.site-footer .footer-bottom #footer-menu li:has(a[href$="/spatial-epidemiology-and-gis-mapping/"]) {
  display: inline-flex !important;
}

.site-footer .footer-bottom #footer-menu a {
  color: #f7fbfb !important;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  opacity: .92;
}

.site-footer .footer-bottom #footer-menu a:hover {
  color: #8bd6cc !important;
  opacity: 1;
}

@media (max-width: 768px) {
  .site-footer .footer-top {
    text-align: left;
    padding: 28px 18px 22px !important;
  }

  .site-footer .footer-bottom #footer-menu {
    justify-content: flex-start;
    padding: 0 18px;
  }
}


.site-footer .footer-bottom .builder-item.cr {
  display: none !important;
}


.site-footer .footer-bottom #footer-menu li:has(a[href$="/advanced-epidemiology-pathway/"]) {
  display: inline-flex !important;
}

/* Footer cleanup: keep only the top footer, remove boxed look and lower rows */
.site-footer,
.site-footer .footer-top,
.site-footer .footer-top-inner {
  background: #24323a !important;
}

.site-footer .footer-main,
.site-footer .footer-bottom {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.site-footer .footer-top {
  display: block !important;
  color: #f7fbfb !important;
  padding: 36px 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-footer .footer-top .hfg-grid,
.site-footer .footer-top .row--wrapper {
  gap: 28px !important;
  align-items: start !important;
}

.site-footer .footer-top .item--inner,
.site-footer .footer-top .widget,
.site-footer .footer-top .widget-area,
.site-footer .footer-top .builder-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-top h2,
.site-footer .footer-top h3,
.site-footer .footer-top h4,
.site-footer .footer-top .widget-title {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  margin: 0 0 12px !important;
}

.site-footer .footer-top p,
.site-footer .footer-top li,
.site-footer .footer-top a {
  color: rgba(247,251,251,.86) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.site-footer .footer-top a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.site-footer .footer-top ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 768px) {
  .site-footer .footer-top {
    padding: 30px 0 !important;
  }

  .site-footer .footer-top .hfg-grid,
  .site-footer .footer-top .row--wrapper {
    gap: 22px !important;
  }
}