/* ==========================================================================
   Sharjah Chemical — custom design layer
   Site-specific components: page hero, product catalogue, product detail,
   FAQ accordion, about/contact layout, blog polish.
   Loaded after all theme CSS so it can safely override defaults.
   ========================================================================== */

:root {
  --sj-green: var(--pbmit-global-color, #00b30f);
  --sj-green-dark: var(--pbmit-secondary-color, #03251e);
  --sj-ink: var(--pbmit-heading-color, #111112);
  --sj-body: var(--pbmit-body-typography-color, #666666);
  --sj-line: #e7e7e5;
  --sj-surface: #f7f7f5;
  --sj-white: #ffffff;
  --sj-radius: 14px;
  --sj-shadow: 0 10px 30px rgba(3, 37, 30, 0.08);
  --sj-shadow-hover: 0 16px 40px rgba(3, 37, 30, 0.14);
}

/* --------------------------------------------------------------------------
   00 — Page hero (About / Contact / FAQ / Products)
   Replaces the external hot-linked demo titlebar image with a local,
   on-brand hero band.
   -------------------------------------------------------------------------- */
.sj-hero {
  position: relative;
  /* The theme's header is positioned out of normal flow (fixed overlay,
     see .pbmit-title-bar-content's own 190px padding-top convention), so
     the hero needs matching top clearance or the fixed nav covers it. */
  padding: 190px 0 64px;
  background: linear-gradient(120deg, var(--sj-green-dark) 0%, #06392e 55%, var(--sj-green-dark) 100%);
  overflow: hidden;
  isolation: isolate;
}
.sj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(0, 179, 15, 0.35) 0, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(0, 179, 15, 0.22) 0, transparent 50%);
  z-index: -1;
}
.sj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
  z-index: -1;
}
.sj-hero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pbmit-btn-typography-font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 18px;
}
.sj-hero__crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.sj-hero__crumb a:hover { color: var(--sj-green); }
.sj-hero__crumb span.sep { opacity: .5; }
.sj-hero__crumb span.current { color: var(--sj-green); }
.sj-hero h1 {
  color: var(--sj-white);
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.sj-hero p.lead {
  color: rgba(255,255,255,.72);
  font-size: 17px;
  max-width: 620px;
  margin: 0;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .sj-hero { padding: 150px 0 44px; }
  .sj-hero h1 { font-size: 30px; }
}
.sj-hero--product { padding-top: 190px; padding-bottom: 40px; }
@media (max-width: 767px) {
  .sj-hero--product { padding-top: 150px; }
}

/* --------------------------------------------------------------------------
   01 — Products: layout shell (sidebar + grid)
   -------------------------------------------------------------------------- */
.sj-catalogue {
  padding: 60px 0 90px;
  background: var(--sj-white);
}
.sj-catalogue__shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 991px) {
  .sj-catalogue__shell { grid-template-columns: 1fr; }
}

/* -- Sidebar -- */
.sj-catfilter {
  background: var(--sj-surface);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  padding: 26px 22px;
  position: sticky;
  top: 24px;
}
.sj-catfilter h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sj-ink);
  margin: 0 0 16px;
}
.sj-catfilter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sj-white);
  border: 1px solid var(--sj-line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.sj-catfilter__search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--sj-ink);
  font-family: var(--pbmit-body-typography-font-family);
}
.sj-catfilter__search svg { flex: none; color: var(--sj-body); }
.sj-catlist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 560px;
  overflow-y: auto;
}
.sj-catlist::-webkit-scrollbar { width: 5px; }
.sj-catlist::-webkit-scrollbar-thumb { background: #d6d6d2; border-radius: 4px; }
.sj-catlist li { border-bottom: 1px dashed var(--sj-line); }
.sj-catlist li:last-child { border-bottom: 0; }
.sj-catlist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  font-size: 14px;
  color: var(--sj-body);
  text-decoration: none;
  transition: color .15s ease, padding-left .15s ease;
}
.sj-catlist a:hover { color: var(--sj-green-dark); padding-left: 4px; }
.sj-catlist a.is-active { color: var(--sj-green-dark); font-weight: 700; }
.sj-catlist a .count {
  font-size: 11px;
  font-weight: 600;
  color: var(--sj-body);
  background: var(--sj-white);
  border: 1px solid var(--sj-line);
  border-radius: 20px;
  padding: 2px 8px;
  flex: none;
}
.sj-catlist a.is-active .count {
  background: var(--sj-green);
  border-color: var(--sj-green);
  color: var(--sj-white);
}
.sj-catfilter__reset {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sj-green-dark);
  text-decoration: underline;
}

