/* =====================================================================
   Blog templates (index.php, single.php, archive.php, search.php,
   sidebar.php). Classes here are translated 1:1 from the inline styles in
   new_frontend/Blog Detail.dc.html, kept in this separate file (rather than
   style.css) so blog-only CSS never has to be back-ported into the main
   Laravel app's shared stylesheet.
   ===================================================================== */

.ss-breadcrumb-bar {
  background: #fbf9fd;
  padding: 20px 0;
  border-bottom: 1px solid #f1ebf8;
  /* style.css's base `body` rule sets Poppins; every ss-* section ported
     from the new_frontend mockups re-declares Plus Jakarta Sans !important
     on its own rules to override that, rather than relying on inheritance
     alone — matched here and throughout this file for consistency. */
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-breadcrumb-bar__inner {
  max-width: 1600px;
  margin: 0 auto;
}

.ss-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px !important;
  color: #8c7ba3 !important;
  flex-wrap: wrap;
}

.ss-breadcrumb a {
  font-size: 13.5px !important;
  color: #8c7ba3 !important;
  /* style.css's global `a` rule sets Poppins and directly matches this
     element — an ancestor's font-family alone can't win against that
     (a direct match always beats an inherited value), so every <a>-tagged
     selector in this file needs its own explicit override too. */
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-breadcrumb a:hover {
  color: #5b2a86 !important;
}

.ss-breadcrumb__current {
  color: #5f5470;
}

/* --- Main layout: article + sidebar --- */
.ss-blog-main {
  background: #fff;
  padding: 56px 0 96px;
  /* Covers every plain <div>/<span> of text nested inside (article meta,
     author box, sidebar headings, vendor cards, etc.) via inheritance.
     The <a>/<p>/<li> elements within still need their own explicit
     overrides further down — see the note on .ss-breadcrumb a above. */
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-layout {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
}

@media (max-width: 1180px) {
  .ss-blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Article --- */
.ss-article {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.ss-article__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ss-article__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ss-tag-pill {
  padding: 6px 12px !important;
  border-radius: 999px;
  background: #f3eef8;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b2a86 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-tag-pill:hover {
  background: #e7dbf0;
}

.ss-article__title {
  margin: 0 !important;
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  line-height: 1.15 !important;
  color: #2e1a47 !important;
  text-wrap: pretty;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

/* Same fixed-size-plus-one-breakpoint pattern .ss-pdp-hero__name uses for
   the equivalent single-item detail-page title on the main site (30px
   desktop, 22px at 991px) — a single post's title is that same "one
   item's heading below a breadcrumb" case, not a listing-page hero, so it
   follows that convention rather than the clamp() used for hero titles. */
@media (max-width: 991px) {
  .ss-article__title {
    font-size: 28px !important;
  }
}

.ss-article__byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ss-article__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f4eff8;
}

.ss-article__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-article__byline-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ss-article__author {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #2e1a47 !important;
}

.ss-article__meta {
  font-size: 12.5px !important;
  color: #8c7ba3 !important;
}

.ss-article__hero {
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: #f4eff8;
}

.ss-article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-article__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #3d3450 !important;
}

.ss-article__body p {
  margin: 0 !important;
  text-wrap: pretty;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #3d3450 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-article__body h2 {
  margin: 8px 0 0 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em;
  color: #2e1a47 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-article__body h3 {
  margin: 8px 0 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #2e1a47 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-article__body blockquote,
.ss-article__body .ss-pullquote {
  margin: 0;
  border-left: 3px solid #efb93f;
  padding: 4px 0 4px 22px;
  font-size: 19px !important;
  font-weight: 600 !important;
  font-style: italic;
  color: #5b2a86 !important;
  line-height: 1.5 !important;
}

/* The block editor's native Quote block always wraps its text in an inner
   <p>, which .ss-article__body p (below) would otherwise win on — same
   specificity as the blockquote rule above, but a direct match beats an
   inherited value. This one extra selector level makes it win instead, so
   a real Quote block still renders as the gold-bordered pull-quote. */
.ss-article__body blockquote p,
.ss-article__body .ss-pullquote p {
  margin: 0 !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  font-style: italic;
  color: #5b2a86 !important;
  line-height: 1.5 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-article__body blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-style: normal;
  color: #8c7ba3 !important;
}

.ss-article__body img {
  max-width: 100%;
  border-radius: 14px;
  display: block;
}

/* Neutralizes wp-block-library's default figure margins (e.g. the Image
   block) — .ss-article__body's own 22px gap already spaces content blocks
   apart, so without this, images get that gap plus core's own margin
   stacked on top, throwing off the rhythm the mockup keeps consistent. */
.ss-article__body figure {
  margin: 0;
}

.ss-article__body figcaption {
  margin-top: 8px;
  font-size: 13px !important;
  color: #8c7ba3 !important;
  text-align: center;
}

.ss-article__body ul,
.ss-article__body ol {
  margin: 0;
  padding-left: 22px;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #3d3450 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

/* style.css's global rule directly matches "ul li, ol li" (not the ul/ol
   itself), so the list items still need their own override even with the
   one above in place. */
.ss-article__body li {
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-article__body a {
  color: #5b2a86 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

/* --- Author box --- */
.ss-author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border-radius: 16px;
  background: #fbf9fd;
  border: 1px solid #ede6f3;
}

.ss-author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f4eff8;
}

.ss-author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-author-box__name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #2e1a47 !important;
}

.ss-author-box__bio {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #5f5470 !important;
  text-wrap: pretty;
}

/* --- Related articles --- */
.ss-related {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid #efe9f5;
}

.ss-related__title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #2e1a47 !important;
}

.ss-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.ss-related__card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #efe9f5;
  background: #faf8fc;
  text-decoration: none !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-related__card:hover {
  border-color: #d9c7e8;
}

.ss-related__thumb {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f4eff8;
}

.ss-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-related__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ss-related__name {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #2e1a47 !important;
  line-height: 1.35 !important;
}

.ss-related__date {
  font-size: 12px !important;
  color: #8c7ba3 !important;
}

/* --- Sidebar --- */
.ss-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ss-advice-box {
  border-radius: 16px;
  border: 1px solid #e0d7ec;
  background: #fbf9fd;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ss-advice-box__title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #2e1a47 !important;
}

.ss-advice-box__text {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #5f5470 !important;
}

.ss-advice-box input {
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid #ded3ea;
  background: #fff;
  font-size: 14px !important;
  color: #2e1a47 !important;
  outline: none;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-advice-box input:focus {
  border-color: #5b2a86;
}

.ss-advice-box button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px;
  border: none;
  border-radius: 9px;
  background: #5b2a86;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
  cursor: pointer;
}

.ss-advice-box button:hover {
  background: #431f65;
}

.ss-sidebar__box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ss-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ss-sidebar__heading {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2e1a47 !important;
}

.ss-vendor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #efe9f5;
  background: #fff;
  text-decoration: none !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-vendor-card:hover {
  border-color: #d9c7e8;
  box-shadow: 0 12px 26px -20px rgba(46, 26, 71, 0.3);
}

.ss-vendor-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #faf8fc;
  border: 1px solid #efe9f5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ss-vendor-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.ss-vendor-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.ss-vendor-card__name {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #2e1a47 !important;
}

.ss-vendor-card__tag {
  font-size: 12.5px !important;
  color: #5f5470 !important;
}

.ss-vendor-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #8a5a00 !important;
}

.ss-vendor-card__rating .material-symbols-outlined {
  font-size: 14px;
  color: #efb93f;
}

.ss-sponsored-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #f1dda3;
  background: #fffbf0;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-sponsored-card:hover {
  border-color: #efb93f;
  box-shadow: 0 12px 26px -20px rgba(154, 106, 8, 0.25);
}

