:root {
  --primary-color: #0A2239;
  --accent-color: #FFD700;
  --dark-blue-light: #1A3B5A;
  --text-color-light: #f0f0f0;
  --text-color-dark: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: #f4f4f4;
  /* Placeholder for dynamic padding-top, will be set by JS */
  padding-top: 105px; /* Estimated desktop header height */
}

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-color); /* Base background, specific sections will override */
}

.header-top {
  background-color: var(--primary-color);
  padding: 15px 0;
  display: flex;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
  text-transform: uppercase;
  display: block;
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 5px 0;
  transition: 0.4s;
}

.mobile-nav-buttons-area {
  display: none; /* Hidden on desktop */
}

.main-nav {
  background-color: var(--dark-blue-light);
  width: 100%;
  display: flex; /* Desktop default: visible, horizontal */
  padding: 10px 0;
  transition: transform 0.3s ease; /* For mobile menu animation */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.nav-link {
  color: var(--text-color-light);
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  transition: color 0.3s, background-color 0.3s;
  white-space: nowrap; /* Prevent wrapping for double-word terms */
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 5px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  body {
    padding-top: 100px; /* Estimated mobile header height (header-top + mobile-nav-buttons-area) */
  }

  .header-container {
    padding: 0 15px;
    max-width: none; /* Important: remove max-width on mobile */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1;
    margin-right: auto; /* Push logo to center */
  }

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

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

  .mobile-nav-buttons-area {
    display: block; /* Show mobile buttons area */
    background-color: var(--dark-blue-light);
    padding: 10px 0;
    width: 100%;
  }

  .mobile-buttons-container {
    width: 100%;
    max-width: none; /* Important: remove max-width on mobile */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
  }

  .main-nav {
    display: none; /* Hide main nav by default on mobile */
    position: fixed;
    top: 0; /* Will be adjusted by JS to be below header */
    left: 0;
    width: 100%;
    height: 100vh; /* Full screen height */
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: flex-start; /* Align items to top */
    align-items: center;
    transform: translateX(-100%); /* Slide out to the left */
    z-index: 999; /* Below overlay, above body content */
    padding-top: 120px; /* Ensure menu content starts below header */
    overflow-y: auto; /* Allow scrolling if menu content is long */
  }

  .main-nav.active {
    display: flex; /* CRITICAL: Must set display to show menu */
    transform: translateX(0); /* Slide in */
  }

  .nav-container {
    flex-direction: column;
    width: 100%;
    max-width: none; /* Important: remove max-width on mobile */
    padding: 0 15px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
  }

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

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
  }

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

  /* Hamburger menu animation to 'X' */
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

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

/* --- Site Footer --- */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 40px 20px 20px;
  font-size: 14px;
}

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

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

.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-col p {
  margin-bottom: 10px;
}

.footer-col p a {
  color: var(--text-color-light);
  text-decoration: none;
}

.footer-col p a:hover {
  text-decoration: underline;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li a {
  color: var(--text-color-light);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s;
}

.footer-nav li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px 30px;
  }

  .footer-col {
    flex-basis: 100%;
    max-width: 100%;
  }

  .footer-nav ul {
    padding-left: 0;
  }
}
