/* Base Styles */
:root {
  --primary-color: #1A2E44;
  --accent-color: #FFD700;
  --text-light: #f0f0f0;
  --text-dark: #333;
  --button-hover-dark: #ccad00;
  --button-hover-light: #ffe033;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f4f4f4;
  padding-top: 150px; /* Adjust based on header height, including mobile button area */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  min-height: 70px;
  color: var(--text-light);
}

.site-header .header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  min-height: 70px;
}

.site-header .logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  flex-grow: 1;
  text-align: center;
  display: block; /* Ensure text-align works */
}

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

.site-header .hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.site-header .hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 5px 0;
  transition: 0.4s;
}

.site-header .hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.site-header .hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header .main-nav {
  display: flex;
  justify-content: center;
  flex-grow: 2;
}

.site-header .main-nav ul {
  display: flex;
  gap: 30px;
}

.site-header .main-nav a {
  color: var(--text-light);
  font-size: 1.1em;
  padding: 10px 0;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.site-header .header-buttons.mobile-only {
  display: none; /* Hidden on desktop */
}

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

.btn-register {
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  color: white;
}

.btn-register:hover {
  background: linear-gradient(135deg, #5cb85c, #9ccc65);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-login {
  background: linear-gradient(135deg, #2196F3, #64B5F6);
  color: white;
}

.btn-login:hover {
  background: linear-gradient(135deg, #42a5f5, #79c3f8);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, #FF9800, #FFB74D);
  color: white;
}

.btn-download:hover {
  background: linear-gradient(135deg, #ffa726, #ffc47d);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

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

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

.site-footer .footer-column {
  flex: 1;
  min-width: 200px;
}

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

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

.site-footer ul {
  padding: 0;
}

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

.site-footer ul li a {
  color: var(--text-light);
  transition: color 0.3s;
}

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

.site-footer .contact-info p {
  margin-bottom: 8px;
}

.site-footer .contact-info a {
  color: var(--text-light);
  transition: color 0.3s;
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 180px; /* Adjust for mobile header with buttons */
  }

  .site-header .header-top {
    padding: 10px 15px;
  }

  .site-header .hamburger-menu {
    display: block;
    order: -1; /* Move to the left */
    margin-right: auto; /* Push logo to center */
  }

  .site-header .logo {
    flex: 1; /* Allow logo to take available space */
    text-align: center;
    margin: 0 auto; /* Center the logo horizontally */
    font-size: 1.8em;
  }

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

  .site-header .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 70px; /* Below header-top */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Below hamburger, above buttons */
    padding: 20px 0;
    max-height: calc(100vh - 70px); /* Adjust based on header-top height */
    overflow-y: auto;
  }

  .site-header .main-nav.active {
    display: flex;
  }

  .site-header .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-header .main-nav li {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .site-header .main-nav a {
    padding: 15px 20px;
    display: block;
  }

  .site-header .header-buttons.mobile-only {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 998; /* Below main-nav */
    width: 100%;
    min-height: 60px;
  }

  .site-header .header-buttons.mobile-only .btn {
    flex: 1;
    font-size: 0.9em;
    padding: 8px 12px;
  }

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

  .site-footer .footer-column {
    min-width: unset;
    width: 100%;
    margin-bottom: 20px;
  }

  .site-footer .footer-column:last-child {
    margin-bottom: 0;
  }

  .site-footer .footer-logo {
    margin: 0 auto 15px auto;
  }

  .site-footer h3 {
    margin-top: 20px;
  }
}

@media (min-width: 769px) {
  .site-header .logo {
    text-align: left;
    flex-grow: 0;
    margin-right: 30px;
  }

  .site-header .main-nav {
    flex-grow: 1;
  }

  .site-header .header-top {
    justify-content: space-between;
    padding: 15px 40px;
  }

  .site-header .desktop-nav-buttons {
    margin-left: 30px;
  }
}