.ss-sponsored-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ss-sponsored-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f1dda3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ss-sponsored-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.ss-sponsored-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.ss-sponsored-card__name {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #2e1a47 !important;
}

.ss-sponsored-card__tag {
  font-size: 12.5px !important;
  color: #5f5470 !important;
}

.ss-sponsored-card__pitch {
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: #5f5470 !important;
  text-wrap: pretty;
}

.ss-sponsored-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #9a6a08 !important;
  transition: gap 0.15s;
}

.ss-sponsored-card:hover .ss-sponsored-card__cta {
  color: #6e4c05 !important;
  gap: 9px;
}

.ss-ad-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px !important;
  letter-spacing: 0.06em;
  color: #8c7ba3 !important;
}

.ss-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ss-sidebar-links a {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #463659 !important;
  line-height: 1.5 !important;
  padding: 10px 8px;
  border-bottom: 1px solid #efe9f5;
  border-radius: 6px;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-sidebar-links a:last-child {
  border-bottom: none;
}

.ss-sidebar-links a:hover {
  background: #f3eef8;
  color: #5b2a86 !important;
}

.ss-category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px !important;
  color: #463659 !important;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-category-links a:hover {
  background: #f3eef8;
  color: #5b2a86 !important;
}

.ss-category-links a span {
  color: #8c7ba3 !important;
}

