/* ==========================================================================
   BLOG  -  listing grid and single article
   Scoped under .ssp so it inherits the same tokens, type and colour as the
   service pages. Loaded on /blog/ and on single posts.
   ========================================================================== */

/* Selo's page-title banner is replaced by our own article hero. */
.single #main-header,
.blog #main-header,
.page-id-28105 #main-header { display: none !important; }

/* --------------------------------------------------------------------------
   LISTING GRID
   -------------------------------------------------------------------------- */

.ssp .ss-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: left;
}

.ssp .ss-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ssp .ss-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #fed7aa; }

.ssp .ss-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1B2840 60%, #24324d 100%);
}

.ssp .ss-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.ssp .ss-card:hover .ss-card-media img { transform: scale(1.04); }

/* Fallback shown until a post gets a real featured image. */
.ssp .ss-card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background:
    radial-gradient(300px 220px at 84% 12%, rgba(249,115,22,.30), rgba(249,115,22,0) 70%),
    linear-gradient(135deg, #0F172A 0%, #16233c 100%);
}
.ssp .ss-card-fallback span {
  font-family: Manrope, Inter, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
  max-width: 88%;
}
.ssp .ss-card-fallback small {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--orange);
}

.ssp .ss-card-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 24px 0;
  flex-grow: 1;
}

.ssp .ss-cat {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FFF7ED;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.ssp .ss-card h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
}
.ssp .ss-card h3 a { color: var(--navy); transition: color .2s ease; }
.ssp .ss-card:hover h3 a { color: var(--orange); }

.ssp .ss-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.ssp .ss-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.ssp .ss-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.ssp .ss-card-meta .go { margin-left: auto; color: var(--orange); font-weight: 800; }

/* Category filter chips */
.ssp .ss-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 38px 0 6px;
}
.ssp .ss-filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  transition: .2s;
}
.ssp .ss-filter:hover { border-color: #fed7aa; color: var(--orange); }
.ssp .ss-filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Pagination */
.ssp .ss-pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}
.ssp .ss-pager a, .ssp .ss-pager span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.ssp .ss-pager .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.ssp .ss-pager a:hover { border-color: #fed7aa; color: var(--orange); }

.ssp .ss-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 22px;
}

/* --------------------------------------------------------------------------
   SINGLE ARTICLE
   -------------------------------------------------------------------------- */

.ssp.ss-single { background: #fff; }

.ssp .ss-article-head {
  background: linear-gradient(180deg, #FFF7ED 0%, var(--cream) 100%);
  padding: 58px 0 52px;
  border-bottom: 1px solid var(--line);
}

.ssp .ss-crumbs {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}
.ssp .ss-crumbs a { color: var(--muted); }
.ssp .ss-crumbs a:hover { color: var(--orange); }
.ssp .ss-crumbs span { color: var(--navy); font-weight: 600; }

.ssp .ss-article-head h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -1.4px;
  max-width: 900px;
  margin: 14px 0 0;
}

.ssp .ss-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.ssp .ss-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.ssp .ss-meta b { color: var(--navy); font-weight: 700; }

.ssp .ss-hero-img {
  margin-top: 34px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ssp .ss-hero-img img { width: 100%; height: auto; display: block; }

.ssp .ss-article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 58px;
  align-items: start;
  padding: 62px 0 20px;
}

/* Article typography */
.ssp .ss-prose { font-size: 16.5px; line-height: 1.85; color: #33415c; min-width: 0; }
.ssp .ss-prose > *:first-child { margin-top: 0; }
.ssp .ss-prose p { margin: 0 0 22px; }
.ssp .ss-prose h2 { font-size: 28px; line-height: 1.3; margin: 44px 0 16px; letter-spacing: -.6px; }
.ssp .ss-prose h3 { font-size: 21px; line-height: 1.35; margin: 34px 0 12px; }
.ssp .ss-prose h4 { font-size: 18px; margin: 28px 0 10px; }
.ssp .ss-prose ul, .ssp .ss-prose ol { margin: 0 0 22px; padding-left: 22px; }
.ssp .ss-prose li { margin-bottom: 9px; }
.ssp .ss-prose ul li::marker { color: var(--orange); }
.ssp .ss-prose ol li::marker { color: var(--orange); font-weight: 700; }
.ssp .ss-prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.ssp .ss-prose a:hover { color: #c2410c; }
.ssp .ss-prose img { max-width: 100%; height: auto; border-radius: 18px; margin: 12px 0 26px; }
.ssp .ss-prose blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--orange);
  background: #FFF7ED;
  border-radius: 0 16px 16px 0;
  font-weight: 600;
  color: var(--navy);
}
.ssp .ss-prose blockquote p:last-child { margin-bottom: 0; }
.ssp .ss-prose table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 14.5px; }
.ssp .ss-prose th, .ssp .ss-prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.ssp .ss-prose th { background: var(--soft); font-weight: 700; color: var(--navy); }
.ssp .ss-prose code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.ssp .ss-prose figure { margin: 0 0 26px; }
.ssp .ss-prose iframe { max-width: 100%; border-radius: 16px; }

/* Sidebar */
.ssp .ss-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }

.ssp .ss-aside-card {
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.ssp .ss-aside-card h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.ssp .ss-aside-list { display: flex; flex-direction: column; gap: 11px; }
.ssp .ss-aside-list a { font-size: 14px; line-height: 1.5; color: var(--navy); }
.ssp .ss-aside-list a:hover { color: var(--orange); }

.ssp .ss-aside-cta {
  background:
    radial-gradient(circle at 88% -10%, rgba(249,115,22,.22) 0%, rgba(249,115,22,0) 62%),
    var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.ssp .ss-aside-cta h4 { color: var(--orange); }
.ssp .ss-aside-cta p { font-size: 14px; line-height: 1.7; color: #CBD5E1; margin-bottom: 18px; }
.ssp .ss-aside-cta .btn { width: 100%; justify-content: center; }

.ssp .ss-share { display: flex; flex-wrap: wrap; gap: 9px; }
.ssp .ss-share a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--navy);
  transition: .2s;
}
.ssp .ss-share a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.ssp .ss-share svg { width: 16px; height: 16px; }

/* Related */
.ssp .ss-related { background: var(--soft); padding: 72px 0; margin-top: 50px; }

@media (max-width: 1040px) {
  .ssp .ss-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .ssp .ss-article-body { grid-template-columns: 1fr; gap: 42px; }
  .ssp .ss-aside { position: static; }
}

@media (max-width: 680px) {
  .ssp .ss-blog-grid { grid-template-columns: 1fr; }
  .ssp .ss-article-head { padding: 40px 0 36px; }
  .ssp .ss-prose { font-size: 16px; }
  .ssp .ss-prose h2 { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   BLOG LISTING HERO
   -------------------------------------------------------------------------- */

.ssp .ss-blog-hero {
  background: linear-gradient(180deg, #FFF7ED 0%, var(--cream) 100%);
  padding-top: 72px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.ssp .ss-blog-hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.14;
  letter-spacing: -1.8px;
  max-width: 820px;
  margin: 0 auto;
}

.ssp .ss-blog-hero .lead { margin: 18px auto 0; }
