/* Base Styles */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-color: #333;
  --light-text-color: #f0f0f0;
  --background-light: #f9f9f9;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 0; /* Managed by JS for fixed header and mobile button area */
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 1000;
  min-height: 60px; /* Minimum height for the overall header */
  box-sizing: border-box;
}

.header-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 60px; /* Height for the top row */
  padding: 0 20px;
  box-sizing: border-box;
}

.site-header a {
  text-decoration: none;
  color: var(--light-text-color);
}

.logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-color) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

/* Desktop Navigation */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav li a {
  display: block;
  padding: 15px 20px;
  color: var(--light-text-color);
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
}

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

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

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

.btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Mobile Specific */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

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

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

.mobile-button-area {
  display: none;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  background-color: var(--primary-color);
  box-sizing: border-box;
  z-index: 999; /* Below mobile menu, above main content */
  box-shadow: 0 2px 10px var(--shadow-color);
}

.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; /* Below mobile menu */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

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

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

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

.footer-col h3, .footer-col h4 {
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
}

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

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

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

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

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

/* Media Queries */
@media (min-width: 769px) {
  .header-content-wrapper {
    flex-direction: row;
    min-height: 80px;
    padding: 0 40px;
  }

  .main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
  }

  .main-nav ul {
    display: flex;
    flex-direction: row;
  }

  .hamburger-menu,
  .mobile-button-area {
    display: none;
  }

  .header-buttons {
    display: flex;
  }
}

@media (max-width: 768px) {
  .site-header {
    min-height: auto;
  }

  .header-content-wrapper {
    padding: 10px 20px;
    min-height: 60px;
    /* Mobile top area: Hamburger (left) | Logo (centered) | Blank Area (header-buttons) */
    justify-content: space-between;
  }

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

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

  .header-buttons {
    display: flex; /* Keep it flex to occupy space */
    order: 3;
    visibility: hidden; /* Hide content but keep space for centering logo */
    width: 25px; /* Approximate width of hamburger for symmetry */
    flex-shrink: 0;
  }

  .mobile-button-area {
    display: flex;
    justify-content: center;
    min-height: 60px;
  }

  .main-nav {
    position: fixed;
    top: 0; /* Will be adjusted by JS to be below header-content-wrapper */
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--primary-color);
    padding-top: 20px; /* Internal padding for menu items */
    box-shadow: 2px 0 10px var(--shadow-color);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

/* No-scroll for body when menu is open */
.no-scroll {
  overflow: hidden;
}
