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

:root {
  --primary-color: #007AFF;
  --secondary-color: #5AC8FA;
  --text-dark: #000;
  --text-light: #666;
  --bg-light: #f5f5f5;
  --bg-white: #fff;
  --border-color: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #fff;
    --text-light: #aaa;
    --bg-light: #1a1a1a;
    --bg-white: #2a2a2a;
    --border-color: #444;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* Main Content */
.content {
  padding: 40px 20px;
  min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.tagline {
  font-size: 18px;
  color: var(--text-light);
}

/* Sections */
section {
  margin-bottom: 48px;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
  margin-top: 40px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

section:first-of-type h2 {
  margin-top: 0;
}

h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

p {
  margin-bottom: 16px;
  color: var(--text-dark);
  line-height: 1.8;
}

.meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 32px;
}

/* Lists */
ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 10px;
  color: var(--text-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* Document Grid */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 48px;
}

.doc-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

.doc-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.doc-card p {
  margin-bottom: 20px;
  font-size: 14px;
}

/* Button */
.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #005FCC;
  text-decoration: none;
}

/* Info Section */
.info-section {
  margin-bottom: 48px;
}

/* Footer */
.footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 32px 20px;
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

.footer p {
  margin-bottom: 8px;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 16px;
  }

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

  .content {
    padding: 24px 20px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

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