:root {
  --primary-color: #0A2463;
  --secondary-color: #E3BA2E;
  --header-top-bg: var(--primary-color);
  --main-nav-bg: #182C61; /* Slightly lighter dark blue for distinction */
  --text-light: #ffffff;
  --text-dark: #333333;
  --button-primary-bg: var(--secondary-color);
  --button-primary-text: var(--primary-color);
  --button-secondary-bg: #4CAF50; /* Green for login */
  --button-secondary-text: var(--text-light);
  --button-tertiary-bg: #007bff; /* Blue for download */
  --button-tertiary-text: var(--text-light);
  --header-total-height: 110px; /* Default height, updated by JS */
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: var(--header-total-height);
  transition: padding-top 0.3s ease; /* Smooth transition for padding-top */
}

.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 for the whole fixed header */
  display: flex;
  flex-direction: column;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  white-space: nowrap;
}

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

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

.btn-primary {
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  filter: brightness(0.9); /* Darken on hover */
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  filter: brightness(0.9); /* Darken on hover */
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: var(--button-tertiary-bg);
  color: var(--button-tertiary-text);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-tertiary:hover {
  filter: brightness(0.9); /* Darken on hover */
  transform: translateY(-2px);
}

.main-nav {
  background-color: var(--main-nav-bg);
  width: 100%;
  padding: 10px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

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

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

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

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

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

/* Mobile buttons area - Hidden on desktop */
.mobile-buttons-area {
  display: none;
  background-color: var(--header-top-bg);
  padding: 10px 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.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: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

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

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

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

.footer-col p,
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

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

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
    justify-content: center;
    position: relative;
  }

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

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

  .hamburger-menu {
    display: block;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .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-buttons-area {
    display: block;
  }

  .mobile-buttons-container {
    padding: 0 15px;
    gap: 8px;
  }

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

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: var(--primary-color);
    padding-top: 120px; /* Placeholder, updated by JS */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow-y: auto; /* Allow scrolling for long menus */
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    padding: 0;
    align-items: flex-start;
  }

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

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

  .footer-container {
    flex-direction: column;
    padding: 0 15px;
  }

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

  .footer-col ul {
    text-align: center;
  }
}

.no-scroll {
  overflow: hidden;
}
