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

body {
  font-family: "Inter", sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.header h1 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 800;
}

.header p {
  font-size: 20px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Bar */
.search-section {
  max-width: 1200px;
  margin: -30px auto 40px;
  padding: 0 20px;
}

.search-container {
  background: white;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 12px;
  font-family: "Inter", sans-serif;
}

.search-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.search-btn:hover {
  transform: scale(1.05);
}

/* Categories */
.categories {
  margin-top: 200px;
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-chip {
  background: white;
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  color: #6b7280;
}

.category-chip:hover,
.category-chip.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

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

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

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

.blog-category {
  display: inline-block;
  background: #ede9fe;
  color: #7c3aed;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  width: fit-content;
}

.blog-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-excerpt {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #9ca3af;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Featured Post */
.featured-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1f2937;
}

.featured-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.featured-content {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 16px;
}

.featured-title {
  font-size: 36px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
  line-height: 1.2;
}

.featured-excerpt {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 24px;
}

.read-more-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  width: fit-content;
  transition: transform 0.2s;
}

.read-more-btn:hover {
  transform: translateX(5px);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #6b7280;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f4f6;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state h3 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 12px;
}

.empty-state p {
  color: #6b7280;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 32px;
  }

  .header p {
    font-size: 16px;
  }

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

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 30px;
  }

  .featured-title {
    font-size: 28px;
  }

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

  .categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .category-chip {
    white-space: nowrap;
  }
}