/* --- Blog listing (index.php / archive.php / search.php) ---
   Hero / filters / featured post / results head / newsletter CTA are
   ported 1:1 from new_frontend/Blog Listing.dc.html. The mockup's category
   pills and search box filter a small hardcoded array entirely client-side
   (no pagination, no real URLs); here they're real links/a real search
   form instead — same look, but works without JS and scales past one
   page of posts. See template-parts/blog-hero.php, blog-filters.php,
   content-featured.php, blog-results.php and blog-newsletter.php. */
.ss-blog-hero {
  padding: 64px 0 40px;
  background: #2e1a47;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-hero__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}

.ss-blog-hero__eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c3b2d6 !important;
}

.ss-blog-hero__title {
  /* Same fluid-scaling pattern as the other listing-page hero titles
     (.ss-cat-hero__title, .ss-catlist-hero__title, .ss-search-hero__title,
     .ss-compare-hero__title all use clamp() the same way) rather than a
     flat size, so it scales down smoothly on narrow screens instead of
     staying pinned at 44px. */
  font-size: clamp(28px, 4.4vw, 44px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
  color: #fff !important;
  margin: 0 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-hero__sub {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: #d6c9e4 !important;
  max-width: 560px;
}

.ss-blog-hero__search {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 22px 6px 22px;
  border-radius: 12px;
  background: #fff;
}

.ss-blog-hero__search button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #8c7ba3;
}

.ss-blog-hero__search button .material-symbols-outlined {
  font-size: 20px;
}

.ss-blog-hero__search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 15px !important;
  color: #2e1a47 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
  background: transparent;
  padding: 10px 0;
}

/* --- Category filter pills --- */
.ss-blog-filters {
  background: #fff;
  padding: 28px 0 0;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-filters__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ss-blog-filter {
  cursor: pointer;
  padding: 11px 18px !important;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  border: 1px solid #e4dcec;
  background: #f8f5fb;
  color: #4a3d5c !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-filter.is-active {
  border-color: transparent;
  background: #2e1a47;
  color: #fff !important;
}

/* --- Featured post --- */
.ss-blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ede6f3;
  text-decoration: none !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-featured:hover {
  box-shadow: 0 20px 44px -28px rgba(46, 26, 71, 0.4);
}

.ss-blog-featured__img {
  height: 340px;
  background: #f4eff8;
}

.ss-blog-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-blog-featured__body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.ss-blog-featured__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px !important;
  border-radius: 999px;
  background: #fcf3e0;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6a08 !important;
}

.ss-blog-featured__title {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  color: #2e1a47 !important;
  text-wrap: pretty;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-featured__excerpt {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #5f5470 !important;
  text-wrap: pretty;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px !important;
  color: #8c7ba3 !important;
}

.ss-blog-featured__cta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #5b2a86 !important;
}

.ss-blog-featured__cta .material-symbols-outlined {
  font-size: 18px;
}

@media (max-width: 1180px) {
  .ss-blog-featured {
    grid-template-columns: 1fr;
  }

  .ss-blog-featured__img {
    height: 220px;
  }

  .ss-blog-featured__body {
    padding: 28px;
  }
}

