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

body {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

/* Header */
header {
  padding: 1rem 0;
  margin-bottom: 0.5rem;
}
header a {
  color: #4a90d9;
  text-decoration: none;
  font-size: 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}
.breadcrumbs li:not(:last-child)::after {
  content: " ›";
  margin-left: 0.25rem;
  color: #ccc;
}
.breadcrumbs a {
  color: #4a90d9;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Section headers */
.section-header {
  margin-bottom: 1.5rem;
}
.section-banner {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.section-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
}
.section-banner h2 {
  position: relative;
  color: white;
  font-size: 1.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.section-description {
  color: #666;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}
.intro {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.card-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 0.75rem;
}
.card-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-size: 1rem;
  color: #4a90d9;
  margin-bottom: 0.25rem;
}
.card p {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.4;
}
.card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

/* Article page */
.article-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.article-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.article-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.article-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
}
.article-text p {
  margin-bottom: 1rem;
}
.article-image {
  flex-shrink: 0;
  width: 280px;
}
.article-image img {
  width: 100%;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .article-body {
    flex-direction: column;
  }
  .article-image {
    width: 100%;
  }
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
}