/* -- Toolbar (count + active category chip) -- */
.sj-catalogue__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sj-line);
}
.sj-catalogue__count {
  font-size: 14px;
  color: var(--sj-body);
}
.sj-catalogue__count strong { color: var(--sj-ink); }
.sj-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sj-green-dark);
  color: var(--sj-white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
}
.sj-chip a { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 700; }

/* -- Product grid & card -- */
.sj-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 1199px) { .sj-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sj-product-grid { grid-template-columns: 1fr; } }

.sj-product-card {
  display: flex;
  flex-direction: column;
  background: var(--sj-white);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.sj-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sj-shadow-hover);
  border-color: transparent;
}
.sj-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sj-surface);
  overflow: hidden;
}
.sj-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  transition: transform .35s ease;
}
.sj-product-card:hover .sj-product-card__media img { transform: scale(1.05); }
.sj-product-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(3, 37, 30, 0.88);
  color: var(--sj-white);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 20px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sj-product-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sj-product-card__title {
  font-family: var(--pbmit-heading-typography-font-family);
  font-size: 17px;
  font-weight: 700;
  color: var(--sj-ink);
  margin: 0 0 8px;
  line-height: 1.35;
}
.sj-product-card__title a { color: inherit; text-decoration: none; }
.sj-product-card__title a:hover { color: var(--sj-green-dark); }
.sj-product-card__desc {
  font-size: 13.5px;
  color: var(--sj-body);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.sj-product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--sj-line);
}
.sj-product-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--sj-green-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sj-product-card__link svg { transition: transform .15s ease; }
.sj-product-card:hover .sj-product-card__link svg { transform: translateX(3px); }
.sj-product-card__badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sj-green);
  border: 1px solid var(--sj-green);
  border-radius: 20px;
  padding: 3px 9px;
}

/* -- Empty state -- */
.sj-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--sj-body);
}
.sj-empty h3 { color: var(--sj-ink); margin-bottom: 8px; }

/* -- Pager polish -- */
.sj-catalogue nav.pager { margin-top: 44px; }
.sj-catalogue .pager__items {
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.sj-catalogue .pager__item a,
.sj-catalogue .pager__item.is-active a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--sj-line);
  color: var(--sj-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}
.sj-catalogue .pager__item a:hover { border-color: var(--sj-green); color: var(--sj-green-dark); }
.sj-catalogue .pager__item.is-active a { background: var(--sj-green-dark); border-color: var(--sj-green-dark); color: var(--sj-white); }

/* --------------------------------------------------------------------------
   02 — Product detail page
   -------------------------------------------------------------------------- */
