.spm-blogs .spm-hero {
  padding-bottom: 26px;
}

.spm-blogs-hero {
  background: radial-gradient(1100px 600px at 15% 0%, rgba(255, 102, 0, 0.14), rgba(0, 0, 0, 0) 58%),
              radial-gradient(900px 550px at 92% 18%, rgba(37, 99, 235, 0.12), rgba(0, 0, 0, 0) 55%);
}

.spm-blogs-search {
  margin-top: 18px;
}

.spm-blogs-search-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.spm-blogs-search-inner input {
  border: none;
  outline: none;
  padding: 12px 14px;
  background: transparent;
  font-size: 15px;
}

.spm-blogs-search-inner button {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  background: #0f172a;
  color: #fff;
}

.spm-blogs-cats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.spm-cat {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #0f172a;
  text-decoration: none;
}

.spm-cat:hover {
  background: rgba(255, 102, 0, 0.10);
  border-color: rgba(255, 102, 0, 0.25);
}

.spm-blogs-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.spm-blog-card {
  grid-column: span 12;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  .spm-blog-card { grid-column: span 6; }
}

@media (min-width: 1100px) {
  .spm-blog-card { grid-column: span 4; }
}

.spm-blog-media {
  display: block;
  width: 100%;
  padding-top: 56%;
  position: relative;
  background-color: #f3f4f6;
}

.spm-blog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.06));
}

.spm-blog-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spm-blog-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.60);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.spm-blog-body {
  padding: 14px 14px 16px 14px;
}

.spm-blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.spm-blog-cat {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 102, 0, 0.10);
  border: 1px solid rgba(255, 102, 0, 0.22);
  color: #0f172a;
  text-decoration: none;
}

.spm-blog-date {
  font-size: 12px;
  opacity: 0.70;
  white-space: nowrap;
}

.spm-blog-title {
  font-size: 18px;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.spm-blog-title a {
  color: #0f172a;
  text-decoration: none;
}

.spm-blog-title a:hover {
  text-decoration: underline;
}

.spm-blog-actions {
  display: flex;
  gap: 10px;
}

.spm-blogs-pagination {
  margin-top: 22px;
}

/* Pagination: CI typically outputs UL/LI links */
.spm-blogs-pagination ul,
.spm-blogs-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-left: 0;
  list-style: none;
}

.spm-blogs-pagination a,
.spm-blogs-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}

.spm-blogs-pagination a:hover {
  border-color: rgba(255, 102, 0, 0.35);
  background: rgba(255, 102, 0, 0.08);
}

.spm-blogs-empty {
  margin-top: 18px;
}

/* Small button variant (used on cards) */
.spm-btn.spm-btn-sm {
  padding: 10px 14px;
  font-size: 14px;
}
