:root {
  --primary-color: #0A246A;
  --secondary-color: #FFD700;
  --text-light: #f0f0f0;
  --text-dark: #333;
  --header-top-bg: var(--primary-color);
  --main-nav-bg: #1A3B8C; /* A slightly lighter blue for contrast */
  --mobile-buttons-bg: #2C529D; /* A medium blue for mobile buttons */
  --header-top-height: 60px;
  --main-nav-height: 50px;
  --mobile-buttons-height: 50px;
  --header-total-height-desktop: calc(var(--header-top-height) + var(--main-nav-height));
  --header-total-height-mobile: calc(var(--header-top-height) + var(--mobile-buttons-height));
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: var(--header-total-height-desktop); /* Compensate for fixed header on desktop */
}

body.no-scroll {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-height: var(--header-total-height-desktop);
}

.header-top {
  background-color: var(--header-top-bg);
  width: 100%;
  min-height: var(--header-top-height);
  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;
}

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

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

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

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #FFEA40;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: #4A6BA8; /* A lighter shade of primary */
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #5C7BBF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
  background-image: linear-gradient(45deg, #FFD700, #FFA500);
  color: var(--primary-color);
  box-shadow: 0 3px 6px rgba(255, 215, 0, 0.4);
}

.btn-tertiary:hover {
  background-image: linear-gradient(45deg, #FFE033, #FFB833);
  box-shadow: 0 5px 10px rgba(255, 215, 0, 0.6);
}

.main-nav {
  background-color: var(--main-nav-bg);
  width: 100%;
  min-height: var(--main-nav-height);
  display: flex; /* Desktop default: visible */
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row; /* Desktop default: horizontal */
  justify-content: center;
  align-items: center;
  padding: 10px 30px;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 15px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

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

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

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

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

.mobile-menu-overlay {
  display: none; /* Hidden by default */
}

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-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;
  min-width: 250px;
}

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

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

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

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

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

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

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-total-height-mobile); /* Compensate for fixed header + mobile buttons */
  }

  .site-header {
    min-height: auto; /* Allow height to adapt */
    display: block; /* Change to block to stack elements */
  }

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Remove max-width for mobile */
    justify-content: space-between;
    position: relative; /* For hamburger positioning */
  }

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

  .desktop-nav-buttons {
    display: none;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-total-height-mobile); /* Position below header + mobile buttons */
    left: 0;
    width: 75%;
    height: calc(100vh - var(--header-total-height-mobile));
    flex-direction: column; /* Vertical menu */
    background-color: var(--primary-color);
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding-bottom: 20px; /* Ensure space for scroll */
  }

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

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

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

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

  .mobile-buttons-area {
    background-color: var(--mobile-buttons-bg);
    width: 100%;
    min-height: var(--mobile-buttons-height);
    display: flex; /* Always visible on mobile */
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 990; /* Below hamburger menu */
  }
  
  .mobile-buttons-container {
    width: 100%;
    max-width: none; /* Ensure full width */
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .mobile-buttons-container .btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 14px;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    display: block; /* Ensure it's block when active */
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

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