.sj-pd {
  padding: 56px 0 90px;
  background: var(--sj-white);
}
.sj-pd__top {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 52px;
  margin-bottom: 56px;
}
@media (max-width: 991px) {
  .sj-pd__top { grid-template-columns: 1fr; gap: 32px; }
}
.sj-pd__media {
  background: var(--sj-surface);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.sj-pd__media img { width: 100%; height: 100%; object-fit: contain; padding: 36px; }
.sj-pd__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sj-green-dark);
  background: rgba(0,179,15,.1);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  margin-bottom: 18px;
}
.sj-pd__cat:hover { background: rgba(0,179,15,.18); }
.sj-pd h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--sj-ink);
  margin: 0 0 14px;
  line-height: 1.25;
}
.sj-pd__sku {
  font-size: 13px;
  color: var(--sj-body);
  margin-bottom: 20px;
}
.sj-pd__sku code {
  background: var(--sj-surface);
  border: 1px solid var(--sj-line);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12.5px;
}
.sj-pd__lead {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--sj-ink);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sj-line);
}
.sj-pd__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.sj-btn-primary,
.sj-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pbmit-btn-typography-font-family);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 15px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s ease;
}
.sj-btn-primary {
  background: var(--sj-green);
  color: var(--sj-white);
  border: 1px solid var(--sj-green);
}
.sj-btn-primary:hover { background: var(--sj-green-dark); border-color: var(--sj-green-dark); color: var(--sj-white); }
.sj-btn-ghost {
  background: transparent;
  color: var(--sj-green-dark);
  border: 1px solid var(--sj-line);
}
.sj-btn-ghost:hover { border-color: var(--sj-green-dark); }
.sj-pd__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12.5px;
  color: var(--sj-body);
}
.sj-pd__trust span { display: inline-flex; align-items: center; gap: 7px; }
.sj-pd__trust svg { color: var(--sj-green); flex: none; }

.sj-pd__desc {
  max-width: 820px;
}
.sj-pd__desc h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--sj-ink);
  margin: 0 0 18px;
}
.sj-pd__desc .body-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--sj-body);
}
.sj-pd__desc .body-content p { margin: 0 0 16px; }
.sj-pd__desc .body-content strong { color: var(--sj-ink); }
.sj-pd__desc .body-content u { text-decoration: none; font-weight: 700; color: var(--sj-ink); display: block; margin-top: 18px; }

/* -- Related products -- */
.sj-pd__related { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--sj-line); }
.sj-pd__related h2 { font-size: 22px; font-weight: 700; color: var(--sj-ink); margin: 0 0 26px; }

/* --------------------------------------------------------------------------
   03 — About / Contact "page" layout
   -------------------------------------------------------------------------- */
.sj-page-body {
  padding: 64px 0 90px;
  background: var(--sj-white);
}
.sj-prose {
  max-width: 780px;
  margin: 0 auto 56px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--sj-body);
}
.sj-prose h2 {
  font-family: var(--pbmit-heading-typography-font-family);
  font-size: 26px;
  font-weight: 700;
  color: var(--sj-ink);
  margin: 0 0 20px;
  line-height: 1.3;
}
.sj-prose p { margin: 0 0 18px; }
.sj-prose ul { margin: 0 0 18px; padding-left: 20px; }

.sj-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 991px) { .sj-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sj-feature-grid { grid-template-columns: 1fr; } }
.sj-feature {
  background: var(--sj-surface);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sj-feature:hover { transform: translateY(-4px); box-shadow: var(--sj-shadow); }
.sj-feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sj-green);
  color: var(--sj-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.sj-feature h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--sj-ink);
  margin: 0 0 8px;
}
.sj-feature p { font-size: 14px; color: var(--sj-body); line-height: 1.65; margin: 0; }

