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

:root {
  --primary-color: #2d8659;
  --primary-dark: #1f5d3f;
  --primary-light: #3da372;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

header nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

header nav a:hover,
header nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
  flex: 1;
  padding: 3rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Documents Grid */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.document-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.document-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.document-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark);
}

/* Document Content */
.document-content {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.document-content h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.document-content section {
  margin-bottom: 2.5rem;
}

.document-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.document-content h3:first-of-type {
  margin-top: 0;
}

.document-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.document-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.document-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  color: var(--text-color);
}

.document-content li strong {
  color: var(--primary-dark);
}

/* Footer */
footer {
  background-color: var(--bg-light);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

footer p {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav {
    width: 100%;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  header nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .document-content {
    padding: 1.5rem;
  }

  .document-content h2 {
    font-size: 2rem;
  }

  .document-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .document-content {
    padding: 1rem;
  }

  .document-content h2 {
    font-size: 1.75rem;
  }
}
