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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

/* Navigation */
.navbar {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #2563eb;
}

.language-select {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Hero Section for Pages */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-title {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  padding: 0 2rem;
  margin: 0;
  max-width: 1200px;
}

.hero-subtitle {
  color: white;
  font-size: 1.25rem;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-top: 1rem;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Content */
.content-section {
  padding: 3rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.card h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h2 a {
  color: #1f2937;
  text-decoration: none;
}

.card h2 a:hover {
  color: #2563eb;
}

.excerpt {
  color: #6b7280;
  margin-bottom: 1rem;
}

.read-more {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Page Content */
.page-content {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.page-content h1 {
  color: #1f2937;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content img[style*="float: left"] {
  margin: 0 1.5rem 1rem 0;
}

.content img[style*="float: right"] {
  margin: 0 0 1rem 1.5rem;
}

.content::after {
  content: "";
  display: table;
  clear: both;
}

.content h1 {
  color: #1f2937;
  font-size: 2.25rem;
  margin: 2.5rem 0 1.25rem;
  font-weight: bold;
  line-height: 1.2;
}

.content h2 {
  color: #374151;
  font-size: 1.875rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.content h3 {
  color: #4b5563;
  font-size: 1.5rem;
  margin: 1.75rem 0 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.content h4 {
  color: #4b5563;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.content h5 {
  color: #6b7280;
  font-size: 1.125rem;
  margin: 1.25rem 0 0.625rem;
  font-weight: 600;
  line-height: 1.5;
}

.content h6 {
  color: #6b7280;
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.5;
}

.content p {
  margin-bottom: 1.25rem;
}

.content ul,
.content ol {
  margin: 1rem 0 1rem 2rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content a {
  color: #2563eb;
  text-decoration: none;
}

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

.content strong {
  font-weight: 600;
  color: #1f2937;
}

.content code {
  background: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.content pre {
  background: #1f2937;
  color: #f3f4f6;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.content blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #4b5563;
  font-style: italic;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.content table th {
  background: #f3f4f6;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}

.content table td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
}

.content table tr:nth-child(even) {
  background: #f9fafb;
}

/* Footer */
.footer {
  background: linear-gradient(to right, #1e40af, #1e3a8a);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

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

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

/* Error Page */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
}

.error-page h1 {
  font-size: 6rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.error-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.button {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.3s;
}

.button:hover {
  background: #1e40af;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .page-content {
    padding: 1.5rem;
  }
}