/* -- Contact page -- */
.sj-contact {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: flex-start;
}
@media (max-width: 991px) { .sj-contact { grid-template-columns: 1fr; } }
.sj-contact__cards { display: flex; flex-direction: column; gap: 16px; }
.sj-contact__card {
  background: var(--sj-surface);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sj-contact__card .ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--sj-green-dark);
  color: var(--sj-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sj-contact__card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sj-body);
  margin: 0 0 6px;
}
.sj-contact__card a,
.sj-contact__card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--sj-ink);
  text-decoration: none;
  margin: 0;
  line-height: 1.5;
}
.sj-contact__card a:hover { color: var(--sj-green-dark); }
.sj-contact__form {
  background: var(--sj-white);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  padding: 36px;
}
.sj-contact__form h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--sj-ink);
  margin: 0 0 6px;
}
.sj-contact__form p.sub { color: var(--sj-body); font-size: 14px; margin: 0 0 26px; }
.sj-contact__form .form-item,
.sj-contact__form .js-form-item {
  margin-bottom: 20px;
}
.sj-contact__form label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--sj-ink);
  margin-bottom: 8px;
}
.sj-contact__form input[type="text"],
.sj-contact__form input[type="email"],
.sj-contact__form input[type="tel"],
.sj-contact__form textarea,
.sj-contact__form select {
  width: 100%;
  border: 1px solid var(--sj-line);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-family: var(--pbmit-body-typography-font-family);
  color: var(--sj-ink);
  background: var(--sj-white);
  transition: border-color .15s ease;
}
.sj-contact__form input:focus,
.sj-contact__form textarea:focus,
.sj-contact__form select:focus {
  outline: 0;
  border-color: var(--sj-green);
}
.sj-contact__form input[type="submit"],
.sj-contact__form button[type="submit"],
.sj-contact__form .webform-button--submit,
.sj-contact__form .btn-primary {
  background: var(--sj-green) !important;
  color: var(--sj-white) !important;
  border: 1px solid var(--sj-green) !important;
  padding: 15px 32px !important;
  border-radius: 8px !important;
  font-family: var(--pbmit-btn-typography-font-family);
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.sj-contact__form input[type="submit"]:hover,
.sj-contact__form button[type="submit"]:hover,
.sj-contact__form .webform-button--submit:hover,
.sj-contact__form .btn-primary:hover {
  background: var(--sj-green-dark) !important;
  border-color: var(--sj-green-dark) !important;
  color: var(--sj-white) !important;
}
.sj-contact__map {
  margin-top: 44px;
  border-radius: var(--sj-radius);
  overflow: hidden;
  border: 1px solid var(--sj-line);
}
.sj-contact__map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* --------------------------------------------------------------------------
   04 — FAQ accordion
   -------------------------------------------------------------------------- */
.sj-faq {
  max-width: 820px;
  margin: 0 auto;
}
.sj-faq__item {
  border: 1px solid var(--sj-line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--sj-white);
}
.sj-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--sj-white);
  border: 0;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--pbmit-heading-typography-font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--sj-ink);
}
.sj-faq__q .plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--sj-line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .2s ease;
}
.sj-faq__q .plus::before,
.sj-faq__q .plus::after {
  content: "";
  position: absolute;
  background: var(--sj-green-dark);
  transition: transform .2s ease;
}
.sj-faq__q .plus::before { width: 10px; height: 2px; }
.sj-faq__q .plus::after { width: 2px; height: 10px; }
.sj-faq__item.is-open .sj-faq__q .plus { background: var(--sj-green); border-color: var(--sj-green); }
.sj-faq__item.is-open .sj-faq__q .plus::before,
.sj-faq__item.is-open .sj-faq__q .plus::after { background: var(--sj-white); }
.sj-faq__item.is-open .sj-faq__q .plus::after { transform: rotate(90deg) scaleY(0); }
.sj-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.sj-faq__a-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--sj-body);
}
.sj-faq__a-inner a { color: var(--sj-green-dark); font-weight: 600; }

/* --------------------------------------------------------------------------
   05 — Misc polish
   -------------------------------------------------------------------------- */
.sj-cta-band {
  background: var(--sj-green-dark);
  border-radius: var(--sj-radius);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1080px;
  margin: 60px auto 0;
}
.sj-cta-band h3 { color: var(--sj-white); font-size: 20px; margin: 0 0 4px; }
.sj-cta-band p { color: rgba(255,255,255,.65); margin: 0; font-size: 14px; }

