/* General Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  direction: ltr;
  padding-top: 70px; /* Added for fixed header */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

ul {
  list-style: none;
}

/* Header Styles */
.site-header {
  background-color: #0A2342; /* Primary color */
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: fixed; /* Added for sticky header */
  top: 0;          /* Added for sticky header */
  width: 100%;     /* Added for sticky header */
  z-index: 1000;   /* Added for sticky header */
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-size: 2em;
  font-weight: bold;
  color: #E0B400; /* Secondary color */
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.site-header .logo:hover {
  color: #fff;
}

.main-nav ul {
  display: flex;
}

.main-nav ul li {
  margin-left: 25px;
}

.main-nav ul li a {
  color: #fff;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background-color: #E0B400; /* Secondary color */
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: #E0B400;
}

/* Header Actions (Register/Login Buttons) */
.header-actions {
  display: flex;
  gap: 10px;
  margin-left: 20px; /* Space from navigation */
}

.header-actions .btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent buttons from wrapping */
}

.header-actions .btn-register {
  background-color: #E0B400; /* Secondary color */
  color: #0A2342; /* Primary color */
}

.header-actions .btn-register:hover {
  background-color: #fff;
  color: #0A2342;
}

.header-actions .btn-login {
  background-color: #0A2342; /* Primary color */
  color: #E0B400; /* Secondary color */
  border: 1px solid #E0B400;
}

.header-actions .btn-login:hover {
  background-color: #E0B400;
  color: #0A2342;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

/* Footer Styles */
.site-footer {
  background-color: #0A2342; /* Primary color */
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.site-footer h3 {
  color: #E0B400; /* Secondary color */
  font-size: 1.2em;
  margin-bottom: 15px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 20px;
}

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

.footer-col p,
.footer-nav ul li a {
  font-size: 0.95em;
  line-height: 1.8;
  color: #ccc;
}

.footer-nav ul li a {
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: #E0B400;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85em;
  color: #aaa;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .container {
    display: grid; /* Changed from flex to grid for better mobile layout control */
    grid-template-columns: auto 1fr auto; /* Hamburger | Logo (flexible) | (empty for now) */
    grid-template-rows: auto auto auto; /* Row 1: hamburger, logo; Row 2: buttons; Row 3: nav */
    align-items: center;
    gap: 10px 0; /* Vertical gap, no horizontal gap */
    /* Removed flex-wrap: wrap; as grid handles layout */
  }

  .site-header .logo {
    grid-column: 2 / 3; /* Middle column */
    grid-row: 1 / 2;
    justify-self: center; /* Center horizontally */
    margin: 0; /* Reset any desktop margins */
    flex-grow: unset; /* Override flex-grow from original media query */
  }

  .site-header .hamburger-menu {
    display: block; /* Already there */
    grid-column: 1 / 2; /* Far left column */
    grid-row: 1 / 2;
    justify-self: start; /* Align to start */
  }

  .main-nav {
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 3 / 4; /* Third row, below buttons */
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    display: none; /* Hidden by default on mobile */
    text-align: center;
    flex-basis: unset; /* Override flex-basis from original media query */
    order: unset; /* Override order from original media query */
  }

  .main-nav.active {
    display: block;
  }

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

  .main-nav ul li {
    margin: 10px 0;
  }

  .header-actions {
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 2 / 3; /* Second row, below logo */
    display: flex;
    justify-content: center; /* Center buttons within this row */
    gap: 10px;
    margin-top: 10px; /* Space from logo */
  }

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

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

/* Hamburger menu animation */
.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);
}