/* Theme scaffold */
body{font-family:system-ui,Arial,sans-serif;margin:0;padding:0;line-height:1.5;}

/* Basic nav styling - only for legacy .site-nav class */
.site-nav { background:#003049; color:#fff; padding:.5rem; }
.site-nav a { color:#fff; text-decoration:none; margin-right:.75rem; }

h1{color:#1d3557;}
a:hover{text-decoration:underline;}
footer{margin-top:3rem;padding:1rem;background:#f1f1f1;font-size:.875rem;text-align:center;}

/* Mobile Navigation Styles */
.site-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: #003049;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.offcanvas-menu .site-mobile-menu,
body.offcanvas-menu .site-mobile-menu {
  transform: translateX(0);
}

body.offcanvas-menu {
  overflow-x: hidden;
}

.site-mobile-menu-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-mobile-menu-close {
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-mobile-menu-body {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

/* Style the cloned navigation */
.site-nav-wrap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav-wrap li {
  padding: 0;
}

.site-nav-wrap a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-nav-wrap a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00a651;
}

.site-nav-wrap a:last-child {
  border-bottom: none;
}

/* Ensure navbar is visible with proper styling */
.site-navbar {
  background: #003049 !important;
  min-height: 80px;
  display: block !important;
  position: relative !important;
  width: 100% !important;
}

.site-navbar .site-logo a {
  color: #00a651 !important;
  text-transform: none;
  font-weight: bold;
  font-size: 1.5rem;
}

.site-navbar .site-navigation .site-menu > li > a {
  color: #fff !important;
  font-weight: 500;
}

.site-navbar .site-navigation .site-menu > li > a:hover {
  color: #00a651 !important;
}

/* Desktop navigation styling */
.desktop-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.desktop-nav li {
  margin: 0 15px;
}

.desktop-nav li a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
}

.desktop-nav li a:hover {
  color: #00a651 !important;
}

/* Simple Mobile Hamburger */
.mobile-hamburger {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 50px;
  position: relative;
  z-index: 1001;
  text-decoration: none;
  outline: none;
}

.mobile-hamburger:hover {
  color: #00a651;
  transform: scale(1.05);
}

.hamburger-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #003049;
  transition: right 0.3s ease;
  z-index: 9999;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-menu-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

.mobile-menu-nav {
  flex: 1;
  padding: 20px 0;
}

.mobile-menu-link {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 15px 20px;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 16px;
}

.mobile-menu-link:hover {
  background: rgba(255,255,255,0.1);
  color: #00a651;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* ULTRATHINK SOLUTION - Override sticky wrapper with maximum specificity */

/* 1. OVERRIDE STICKY WRAPPER CSS - This is the root cause! */
.sticky-wrapper .site-navbar ul li a,
.sticky-wrapper .site-navbar ul li a:visited,
.sticky-wrapper .site-navbar ul li a:focus {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.sticky-wrapper.is-sticky .site-navbar ul li a,
.sticky-wrapper.is-sticky .site-navbar ul li a:visited,
.sticky-wrapper.is-sticky .site-navbar ul li a:focus {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

/* 2. Hover states for sticky wrapper */
.sticky-wrapper .site-navbar ul li a:hover,
.sticky-wrapper.is-sticky .site-navbar ul li a:hover {
  color: #00a651 !important;
}

/* 3. Active states for sticky wrapper */
.sticky-wrapper .site-navbar ul li a.active,
.sticky-wrapper.is-sticky .site-navbar ul li a.active {
  color: #00a651 !important;
}

/* 4. Site logo styling */
.site-navbar .site-logo a,
.site-navbar .site-logo a:visited,
.site-navbar .site-logo a:hover,
.site-navbar .site-logo a:focus,
.sticky-wrapper .site-navbar .site-logo a,
.sticky-wrapper.is-sticky .site-navbar .site-logo a {
  color: #00a651 !important;
  text-transform: none !important;
  font-weight: bold !important;
  font-size: 1.5rem !important;
}

/* 5. Desktop navigation - ensure horizontal layout */
.desktop-nav {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
}

.desktop-nav li {
  margin: 0 15px !important;
}

/* 6. Mobile hamburger - Bootstrap-first approach (NO display conflicts) */
.mobile-hamburger {
  background: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  font-size: 1.5rem !important;
  padding: 10px 15px !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 50px !important;
  min-height: 50px !important;
  text-decoration: none !important;
  outline: none !important;
}

.mobile-hamburger:hover {
  color: #00a651 !important;
  border-color: #00a651 !important;
}

.mobile-hamburger .hamburger-icon {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
}

/* 7. Override Bootstrap utilities with higher specificity if needed */
@media (max-width: 991.98px) {
  .mobile-hamburger.d-inline-block.d-lg-none {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .desktop-nav {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .mobile-hamburger.d-inline-block.d-lg-none {
    display: none !important;
  }

  .desktop-nav {
    display: flex !important;
  }
}

/* Make sure the mobile menu button is always visible */
@media (max-width: 576px) {
  .mobile-hamburger {
    min-width: 60px !important;
    min-height: 60px !important;
    font-size: 1.8rem !important;
  }
}

/* Alternative Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  min-height: 60px;
}

.mobile-menu-toggle:hover {
  color: #00a651;
  transform: scale(1.02);
}

/* Hamburger Lines */
.hamburger-lines {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}

.hamburger-lines::before,
.hamburger-lines::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-lines::before {
  top: -8px;
}

.hamburger-lines::after {
  bottom: -8px;
}

/* Ensure hamburger icon is visible */
.icon-menu {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: 0.3s ease;
}

.icon-menu::before,
.icon-menu::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: 0.3s ease;
}

.icon-menu::before {
  top: -8px;
}

.icon-menu::after {
  top: 8px;
}

.js-menu-toggle:hover,
.site-menu-toggle:hover {
  color: #00a651;
  transform: scale(1.05);
}

/* Hamburger Icon Animation */
.hamburger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 7px;
}

.hamburger-icon span:nth-child(3) {
  top: 14px;
}

/* Animation when menu is active */
.site-menu-toggle.active .hamburger-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(135deg);
}

.site-menu-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.site-menu-toggle.active .hamburger-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-135deg);
}

/* Ensure touch targets are at least 44px */
.js-menu-toggle,
.site-menu-toggle {
  min-height: 44px;
  min-width: 44px;
}

/* Responsive Design - Hide desktop navigation on mobile */
@media (max-width: 991.98px) {
  .site-nav.js-clone-nav {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  .site-navigation {
    display: none !important;
  }

  /* Mobile hamburger is now outside site-navigation, so Bootstrap classes work */
}

/* Ensure desktop navigation is visible on large screens */
@media (min-width: 992px) {
  .mobile-nav-wrapper {
    display: none !important;
    visibility: hidden !important;
  }

  .site-nav.js-clone-nav {
    display: block !important;
    visibility: visible !important;
  }
}

/* Ensure sticky wrapper doesn't hide navbar */
.sticky-wrapper {
  display: block !important;
  position: relative !important;
}