/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  background-color: #0A2E59; /* Main color */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.site-header .header-top-bar,
.site-header .mobile-buttons-area,
.site-header .mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

.site-header .logo {
  display: block;
  color: #FFA500; /* Accent color */
  text-decoration: none;
  font-size: 28px;
  font-weight: bold;
  order: 1;
  /* Creative branding */
  font-family: 'Georgia', serif; /* Example creative font */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  order: 2;
  padding: 0 20px;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.main-nav li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
}

.main-nav li a:hover,
.main-nav li a.active {
  color: #0A2E59;
  background-color: #FFA500; /* Accent color */
}

.desktop-nav-buttons {
  order: 3;
  display: flex;
  gap: 10px;
}

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

.btn-register {
  background: linear-gradient(45deg, #FFA500, #FFD700); /* Orange to Gold */
  color: #0A2E59;
}

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

.btn-login {
  background-color: #0A2E59; /* Main color */
  color: #fff;
  border: 2px solid #FFA500;
}

.btn-login:hover {
  background-color: #072244;
  border-color: #FFD700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(45deg, #4CAF50, #8BC34A); /* Green gradient */
  color: #fff;
}

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

/* Footer Styles */
.site-footer {
  background-color: #0A2E59; /* Main color */
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
  box-sizing: border-box;
}

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

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

.footer-column .logo {
  color: #FFA500; /* Accent color */
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
  font-family: 'Georgia', serif;
}

.footer-column h3 {
  color: #FFA500; /* Accent color */
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFA500;
  padding-bottom: 5px;
  display: inline-block;
}

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

.footer-column p a {
  color: #fff;
  text-decoration: none;
}

.footer-column p a:hover {
  text-decoration: underline;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #FFA500; /* Accent color */
}

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

.footer-bottom .copyright {
  margin: 0;
  color: #bbb;
}

/* Responsive Styles - Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Adjust based on header-top-bar + mobile-buttons-area height */
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px 15px;
    min-height: auto;
    box-sizing: border-box;
  }

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above mobile buttons and menu */
    order: 1;
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #FFA500;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
  }

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

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

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

  .site-header .logo {
    order: 2;
    flex: 1;
    text-align: center;
    font-size: 24px;
    margin: 0;
  }

  .mobile-spacer {
    display: block;
    order: 3;
    width: 30px; /* To balance hamburger menu on the right */
    height: 25px;
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons on mobile */
  }

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    background-color: rgba(0,0,0,0.1); /* Slight background to distinguish */
    box-sizing: border-box;
    min-height: 70px; /* Height for mobile buttons area */
    z-index: 990; /* Below hamburger menu */
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px;
    height: 100%;
    background-color: #0A2E59;
    padding-top: 80px; /* Space for top bar content, adjust if needed */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-out;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  }

  .main-nav.active {
    display: flex; /* Crucial: change display to show */
    transform: translateX(0); /* Slide in */
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav li a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }

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

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

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

  body.no-scroll {
    overflow: hidden;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

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

  .footer-column h3 {
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-column p,
  .footer-column ul {
    text-align: center;
  }

  .footer-column ul li {
    display: inline-block;
    margin: 0 10px 10px 0;
  }

  .footer-column ul li:last-child {
    margin-right: 0;
  }
}
