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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

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

header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: white;
  padding: 60px 0 50px;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

header h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 12px;
}

header h1 a {
  color: white;
  text-decoration: none;
}

header p {
  text-align: center;
  opacity: 0.95;
  font-size: 1.1rem;
  font-weight: 400;
}

main {
  min-height: 60vh;
}

.hero {
  text-align: center;
  padding: 40px 0 60px;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #1a1a1a;
  font-weight: 800;
}

.hero p {
  color: #666;
  font-size: 1.2rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

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

.article-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.3;
}

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

.article-card .summary {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.article-card .meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #999;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.read-more {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 12px;
  display: inline-block;
}

.article-wrapper {
  background: white;
  padding: 60px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto 50px;
}

.article-featured-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  color: #1a1a1a;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.article-content h2 {
  color: #6366f1;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 700;
}

.article-content h3 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul {
  margin: 20px 0 20px 30px;
}

.article-content li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-content a {
  color: #6366f1;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.article-content a:hover {
  border-bottom-color: #6366f1;
}

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

.article-content blockquote {
  border-left: 4px solid #6366f1;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #666;
}

.ad-unit, .ad-placeholder {
  margin: 40px 0;
  padding: 30px;
  background: #f9f9f9;
  text-align: center;
  border: 2px dashed #e0e0e0;
  color: #999;
  border-radius: 12px;
}

.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.article-footer a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s;
  display: inline-block;
}

.article-footer a:hover {
  transform: translateX(-4px);
}

footer {
  background: #1a1a1a;
  color: #999;
  padding: 50px 0;
  text-align: center;
  margin-top: 80px;
}

footer small {
  font-size: 0.85rem;
  display: block;
  margin-top: 10px;
}

.keywords {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.keyword {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-wrapper {
    padding: 30px 20px;
  }

  header h1 {
    font-size: 2.2rem;
  }

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

  .article-header h1 {
    font-size: 2rem;
  }

  .article-featured-image {
    height: 250px;
  }

  .article-card-image {
    height: 200px;
  }
}