/* --- Results head + grid --- */
.ss-blog-results-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ss-blog-results-head__label {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #2e1a47 !important;
}

.ss-blog-results-head__count {
  font-size: 14px !important;
  color: #8c7ba3 !important;
}

.ss-blog-listing {
  background: #fff;
  padding: 56px 0 96px;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-listing__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ss-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.ss-blog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid #ede6f3;
  background: #fff;
  overflow: hidden;
  text-decoration: none !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-card:hover {
  border-color: #d9c7e8;
  box-shadow: 0 16px 32px -22px rgba(46, 26, 71, 0.35);
}

.ss-blog-card__thumb {
  height: 190px;
  background: #f4eff8;
}

.ss-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 20px;
  /* .ss-blog-grid is a CSS grid, which stretches every card in a row to
     match the tallest one by default — without this, that extra height
     shows up as blank space below the meta line instead of being absorbed
     by the excerpt, which is what pins the date/read-time to the card's
     bottom edge. */
  flex: 1;
}

.ss-blog-card__title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #2e1a47 !important;
  line-height: 1.35 !important;
}

.ss-blog-card__excerpt {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #5f5470 !important;
  flex: 1;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-card__meta {
  font-size: 12px !important;
  color: #8c7ba3 !important;
}

.ss-blog-empty {
  padding: 56px;
  text-align: center;
  color: #8c7ba3 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

/* .ss-blog-empty wraps a <p> for the "no results" message (blog-results.php)
   and an <h1> + <p> on 404.php — both directly matched by style.css's
   global h1/p rules (Poppins), so they need this regardless of the parent
   rule above. */
.ss-blog-empty p,
.ss-blog-empty h1 {
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

/* WordPress's the_posts_pagination() renders its own <a class="page-numbers">
   / <span class="page-numbers current"> links with no styling of ours at
   all yet — this covers the typeface; visual styling (borders, active
   state, etc.) to match the rest of the theme is a separate follow-up. */
.ss-blog-pagination a,
.ss-blog-pagination span {
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-pagination {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

/* --- Newsletter CTA (between the grid and the footer) --- */
.ss-blog-newsletter {
  background: #fbf9fd;
  padding: 64px 0;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-newsletter__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  border-radius: 20px;
  background: #2e1a47;
  flex-wrap: wrap;
}

.ss-blog-newsletter__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}

.ss-blog-newsletter__title {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #fff !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-newsletter__sub {
  font-size: 15px !important;
  color: #c3b2d6 !important;
}

.ss-blog-newsletter__form {
  flex: 0 1 420px;
  display: flex;
  gap: 8px;
  min-width: 260px;
}

.ss-blog-newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #4b3465;
  background: #241238;
  font-size: 14px !important;
  color: #fff !important;
  outline: none;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
}

.ss-blog-newsletter__form input:focus {
  border-color: #efb93f;
}

.ss-blog-newsletter__form button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #efb93f;
  color: #2e1a47 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  font-family: "Plus Jakarta Sans", Helvetica, sans-serif !important;
  cursor: pointer;
  white-space: nowrap;
}

.ss-blog-newsletter__form button:hover {
  background: #f5cb66;
}

.ss-blog-newsletter__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.ss-blog-newsletter__success .material-symbols-outlined {
  font-size: 20px;
  color: #efb93f;
}

.ss-blog-newsletter__success div {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .ss-blog-newsletter__form {
    flex: 1 1 100%;
    flex-direction: column;
  }
}

/* Same side-gutter idiom style.css uses for its own full-bleed ss-* sections
   at this breakpoint (see its closing @media (max-width: 1600px) block) —
   .container / these sections' own __inner wrappers have no horizontal
   padding of their own, so without this the text here would run flush to
   the viewport edge on every ordinary screen. */
@media (max-width: 1600px) {
  .ss-blog-hero,
  .ss-breadcrumb-bar,
  .ss-blog-filters,
  .ss-blog-listing,
  .ss-blog-newsletter,
  .ss-blog-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}
