/* SC Blog Grid */
.scbg-wrap {
  width: 100%;
  --scbg-font-family: inherit;
  --scbg-title-size: 18px;
  --scbg-excerpt-size: 13px;
  --scbg-meta-size: 12px;
}

.scbg-grid {
  display: grid;
  grid-template-columns: repeat(var(--scbg-cols, 2), minmax(0, 1fr));
  gap: 22px;
}

/* Responsive behavior */
@media (max-width: 1024px) {
  .scbg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .scbg-grid { grid-template-columns: 1fr; }
}

.scbg-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: var(--scbg-font-family, inherit);
}

/* Beat Elementor global heading/type rules inside the blog grid cards */
.scbg-wrap .scbg-card,
.scbg-wrap .scbg-card .scbg-title,
.scbg-wrap .scbg-card .scbg-title a,
.scbg-wrap .scbg-card .scbg-excerpt,
.scbg-wrap .scbg-card .scbg-readmore,
.scbg-wrap .scbg-card .scbg-footer {
  font-family: var(--scbg-font-family, inherit) !important;
}

.scbg-thumb {
  display: block;
  width: 100%;
  background: #f3f3f3;
  line-height: 0;
}

.scbg-thumb-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.scbg-thumb-fallback {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #eaeaea, #f7f7f7);
}

.scbg-body {
  padding: 16px 18px 14px;
}

.scbg-title {
  margin: 0 0 10px;
  font-size: var(--scbg-title-size, 18px) !important;
  line-height: 1.25;
  font-weight: 700 !important;
}

.scbg-title a {
  text-decoration: none;
  color: inherit;
}

.scbg-title a:hover {
  text-decoration: underline;
}

.scbg-excerpt {
  font-size: var(--scbg-excerpt-size, 13px) !important;
  line-height: 1.55;
  color: rgba(0,0,0,0.72);

  /* Responsive "lines" clamp */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--scbg-lines, 3);
  overflow: hidden;
}

.scbg-readmore {
  margin-top: 12px;
  font-size: var(--scbg-meta-size, 12px) !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.scbg-readmore a {
  text-decoration: none;
  color: rgba(0,0,0,0.62);
}

.scbg-readmore a:hover {
  color: rgba(0,0,0,0.85);
  text-decoration: underline;
}

.scbg-footer {
  margin-top: auto;
  padding: 10px 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: var(--scbg-meta-size, 12px) !important;
  color: rgba(0,0,0,0.55);
  background: #fff;
}

.scbg-empty {
  padding: 18px;
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: 6px;
}

/* Pagination */
.scbg-pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.scbg-pagination-list {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  align-items: center;
}

.scbg-page-item a,
.scbg-page-item span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  color: rgba(0,0,0,0.75);
}

.scbg-page-item a:hover {
  text-decoration: underline;
}

.scbg-page-item .current {
  font-weight: 700;
  text-decoration: underline;
  color: rgba(0,0,0,0.9);
}
