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

/* ===========================
   White Background Wrapper
=========================== */
.blog-section-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ===========================
   Category Filters (Improved)
=========================== */
.blog-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 0;
  position: relative;
  color: #444;
}

.filter-btn:hover {
  color: #6a0dad;
}

.filter-btn.active {
  color: #6a0dad;
}

.filter-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #6a0dad;
}

/* ===========================
   Section Heading (Improved)
=========================== */
.featured-expert-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===========================
   Grid Layout
=========================== */
.expert-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ===========================
   Blog Card
=========================== */
.expert-card {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* ===========================
   CTA Button
=========================== */
.btn-primary {
  display: inline-block;
  background: #6a0dad;
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}
/* Prevent cards from stretching too wide on sparse grids */
.expert-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-content: center;
}

/* Cap max width of cards so they don't stretch full width */
.expert-card {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}