/* Base Styles & Desktop Layout */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #0A2239; /* Default background for main content */
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-height: auto;
}

.header-top {
  background-color: #0A2239; /* Dark blue for top bar */
  width: 100%;
  padding: 10px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Padding for logo and buttons from container edges */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Gold color for logo */
  text-decoration: none;
  white-space: nowrap;
  padding-right: 20px; /* Space between logo and potential elements if no buttons */
}

.main-nav {
  background-color: #1A3A5A; /* Slightly lighter dark blue for nav bar */
  width: 100%;
  display: flex; /* Desktop: visible as flex row */
  flex-direction: row; /* Desktop: horizontal */
  justify-content: center;
  padding: 10px 0;
  position: static; /* Desktop: normal flow */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px; /* Padding for nav links from container edges */
  flex-wrap: wrap;
}

.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 15px;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link.active-link {
  background-color: #FFD700;
  color: #0A2239;
  border-radius: 4px;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-primary {
  background-color: #FFD700; /* Gold */
  color: #0A2239;
}

.btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #0A2239; /* Dark blue */
  color: #FFD700;
  border: 2px solid #FFD700;
}

.btn-secondary:hover {
  background-color: #1A3A5A;
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: #34495e; /* Muted blue for download */
  color: #FFFFFF;
}

.btn-tertiary:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #FFD700;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

/* Mobile Buttons Area (hidden on desktop) */
.mobile-buttons-area {
  display: none; /* Hidden on desktop */
}

/* Mobile Menu Overlay (hidden on desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
  background-color: #0A2239;
  color: #FFFFFF;
  padding: 40px 20px;
  border-top: 1px solid #1A3A5A;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: #FFD700;
  font-size: 20px;
  margin-bottom: 15px;
}

.footer-col p,
.footer-col a {
  color: #CCCCCC;
  text-decoration: none;
  line-height: 1.6;
}

.footer-col a:hover {
  color: #FFD700;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1A3A5A;
  font-size: 14px;
  color: #999999;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container,
  .nav-container {
    width: 100%;
    max-width: none; /* Crucial: Mobile containers take full width */
    padding: 0 15px;
  }

  .header-top {
    padding: 10px 0;
    display: flex;
    justify-content: space-between; /* Hamburger left, Logo center */
    align-items: center;
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1;
    margin-right: 15px;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .logo {
    order: 2;
    flex: 1;
    text-align: center;
    font-size: 24px;
    padding-right: 0;
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout for mobile menu */
    position: fixed;
    top: 0;
    left: 0;
    width: 75%; /* Slide out from left */
    height: 100%;
    background-color: #0A2239; /* Dark blue for mobile menu */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 1001;
    padding-top: 20px; /* Space from top */
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide into view */
  }

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .nav-link {
    width: 100%;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons area */
    justify-content: center;
    align-items: center;
    background-color: #1A3A5A; /* Slightly lighter dark blue for mobile buttons */
    padding: 10px 15px;
    gap: 10px;
    width: 100%;
    position: fixed;
    top: 60px; /* Below header-top */
    z-index: 998; /* Below hamburger and main nav */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999; /* Below menu, above content */
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  body.no-scroll {
    overflow: hidden;
  }

  /* Adjust footer layout for mobile */
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-col {
    min-width: unset;
    width: 100%;
  }
}