/* --------------------------------------------------------------------------
   06 — Brand Logo Sizing
   Enhanced prominence in header (50px) and footer (48px)
   -------------------------------------------------------------------------- */
.site-header .site-branding img,
.site-header .site-branding .logo-img,
.site-header .site-branding .pbmit-responsive-logo {
  max-height: 50px !important;
  height: 50px;
  width: auto;
  object-fit: contain;
}

.site-header-menu.sticky-header .site-branding img,
.site-header-menu.sticky-header .logo-img {
  max-height: 46px !important;
  height: 46px;
  width: auto;
}

.pbmit-footer-logo img {
  max-height: 48px !important;
  height: 48px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .site-header .site-branding img,
  .site-header .site-branding .logo-img,
  .site-header .site-branding .pbmit-responsive-logo {
    max-height: 42px !important;
    height: 42px;
  }
  .pbmit-footer-logo img {
    max-height: 42px !important;
    height: 42px;
  }
}

/* --------------------------------------------------------------------------
   06 — Blog listing (corporate blog style)
   -------------------------------------------------------------------------- */
.sj-blog { padding: 60px 0 90px; background: var(--sj-white); }

.sj-blog .pbmit-element-posts-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 991px) { .sj-blog .pbmit-element-posts-wrapper { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sj-blog .pbmit-element-posts-wrapper { grid-template-columns: 1fr; } }

.sj-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--sj-white);
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.sj-blog-card:hover { transform: translateY(-4px); box-shadow: var(--sj-shadow-hover); }

.sj-blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--sj-surface);
  overflow: hidden;
}
.sj-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sj-blog-card:hover .sj-blog-card__media img { transform: scale(1.06); }
.sj-blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sj-green);
  background:
    radial-gradient(circle at 25% 25%, rgba(0,179,15,.14) 0, transparent 45%),
    linear-gradient(135deg, #eef6ee, #f7f7f5);
}
.sj-blog-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--sj-green-dark);
  color: var(--sj-white);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 20px;
}
.sj-blog-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sj-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--sj-body);
  margin-bottom: 12px;
}
.sj-blog-card__title {
  font-family: var(--pbmit-heading-typography-font-family);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sj-blog-card__title a { color: var(--sj-ink); text-decoration: none; }
.sj-blog-card__title a:hover { color: var(--sj-green-dark); }
.sj-blog-card__excerpt {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--sj-body);
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sj-blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sj-green-dark);
  text-decoration: none;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--sj-line);
}
.sj-blog-card__link svg { transition: transform .15s ease; }
.sj-blog-card:hover .sj-blog-card__link svg { transform: translateX(3px); }

/* Featured treatment for the first post on page 1 */
.sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}
.sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child .sj-blog-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}
.sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child .sj-blog-card__body {
  padding: 34px 38px;
  justify-content: center;
}
.sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child .sj-blog-card__title {
  font-size: 26px;
  -webkit-line-clamp: 3;
}
.sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child .sj-blog-card__excerpt {
  font-size: 14.5px;
  -webkit-line-clamp: 4;
}
@media (max-width: 767px) {
  .sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child {
    grid-template-columns: 1fr;
  }
  .sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child .sj-blog-card__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child .sj-blog-card__body {
    padding: 22px;
  }
  .sj-blog .pbmit-element-posts-wrapper > .sj-blog-card:first-child .sj-blog-card__title {
    font-size: 20px;
  }
}

/* Pager (shared look with the products catalogue pager) */
.sj-blog nav.pager { margin-top: 50px; }
.sj-blog .pager__items {
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.sj-blog .pager__item a,
.sj-blog .pager__item.is-active a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--sj-line);
  color: var(--sj-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}
.sj-blog .pager__item a:hover { border-color: var(--sj-green); color: var(--sj-green-dark); }
.sj-blog .pager__item.is-active a { background: var(--sj-green-dark); border-color: var(--sj-green-dark); color: var(--sj-white); }

