:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --dark-bg: #1a1a1a;
  --dark-menu-bg: #2c3e50;
  --text-color: #ffffff;
  --header-height-desktop: 70px; /* Approximate height for desktop */
  --header-height-mobile-top: 60px; /* Height of top bar on mobile */
  --header-height-mobile-buttons: 60px; /* Height of button area on mobile */
}

/* Base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: #333; /* General page background */
  padding-top: var(--header-height-desktop); /* Default padding for desktop fixed header */
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

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

/* Buttons styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap; /* Prevent text wrapping */
  color: var(--text-color); /* Ensure button text is white */
}

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: #333; /* Darker text for secondary button */
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.btn-secondary:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  box-sizing: border-box;
  min-height: var(--header-height-desktop); /* Default desktop height */
}

/* Desktop main content wrapper */
.header-main-content {
  display: flex; /* Desktop default: horizontal */
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 100%;
  height: var(--header-height-desktop); /* Fixed height for desktop bar */
  box-sizing: border-box;
}

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.site-header .logo:hover {
  color: var(--secondary-color);
}

/* Desktop Navigation */
.main-nav {
  flex: 1; /* Occupy middle space */
  display: flex; /* Desktop default: flex */
  justify-content: center;
  margin: 0 20px;
}

.main-nav ul {
  display: flex; /* Horizontal menu items */
  gap: 30px;
}

.main-nav a {
  padding: 10px 0;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.desktop-nav-buttons {
  display: flex; /* Desktop default: flex */
  gap: 15px;
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

/* Mobile specific elements (hidden by default on desktop) */
.mobile-header-top,
.mobile-buttons-area,
.hamburger-menu,
.mobile-menu-overlay,
.mobile-logo {
  display: none; /* Hide mobile specific elements on desktop */
}

/* Hamburger menu animation */
.hamburger-menu {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1002; /* Above mobile menu overlay */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-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);
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--text-color);
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}

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

.footer-column {
  flex: 1;
  min-width: 250px; /* Minimum width for columns before wrapping */
}

.footer-column h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  display: inline-block; /* Make border-bottom fit content */
}

.footer-column p, .footer-column a {
  color: #ccc;
}

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

.footer-nav li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* Mobile styles */
@media (max-width: 768px) {
  body {
    padding-top: calc(var(--header-height-mobile-top) + var(--header-height-mobile-buttons)); /* Calculated padding for mobile */
  }

  .site-header {
    min-height: auto; /* Auto height on mobile */
  }

  .header-main-content {
    display: none; /* Hide desktop header content */
  }

  /* Mobile header top bar */
  .mobile-header-top {
    display: flex; /* Show mobile top bar */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    min-height: var(--header-height-mobile-top);
    background-color: var(--dark-bg); /* Ensure background color */
  }

  .mobile-header-top .hamburger-menu {
    display: block; /* Show hamburger menu */
    flex-shrink: 0;
  }

  .mobile-header-top .mobile-logo {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto; /* Center it */
    position: absolute; /* Absolute positioning to truly center it */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1; /* Ensure it's above other elements if needed */
  }
  .mobile-header-top .mobile-spacer {
    width: 30px; /* Same width as hamburger for balance */
    flex-shrink: 0;
  }

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons area */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #222;
    border-top: 1px solid #333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
    min-height: var(--header-height-mobile-buttons);
    box-sizing: border-box;
  }

  .mobile-buttons-area .btn {
    flex: 1;
    max-width: 150px;
    padding: 8px 15px;
    font-size: 14px;
  }

  /* Main navigation for mobile (hidden by default) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Slide-in menu width */
    height: 100vh;
    background-color: var(--dark-menu-bg);
    flex-direction: column;
    padding-top: var(--header-height-mobile-top); /* Push menu items down to avoid hamburger/logo */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    box-sizing: border-box;
  }

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

  .main-nav ul {
    flex-direction: column; /* Stack menu items vertically */
    gap: 0; /* Remove gap */
  }

  .main-nav li {
    border-bottom: 1px solid #3a475a;
  }

  .main-nav a {
    display: block;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Mobile menu overlay */
  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }

  .mobile-menu-overlay.active {
    display: block; /* Show when active */
  }

  /* Adjust footer for mobile */
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-column {
    min-width: unset; /* Allow columns to shrink */
  }

  .footer-column h3 {
    width: 100%; /* Full width for titles */
    text-align: center;
  }
  .footer-column p, .footer-column a, .footer-nav {
    text-align: center;
  }
}