:root {
  --ssbc-accent: #F28C28;
  /* orange */
  --ssbc-text: #111827;
  --ssbc-muted: #6B7280;
  --ssbc-border: #E5E7EB;
  --ssbc-bg: #ffffff;
  --ssbc-radius: 18px;
  --ssbc-shadow: 0 12px 30px rgba(17, 24, 39, .08);
}

.ssbc-wrap {
  width: 100%;
  direction: rtl;
  font-family: inherit;
}

.ssbc-grid {
  display: grid;
  gap: 28px;
}

.ssbc-cols-1 {
  grid-template-columns: 1fr;
}

.ssbc-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssbc-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ssbc-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {

  .ssbc-cols-3,
  .ssbc-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ssbc-grid {
    gap: 18px;
  }

  .ssbc-cols-2,
  .ssbc-cols-3,
  .ssbc-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Card */
.ssbc-card {
  background: var(--ssbc-bg);
  border-radius: var(--ssbc-radius);
  box-shadow: var(--ssbc-shadow);
  overflow: hidden;
}

.ssbc-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.ssbc-media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.ssbc-card--archive .ssbc-media img {
  height: 260px;
}

.ssbc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.ssbc-badge--overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ssbc-accent);
  color: #fff;
}

.ssbc-badge--soft {
  background: rgba(242, 140, 40, .14);
  color: var(--ssbc-accent);
}

.ssbc-body {
  padding: 18px 22px 20px;
}

.ssbc-meta {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  align-items: center;
  color: var(--ssbc-muted);
  font-size: 13px;
}

.ssbc-meta-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.ssbc-ico {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: .85;
}

.ssbc-catrow {
  margin-top: 10px;
  display: flex;
}

.ssbc-title {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ssbc-text);
}

.ssbc-card--home .ssbc-title {
  font-size: 21px;
}

.ssbc-title a {
  color: inherit;
  text-decoration: none;
}

.ssbc-title a:hover {
  color: var(--ssbc-accent);
}

.ssbc-excerpt {
  margin: 0;
  color: var(--ssbc-muted);
  font-size: 14px;
  line-height: 1.9;
  min-height: 58px;
}

.ssbc-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ssbc-accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.ssbc-arrow {
  display: inline-block;
  transform: translateY(-1px);
}

/* Blog Topbar (filters + search) */
.ssbc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.ssbc-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ssbc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ssbc-border);
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  transition: .2s ease;
}

.ssbc-pill:hover {
  border-color: rgba(242, 140, 40, .45);
}

.ssbc-pill.is-active {
  background: var(--ssbc-accent);
  color: #fff;
  border-color: var(--ssbc-accent);
}

/* Search */
.ssbc-search {
  position: relative;
  min-width: 320px;
  max-width: 420px;
  flex: 1;
}

@media (max-width: 640px) {
  .ssbc-search {
    min-width: 100%;
    max-width: 100%;
  }
}

.ssbc-search-ico {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

input.ssbc-search-input {
  border-radius: 12px !important;
}

.ssbc-search-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ssbc-border);
  padding: 0 44px 0 14px;
  /* icon on right */
  outline: none;
  font-size: 14px;
  background: #fff;
}

.ssbc-search-input:focus {
  border-color: rgba(242, 140, 40, .55);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, .12);
}

/* Empty + Pagination */
.ssbc-empty {
  padding: 26px;
  border: 1px dashed var(--ssbc-border);
  border-radius: 14px;
  color: var(--ssbc-muted);
  background: #fafafa;
}

.ssbc-pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

.ssbc-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--ssbc-border);
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  transition: .2s ease;
}

.ssbc-page:hover {
  border-color: rgba(242, 140, 40, .45);
}

.ssbc-page.is-active {
  background: var(--ssbc-accent);
  border-color: var(--ssbc-accent);
  color: #fff;
}

.ssbc-page.is-prev,
.ssbc-page.is-next {
  padding: 0 16px;
}

.ssbc-grid.ssbc-cols-3 {
  padding: 64px 0;
}


/* =============================
   Single Post Layout (SSBC)
   Accent: #F28C28
============================= */

.ssbc-single {
  --accent: #F28C28;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

.ssbc-single__head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 18px;
}

.ssbc-single__title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.25;
  color: #0f172a;
}

.ssbc-single__sub {
  margin: 10px auto 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.9;
  max-width: 720px;
}

.ssbc-single__cats {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ssbc-single__cover {
  margin: 18px auto 18px;
}

.ssbc-single__cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

/* two columns */
.ssbc-single__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .ssbc-single__layout {
    grid-template-columns: 1fr;
  }
}

.ssbc-single__meta {
  display: flex;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 12px;
}

.ssbc-single__article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.ssbc-single__article p {
  margin: 0 0 14px;
  line-height: 2.05;
  color: #111827;
}

.ssbc-single__article a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.ssbc-single__article a:hover {
  text-decoration: underline;
}

/* Sidebar widgets */
.ssbc-widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  padding: 16px;
  margin-bottom: 16px;
}

.ssbc-widget__title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #0f172a;
}

/* categories list */
.ssbc-catlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ssbc-catlist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
}

.ssbc-catlist li:last-child {
  border-bottom: 0;
}

.ssbc-catlist a {
  color: #111827;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
}

.ssbc-catlist a:hover {
  color: var(--accent);
}

.ssbc-count {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 10px;
}

/* latest posts */
.ssbc-latest {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ssbc-latest__item {
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.ssbc-latest__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  flex: 0 0 56px;
}

.ssbc-latest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ssbc-latest__t {
  display: block;
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
}

.ssbc-latest__d {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

/* tags */
.ssbc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ssbc-tags a {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  text-decoration: none;
  color: #111827;
}

.ssbc-tags a:hover {
  border-color: rgba(242, 140, 40, .55);
  color: var(--accent);
}

.ssbc-single-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Cairo', sans-serif;
}

.ssbc-single-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

/* الكارت الرئيسي للمقال */
.ssbc-article-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 30px;
}

.ssbc-cat-label {
  background: #007bff;
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 13px;
  margin-left: 10px;
}

.ssbc-entry-title {
  font-size: 32px;
  margin: 15px 0;
  color: #222;
}

/* تنسيق الصورة البارزة */
.ssbc-featured-image {
  margin: 25px -30px;
  /* تخرج قليلاً عن حدود البادينج لشكل عصري */
  max-height: 500px;
  overflow: hidden;
}

.ssbc-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ssbc-entry-content {
  line-height: 1.8;
  font-size: 17px;
  color: #444;
}

/* تنسيق السايد بار */
.ssbc-widget-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.ssbc-widget-title {
  font-size: 18px;
  border-right: 4px solid #007bff;
  padding-right: 12px;
  margin-bottom: 20px;
}

.ssbc-recent-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 15px;
}

.ssbc-recent-thumb img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.ssbc-recent-info h4 {
  font-size: 14px;
  color: #333;
  margin: 0 0 5px 0;
}

@media (max-width: 992px) {
  .ssbc-single-layout {
    grid-template-columns: 1fr;
  }
}