:root {
  --primary-color: #0A192F; /* Dark blue */
  --accent-color: #FFD700; /* Gold */
  --text-light: #F0F0F0;
  --text-dark: #333333;
  --header-top-bg: var(--primary-color);
  --main-nav-bg: #1A2B47; /* Slightly lighter dark blue for contrast */
  --button-primary-bg: var(--accent-color);
  --button-primary-text: var(--primary-color);
  --button-secondary-bg: #4A5B78; /* A muted blue */
  --button-secondary-text: var(--text-light);
  --button-tertiary-bg: #007bff; /* A standard blue for download button */
  --button-tertiary-text: var(--text-light);
  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 45px;
  --header-height-desktop: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop));
  --header-top-height-mobile: 60px;
  --mobile-button-area-height-mobile: 50px; /* Approx height for mobile button area */
  --header-height-mobile: calc(var(--header-top-height-mobile) + var(--mobile-button-area-height-mobile));
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: var(--header-height-desktop); /* Default desktop padding */
  color: var(--text-dark);
  line-height: 1.6;
  box-sizing: border-box;
}

body.no-scroll {
  overflow: hidden;
}

/* Fixed Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background-color: var(--header-top-bg); /* Base background, will be covered by sub-sections */
}

/* Header Top Area - Desktop */
.header-top {
  background-color: var(--header-top-bg);
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; /* Ensure logo is always visible */
}

.desktop-nav-buttons {
  display: flex; /* Show on desktop */
  gap: 12px;
}

/* Main Navigation Area - Desktop */
.main-nav {
  background-color: var(--main-nav-bg);
  min-height: var(--main-nav-height-desktop);
  display: flex; /* Show on desktop */
  align-items: center;
  justify-content: center; /* Center the nav-container */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row; /* Horizontal on desktop */
  justify-content: center; /* Center menu items */
  align-items: center;
  padding: 10px 20px; /* Padding for menu items within container */
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 15px;
  font-size: 16px;
  white-space: nowrap; /* Prevent menu items from wrapping */
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

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

.btn-primary {
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  background-color: #FFEB80;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  border: 1px solid var(--button-secondary-bg);
}

.btn-secondary:hover {
  background-color: #6A7B98;
  border-color: #6A7B98;
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: var(--button-tertiary-bg);
  color: var(--button-tertiary-text);
  border: 1px solid var(--button-tertiary-bg);
}

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

/* Hamburger menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above mobile nav */
  width: 40px; /* fixed width for consistent spacing */
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0; /* Override default margin */
  transition: all 0.3s ease;
}

/* Mobile button area (hidden on desktop) */
.mobile-button-area {
  display: none; /* Hidden on desktop */
  background-color: var(--primary-color);
  width: 100%;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: var(--header-top-height-desktop); /* Position below header-top */
  left: 0;
  z-index: 999; /* Below mobile nav, above content */
  min-height: var(--mobile-button-area-height-mobile);
  display: flex;
  align-items: center;
}

.mobile-button-container {
  width: 100%;
  max-width: 1200px; /* Not used on mobile, but for consistency in structure */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 15px; /* Mobile padding */
}

/* Mobile menu overlay (hidden on desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998; /* Below mobile nav */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

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

.site-footer .footer-col {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.site-footer .footer-logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

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

.site-footer p, .site-footer li {
  margin-bottom: 8px;
}

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

.site-footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.site-footer .footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile); /* Mobile specific padding */
  }

  /* Header Top Mobile */
  .header-top {
    min-height: var(--header-top-height-mobile); /* Fixed height for header-top on mobile */
  }

  .header-container {
    padding: 0 15px; /* Smaller padding on mobile */
    justify-content: space-between; /* Hamburger left, Logo center, space right */
  }

  .logo {
    flex: 1; /* Allows logo to take available space for centering */
    text-align: center;
    font-size: 24px;
  }

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

  .hamburger-menu {
    display: flex; /* Show hamburger menu on mobile */
    order: -1; /* Place it to the far left */
    margin-right: auto; /* Push logo to center */
  }

  .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);
  }

  /* Mobile Button Area */
  .mobile-button-area {
    display: flex; /* Show on mobile */
    top: var(--header-top-height-mobile); /* Position below header-top */
  }

  .mobile-button-container {
    width: 100%;
    max-width: none; /* CRITICAL: Remove max-width on mobile */
    padding: 0 15px;
  }

  /* Main Navigation Mobile (Hamburger Menu Content) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout for menu items */
    position: fixed;
    top: 0; /* Starts from top of viewport */
    left: 0;
    width: 80%; /* Takes 80% of screen width */
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease-out;
    z-index: 1001; /* Above overlay */
    padding-top: 80px; /* Space for a potential logo/close button inside mobile menu */
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    overflow-y: auto; /* Allow scrolling if menu content is long */
  }

  .main-nav.active {
    display: flex; /* CRITICAL: Must be flex/block to be visible */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    width: 100%;
    max-width: none; /* CRITICAL: Remove max-width on mobile */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px; /* Mobile padding for menu items */
  }

  .nav-link {
    width: 100%; /* Full width for mobile menu items */
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  /* Footer Mobile */
  .site-footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .site-footer .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}