/* Wrapper and Tabs */
.smb-grid-wrapper {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.smb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.smb-tab {
  background: #f0f0f0;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.smb-tab.active,
.smb-tab:hover {
  background: #0066cc;
  color: #fff;
}

/* Grid and Card */
.smb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.smb-post-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.smb-post-card:hover {
  transform: translateY(-4px);
}

.smb-post-card-link {
  color: inherit;
  text-decoration: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.smb-post-card-image {
  height: 180px;
  background: #f9f9f9;
  overflow: hidden;
  flex-shrink: 0;
}

.smb-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.smb-post-card:hover .smb-post-card-image img {
  transform: scale(1.05);
}

.smb-post-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.smb-post-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.smb-post-card-excerpt {
  flex-grow: 1;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.smb-post-card-meta {
  font-size: 0.85rem;
  color: #777;
  text-align: left;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  margin-top: auto;
}

/* Load More + Spinner */
.smb-load-more-wrap {
  text-align: center;
  margin: 20px 0 40px;
}

.smb-load-more {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.smb-load-more:hover {
  background: #005bb5;
}

.smb-spinner {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 3px solid #ccc;
  border-top-color: #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 12px;
  vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 600px) {
  .smb-post-card-image {
    height: 200px;
  }
}
