:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color: #333;
  --light-text-color: #f8f9fa;
  --bg-dark: #343a40;
  --bg-light: #ffffff;
}

/* Basic Reset & Body */
* {
  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);
  background-color: #f4f7f6;
}

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

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

ul {
  list-style: none;
}

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

/* Header Styling */
.site-header {
  background-color: var(--bg-dark);
  color: var(--light-text-color);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.site-header .logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-color); /* Branding color for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

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

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

.site-header .main-nav a {
  color: var(--light-text-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.site-header .main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

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

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

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

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

/* Footer Styling */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--light-text-color);
  padding: 3rem 0;
  font-size: 0.9em;
}

.site-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2em;
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.site-footer .footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.site-footer .copyright {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
}

/* Scroll to top button style */
.scroll-to-top-btn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5em;
  line-height: 45px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .site-header .logo {
    flex-grow: 1; /* Allow logo to take up space */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
  }

  .site-header .main-nav {
    width: 100%;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: var(--bg-dark); /* Ensure background for dropdown */
    order: 2; /* Place below logo and hamburger */
  }

  .site-header .main-nav.active {
    max-height: 400px; /* Adjust as needed for menu height */
    overflow-y: auto;
  }

  .site-header .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
    align-items: center;
  }

  .site-header .main-nav li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .site-header .main-nav a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header .main-nav li:last-child a {
    border-bottom: none;
  }
  
  .site-header .main-nav a::after {
    display: none; /* Hide underline for mobile menu items */
  }

  .footer-columns {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    text-align: center;
  }

  .footer-column h3 {
    text-align: center;
  }

  .site-footer .footer-nav ul {
    align-items: center;
  }
}