/* Responsive site with left sidebar navigation */

:root {
  --primary: #185641;
  --accent: #003a25;
  --bg-main: #ffffff;
  --bg-nav: #f1f4ec;
  --text-primary: #00160e;
  --text-light: #f1f4ec;
  --border-color: #d1d9c7;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1rem;
  display: flex;
  align-items: left;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light);
  text-decoration: none;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
}

/* Sidebar Navigation */
.sidebar {
  background-color: var(--bg-nav);
  width: 260px;
  height: calc(100vh - 5rem - 2.5rem); /* Adjust based on header and footer height */
  position: fixed;
  top: 70px; /* Header height */
  left: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  z-index: 900;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.75rem;
}

.sidebar a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background-color: #e8f0e2;
  color: var(--accent);
  font-weight: 500;
}

/* Main Content */
.main-content {
  margin-left: 260px;
  min-height: calc(100vh - 5.5rem - 2rem); /* Header + Footer */
  padding: 2rem;
  background-color: var(--bg-main);
  transition: margin-left 0.3s ease;
}

.main-content a {
  color: var(--primary);
}

* a:hover {
  text-decoration: underline;
}

/* Download table */

.download td {
  padding: 0.1rem 0.75rem;
}

.download a {
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
  padding: 0.5rem;
  margin-top: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 1.25rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .main-content {
    padding: 1.5rem 1rem;
  }
  
  .sidebar {
    width: 280px;
    padding: 2rem 1.5rem;
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Optional: Overlay for mobile menu */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 800;
}

.overlay.active {
  display: block;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Additional styling for common elements */
button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #00291a;
}

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

a:hover {
  text-decoration: underline;
}
