:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-color: #333;
  --light-text-color: #f0f0f0;
  --dark-bg-color: #1a1a1a;
}

* {
  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-color);
  padding-top: 80px; /* Default for desktop header height */
}

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

ul {
  list-style: none;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px; /* Base height */
  background-color: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.header-top-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column; /* Default for mobile, changes for desktop */
  align-items: center;
}

.header-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-grow: 1;
  text-align: center;
  padding: 5px 0;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above mobile nav */
}

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

.main-nav {
  display: none; /* Hidden on mobile by default */
}

.main-nav ul {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--light-text-color);
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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

.header-buttons-mobile {
  display: none; /* Hidden on desktop */
  width: 100%;
  justify-content: center;
  padding: 10px 0;
  gap: 10px;
  z-index: 999; /* Below mobile nav */
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none; /* No underline for buttons */
  color: white; /* Default text color for buttons */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: nowrap;
}

.btn-register {
  background: linear-gradient(45deg, #FF6F61, #FFD700);
}

.btn-register:hover {
  background: linear-gradient(45deg, #FFD700, #FF6F61);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-login {
  background: linear-gradient(45deg, #4CAF50, #8BC34A);
}

.btn-login:hover {
  background: linear-gradient(45deg, #8BC34A, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-download {
  background: linear-gradient(45deg, #2196F3, #03A9F4);
}

.btn-download:hover {
  background: linear-gradient(45deg, #03A9F4, #2196F3);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Desktop Layout */
@media (min-width: 769px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    min-height: 80px;
  }

  .header-top-wrapper {
    flex-direction: row;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: center;
  }

  .header-top {
    width: auto;
    min-height: auto;
  }

  .logo {
    text-align: left;
    flex-grow: 0;
    margin-right: 40px;
  }

  .header-placeholder {
    display: none;
  }

  .main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
  }

  .header-buttons-desktop {
    display: flex;
    margin-left: auto;
  }
}

/* Mobile Layout */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Adjusted for mobile header height (header-top + buttons-mobile) */
  }
  .site-header {
    padding: 0 15px;
    min-height: 110px; /* Combined height of header-top and buttons-mobile */
    flex-direction: column;
    justify-content: flex-start;
  }

  .header-top-wrapper {
    flex-direction: column;
  }

  .header-top {
    padding: 10px 0;
  }

  .hamburger-menu {
    display: block;
    order: -1; /* Place hamburger first */
    margin-right: auto; /* Push to left */
    position: relative;
    z-index: 1001;
  }

  .logo {
    font-size: 2em;
    text-align: center;
    flex-grow: 1; /* Allow logo to take available space and center */
  }

  .header-placeholder {
    width: 45px; /* Roughly same width as hamburger to balance logo */
    height: 1px; /* Invisible */
    margin-left: auto; /* Push to right */
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden by default */
    width: 70%;
    height: 100vh;
    background-color: var(--dark-bg-color); /* Dark background for mobile menu */
    padding-top: 80px;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    display: block;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .main-nav li {
    width: 100%;
    margin-bottom: 15px;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 12px 15px;
    color: var(--light-text-color);
    font-size: 1.1em;
    text-align: left;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
  }

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

  .header-buttons-mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    padding-bottom: 10px;
    z-index: 999; /* Below mobile nav when open */
  }
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
  padding: 40px 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 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.2em;
}

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

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

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

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

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

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