
.search-input {
  margin: 1rem auto 2rem;
  max-width: 800px;
}
.category-tabs-wrapper {
  margin-bottom: 1rem;
  padding: 0 1rem;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.category-tabs a {
  color: #1e3a8a;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}
.category-tabs a {
  color: #1e3a8a;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}
.category-tabs a.active {
  color: #0ea5e9;
  border-color: #0ea5e9;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.blog-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}
.blog-card p {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 0.75rem;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-tags span {
  background-color: #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .category-tabs-wrapper {
    overflow-x: scroll;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none; /* Firefox */
  }
  .category-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  .category-tabs {
    display: inline-flex;
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}
.header-box h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1px;
}