body.page-id-278 section.bjl-section.bjl-hero, body.page-id-300 section.bjl-section.bjl-hero, body.page-id-327 section.bjl-section.bjl-hero {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: #060932;
}

body.page-id-278 .bjl-hero_content, body.page-id-300 .bjl-hero_content, body.page-id-327 .bjl-hero_content {
  display: none;
}

body.page-id-278 .bjl-hero_inner, body.page-id-300 .bjl-hero_inner, body.page-id-327 .bjl-hero_inner {
gap: 0;
}

body.page-id-278 .bjl-section-banner .bjl-banner-item.size-big-short, body.page-id-300 .bjl-section-banner .bjl-banner-item.size-big-short, body.page-id-327 .bjl-section-banner .bjl-banner-item.size-big-short {
 --bjl-banner-h: auto;
 background: transparent;
}

body.page-id-278 section.bjl-section.bjl-section-banner.variant-big_short h2, body.page-id-300 section.bjl-section.bjl-section-banner.variant-big_short h2, body.page-id-327 section.bjl-section.bjl-section-banner.variant-big_short h2 {
  text-align: center;
}

body.page-id-278 section.bjl-section.bjl-hero, body.page-id-300 section.bjl-section.bjl-hero, body.page-id-327 section.bjl-section.bjl-hero {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: #060932;
}

body.page-id-278 .bjl-hero_content, body.page-id-300 .bjl-hero_content, body.page-id-327 .bjl-hero_content {
  display: none;
}

body.page-id-278 .bjl-hero_inner, body.page-id-300 .bjl-hero_inner, body.page-id-327 .bjl-hero_inner {
gap: 0;
}

body.page-id-278 .bjl-section-banner .bjl-banner-item.size-big-short, body.page-id-300 .bjl-section-banner .bjl-banner-item.size-big-short, body.page-id-327 .bjl-section-banner .bjl-banner-item.size-big-short {
 --bjl-banner-h: auto;
 background: transparent;
}

body.page-id-278 section.bjl-section.bjl-section-banner.variant-big_short h2, body.page-id-300 section.bjl-section.bjl-section-banner.variant-big_short h2, body.page-id-327 section.bjl-section.bjl-section-banner.variant-big_short h2 {
  text-align: center;
}

body.page-id-278 .bjl-section, body.page-id-300 .bjl-section, body.page-id-327 .bjl-section {
  padding: 16px 0 0;
  box-shadow: none !important;
}

@media (max-width: 1024px) {
body.page-id-278 .bjl-section, body.page-id-300 .bjl-section, body.page-id-327 .bjl-section {
        padding: 12px 0 0 !important;
    }
}

body.page-id-278 .bjl-banner-item.i4.size-small-short, body.page-id-300 .bjl-banner-item.i4.size-small-short, body.page-id-327 .bjl-banner-item.i4.size-small-short {
  display: none !important;
}

body.page-id-278 .bjl-section-banner .bjl-banner-item.size-small-short, body.page-id-300 .bjl-section-banner .bjl-banner-item.size-small-short, body.page-id-327 .bjl-section-banner .bjl-banner-item.size-small-short {
  --bjl-banner-h: auto;
  background: transparent;
}

body.page-id-278 .bjl-section-banner .bjl-banner-grid, body.page-id-300 .bjl-section-banner .bjl-banner-grid, body.page-id-327 .bjl-section-banner .bjl-banner-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-id-278 section.bjl-section.bjl-section-banner.variant-four_small_short, body.page-id-300 section.bjl-section.bjl-section-banner.variant-four_small_short, body.page-id-327 section.bjl-section.bjl-section-banner.variant-four_small_short {
  padding: 16px 0;
}

body.page-id-278 section.bjl-section.bjl-section-banner.variant-four_small_short, body.page-id-300 section.bjl-section.bjl-section-banner.variant-four_small_short h2, body.page-id-327 section.bjl-section.bjl-section-banner.variant-four_small_short h2 {
    text-align: center;
}

@media (min-width: 1025px) {
body.page-id-278 .bjl-section-banner .bjl-banner-item.size-small-short, body.page-id-300 .bjl-section-banner .bjl-banner-item.size-small-short, body.page-id-327 .bjl-section-banner .bjl-banner-item.size-small-short {
    width: 75%;
    margin: auto;
}    
}

body.page-id-278 .bjl-footer, body.page-id-300 .bjl-footer, body.page-id-327 .bjl-footer {
  padding: 13.5px 0 !important;
}

body.page-id-3813 section.bjl-section.bjl-hero {
  margin-top: 0 !important;
}

body.page-id-3813 .bjl-section-banner .bjl-banner-item.size-small-short {
  --bjl-banner-h: auto;
  background: transparent;
  border-radius: 0px;
}

@media (min-width: 1025px) {
body.page-id-3813 .bjl-section-banner .bjl-banner-item.size-small-short {
    width: 75%;
    margin: auto;
}    
}

@media (min-width: 1025px) {
body.page-id-3813 .bjl-footer2_grid {
  grid-template-columns: 1fr 1fr 0fr !important;
}
}

body.page-id-3813 .bjl-section {
  padding: 16px 0 0;
  box-shadow: none !important;
}

body.page-id-3813 section.bjl-section.bjl-section-banner.variant-four_small_short {
  text-align: center;
}

@media (max-width: 1024px) {
  body.page-id-3813 .bjl-footer2_box {
      margin-bottom: 0px;
  }
}

body.page-id-3813 .bjl-footer2 {
  padding: 28px 0;
}
  
body.page-id-3813 section.bjl-section.bjl-section-banner.variant-four_small_short h2 {
  margin-bottom: 20px !important;
}

body.page-id-301 .bjl-section-banner .bjl-banner-item.size-big-short {
  --bjl-banner-h: auto !important;
}

body.page-id-301 div#section-9f700jkan h2 {
    text-align: center;
    margin-bottom: 35px !important;
    font-size: 20px !important;
}

@media (max-width: 480px) {
  body.page-id-301 .bjl-section-banner .bjl-banner-img {
    content: url(https://blog.mybajet.ir/wp-content/uploads/2025/11/step-kavir-mobile.jpg) !important;
  }
  body.page-id-301 div#section-9f700jkan h2 {
    font-size: 14px !important;
  }
}
@media (max-width: 1024px) {
  body.page-id-301 section.bjl-section.bjl-section-banner-brands .bjl-banner-brands-img {
      content: url(https://landing.mybajet.ir/wp-content/uploads/2025/11/mob-ninjaa.jpg) !important;
    }
}

body.page-id-4437 .bjl-landing {
  min-height: auto;
}

/* Basic, dependency-free styles for Bajet Landing */
.bjl-landing { direction: rtl; font-family: var(--bjl-font, 'Yekan Bakh', YekanBakh, 'Vazirmatn', Vazirmatn, sans-serif); color: #111827; background: #ffffff; min-height: 100vh; display: flex; flex-direction: column; }
.bjl-container { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.bjl-section { padding: 60px 0 0; min-height: auto; contain: layout; }
main.bjl-landing > .bjl-section-anchor:first-of-type > .bjl-section { margin-top: 44px; padding: 48px 0 0 !important; }
/* Mobile: First section as hero gets specific padding */
@media (max-width: 768px) {
  main.bjl-landing > .bjl-section-anchor:first-of-type:has(.bjl-hero) > .bjl-section { padding: 19px 0 0 !important; }
}
main.bjl-landing > .bjl-section-anchor:last-of-type:not(:has(.bjl-header2)):not(:has(.bjl-footer)):not(:has(.bjl-footer2)):not(:has(.bjl-sticky-download)) > .bjl-section { padding: 48px 0 48px !important; }
.bjl-section img { contain: layout; }
body.single { place-items: center; }
/* Hero */
.bjl-hero { position: relative; overflow:hidden; }
/* Inner grid: RIGHT content, LEFT image (desktop) */
.bjl-hero_inner { display: grid; grid-template-areas: "media content"; align-items: center; gap: 24px; min-height: inherit; }
.bjl-hero_content { position:relative; text-align:center; color:#0f172a; padding: 24px 0; max-width: 680px; grid-area: content; }
.bjl-hero_media { position: relative; justify-self: end; grid-area: media; }
.bjl-hero_media img { display:block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.10); }
.bjl-hero_title { font-size: clamp(28px, 5vw, 56px); font-weight: 600; line-height: 1.15 !important; margin-bottom: 12px; }
.bjl-hero_title .highlight { background: linear-gradient(90deg, #074953, #3b82f6); -webkit-background-clip:text; background-clip:text; color:transparent; }
.bjl-hero_subtitle { font-size: clamp(14px, 2.4vw, 20px); opacity: 0.95; margin-bottom: 24px; }

/* Mobile stack */
@media (max-width: 768px) {
  .bjl-hero > .bjl-container { padding-left: 0; padding-right: 0; }
  .bjl-hero_inner { grid-template-columns: 1fr; grid-template-areas: "media" "content"; gap: 12px; }
  .bjl-hero { padding: 0; }
  .bjl-hero_media { order: 1; justify-self: stretch; width: 100%; }
  .bjl-hero_media img { width: 100%; max-width: 100%; border-radius: 0; }
  .bjl-hero_content { order: 2; padding: 16px 0; }
  .bjl-hero_subtitle { margin-bottom: 0;}
}

@media (min-width: 769px) {
  .bjl-section-archive--template2 .bjl-card .bjl-card_img { flex: 0 0 280px !important; aspect-ratio: 16 / 9 !important; }
}

/* Buttons */
.bjl-btn { display: inline-flex ; align-items: center; gap: 10px; padding: 10px 25px; border-radius: 12px; background: linear-gradient(45deg, #2a6cb4, #164bc1); color: #fff; font-weight: 500; text-decoration: none; box-shadow: 0 3px 8px #a6cb1973; border: none; font-size: 15px; cursor: pointer; }
.bjl-btn:hover { filter: brightness(1.05); }

/* Calculator */
.bjl-calc { background:#fff; border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.bjl-calc .row { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.bjl-calc label { font-weight:600; margin-inline-end: 8px; }
.bjl-calc input[type=range] { width:100%; }
.bjl-calc .summary { display:flex; gap:16px; justify-content:space-between; margin-top:16px; font-weight:700; }
section.bjl-section.bjl-section-loan { max-width: 560px; margin-inline: auto; }
[data-preset="group10"] .loan-pills .loan-pill { max-width: none; }
[data-preset]:not([data-preset="group10"]) .loan-pills .loan-pill { max-width: 170.67px; }

/* Products */
.bjl-products_grid { display:grid; gap:16px; grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 640px) { .bjl-products_grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .bjl-products_grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Categories */
.bjl-carousel[data-carousel="categories"] .bjl-carousel-track { gap: 20px; direction: rtl; }
/* موبایل: 2.5 آیتم - محاسبه دقیق با توجه به gap */
.bjl-carousel[data-carousel="categories"] .bjl-category-item { 
  flex: 0 0 auto; 
  width: calc((100% - (1.5 * 20px)) / 2.5); 
  min-width: 100px;
  max-width: 200px;
}
/* تبلت: 5 آیتم - محاسبه دقیق با توجه به gap */
@media (min-width: 768px) { 
  .bjl-carousel[data-carousel="categories"] .bjl-category-item { 
    width: calc((100% - (4 * 20px)) / 5); 
    max-width: 180px;
  } 
}
/* دسکتاپ: 7 آیتم - محاسبه دقیق با توجه به gap */
@media (min-width: 1024px) { 
  .bjl-carousel[data-carousel="categories"] .bjl-category-item { 
    width: calc((100% - (6 * 20px)) / 7); 
    max-width: 160px;
  } 
}
.bjl-category-link { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; transition: transform 0.2s ease; user-select: none; -webkit-user-drag: none; }
.bjl-category-link:hover { transform: translateY(-4px); }
.bjl-category-image { width: 100%; aspect-ratio: 1/1; border-radius: 50%; background: #f3f4f6; background-size: cover; background-position: center; transition: border-color 0.2s ease; user-select: none; -webkit-user-drag: none; }
.bjl-category-link:hover .bjl-category-image { border-color: #7facdd; }
.bjl-category-name { text-align: center; font-size: 14px; font-weight: 500 !important; color: #1f2937; line-height: 1.4; user-select: none; }
/* Categories: Remove container padding on mobile/tablet */
@media (max-width: 1023px) { 
  .bjl-categories .bjl-container { padding-left: 0; padding-right: 0; }
  /* Add 16px padding for title, subtitle and view-all button */
  .bjl-categories .bjl-container > h2,
  .bjl-categories .bjl-container > p,
  .bjl-categories .bjl-container > div:has(h2),
  .bjl-categories .bjl-container > div:has(.bjl-viewall) { 
    padding-left: 16px !important; 
    padding-right: 16px !important; 
  }
}
/* Categories: Ensure proper container padding on desktop */
@media (min-width: 1024px) {
  .bjl-categories .bjl-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* Categories: Hide buttons on mobile */
@media (max-width: 767px) { .bjl-carousel[data-carousel="categories"] .bjl-carousel-btn { display: none !important; } }
/* Categories: Buttons position 0 from edges on mobile/tablet */
@media (max-width: 1023px) {
  .bjl-carousel[data-carousel="categories"] .bjl-carousel-prev { right: 0 !important; }
  .bjl-carousel[data-carousel="categories"] .bjl-carousel-next { left: 0 !important; }
}
/* Categories & Stores: View-all button aligned to left on desktop */
@media (min-width: 1024px) {
  .bjl-categories .bjl-viewall,
  .bjl-stores .bjl-viewall { left: 0 !important; }
}
@media (min-width: 1024px) {
  section.bjl-section.bjl-products-t2 a.bjl-card_btn.bjl-viewall {
    left: 0 !important;
  }
}
/* Products Template 1: Remove container padding on mobile/tablet */
@media (max-width: 1023px) { 
  .bjl-section:has(> .bjl-container > .bjl-carousel[data-carousel="products"]) .bjl-container { 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
  }
  /* Add 16px padding for title, subtitle and view-all button */
  .bjl-section:has(> .bjl-container > .bjl-carousel[data-carousel="products"]) .bjl-container > h2,
  .bjl-section:has(> .bjl-container > .bjl-carousel[data-carousel="products"]) .bjl-container > p,
  .bjl-section:has(> .bjl-container > .bjl-carousel[data-carousel="products"]) .bjl-container > div:has(h2),
  .bjl-section:has(> .bjl-container > .bjl-carousel[data-carousel="products"]) .bjl-container > div:has(.bjl-viewall) { 
    padding-left: 16px !important; 
    padding-right: 16px !important; 
  }
}
/* Products: Ensure proper container padding on desktop */
@media (min-width: 1024px) {
  .bjl-section:has(> .bjl-container > .bjl-carousel[data-carousel="products"]) .bjl-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* Products: Hide buttons on mobile */
@media (max-width: 767px) { 
  .bjl-carousel[data-carousel="products"]:not(.bjl-products-t2 .bjl-carousel) .bjl-carousel-btn { 
    display: none !important; 
  }
}
/* Products: Buttons position 0 from edges on mobile/tablet */
@media (max-width: 1023px) {
  .bjl-carousel[data-carousel="products"] .bjl-carousel-prev { right: 0 !important; }
  .bjl-carousel[data-carousel="products"] .bjl-carousel-next { left: 0 !important; }
}
/* Categories: Position buttons at center of category image */
@media (min-width: 768px) { 
  .bjl-carousel[data-carousel="categories"] .bjl-carousel-btn { 
    top: calc(50% - 30px); /* Adjust based on category-name height */
  } 
}
@media (min-width: 768px) { 
.bjl-carousel[data-carousel="products"] .bjl-carousel-btn {
    top: 50%;
  }
}
/* Categories: Force native horizontal scroll and disable JS transform */
.bjl-carousel[data-carousel="categories"] .bjl-carousel-track {
  transform: none !important;
  transition: none !important;
}
.bjl-carousel[data-carousel="categories"] .bjl-category-item {
  flex: 0 0 auto;
}

.bjl-carousel[data-carousel="products"] .bjl-card { width: 220px !important; }
@media (min-width: 640px) { .bjl-section-popular-posts .bjl-card { width: 320px !important; min-width: 320px !important; max-width: 320px !important; } }
@media (max-width: 639px) { .bjl-section-popular-posts .bjl-card { width: 290px !important; min-width: 290px !important; max-width: 290px !important; } }
.bjl-search-grid .bjl-card { min-width: auto !important; max-width: unset !important; width: auto !important; }
.bjl-section-archive .bjl-card { width: auto !important; min-width: auto !important; max-width: unset !important; }

  /* Products: Force native horizontal scroll and disable JS transform on mobile/tablet */
  @media (max-width: 1023px) {
    .bjl-carousel[data-carousel="products"] .bjl-carousel-viewport { 
      overflow-x: auto !important; 
      -webkit-overflow-scrolling: touch !important; 
      touch-action: pan-y pan-x !important; /* let browser choose axis; vertical scroll should bubble */
      overscroll-behavior-inline: contain; 
      /* allow vertical scrolling of the page while over the carousel */
      overscroll-behavior-y: auto; 
      cursor: auto !important; 
      -webkit-tap-highlight-color: transparent; 
      overflow-y: visible !important; /* ensure vertical scroll isn't trapped */
    }
    .bjl-carousel[data-carousel="products"] .bjl-carousel-track {
      transform: none !important;
      transition: none !important;
      padding-inline-start: 16px !important;
      padding-inline-end: 0 !important;
    }
    .bjl-carousel[data-carousel="products"] .bjl-carousel-track::after {
      content: "" !important;
      flex: 0 0 1px !important;
    }
    .bjl-carousel[data-carousel="products"] .bjl-card {
      flex: 0 0 auto;
      user-select: none !important;
      -webkit-user-drag: none !important;
      -webkit-touch-callout: none !important;
    }
    .bjl-carousel[data-carousel="products"] .bjl-card img,
    .bjl-carousel[data-carousel="products"] .bjl-card a,
    .bjl-carousel[data-carousel="products"] .bjl-card button {
      user-select: none !important;
      -webkit-user-drag: none !important;
      -webkit-touch-callout: none !important;
    }
  }

/* Stores */
.bjl-carousel[data-carousel="stores"] .bjl-carousel-track { gap: 20px !important; direction: rtl !important; }
/* موبایل: 1.5 آیتم - محاسبه دقیق با توجه به gap */
.bjl-carousel[data-carousel="stores"] .bjl-store-item { 
  flex: 0 0 auto !important; 
  width: calc((100% - (0.5 * 20px)) / 1.5) !important; 
  min-width: 200px !important;
  max-width: 320px !important;
}
/* تبلت: 2 آیتم - محاسبه دقیق با توجه به gap */
@media (min-width: 768px) { 
  .bjl-carousel[data-carousel="stores"] .bjl-store-item { 
    width: calc((100% - (1 * 20px)) / 2) !important; 
    max-width: 360px !important;
  } 
}
/* دسکتاپ: 4 آیتم - محاسبه دقیق با توجه به gap */
@media (min-width: 1024px) { 
  .bjl-carousel[data-carousel="stores"] .bjl-store-item { 
    width: calc((100% - (3 * 20px)) / 4) !important; 
    max-width: 300px !important;
  } 
}
.bjl-store-card { 
  display: flex !important; 
  flex-direction: column !important; 
  text-decoration: none !important; 
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid #e5e7eb !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}
.bjl-store-image { 
  width: 100% !important; 
  aspect-ratio: 16/9 !important; 
  background-size: cover !important; 
  background-position: center !important; 
  position: relative !important; 
  overflow: hidden !important; 
}
.bjl-store-logo { 
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 12px !important;
  padding: 8px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
  max-width: 65px !important;
  min-width: 35px !important;
  height: 35px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.bjl-store-logo img { 
  width: auto !important;
  height: 20px !important;
  max-width: 55px !important;
  object-fit: contain !important;
}

/* Purchase Method Badge in Store Cards */
.bjl-store-card .bjl-purchase-method-badge {
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
  height: 30px !important;
  box-sizing: border-box !important;
  margin-top: 4px !important;
  width: fit-content !important;
}

/* آنلاین+حضوری */
.bjl-store-card .bjl-purchase-method-badge.bjl-purchase-online_offline {
  background: rgb(232 231 246) !important;
  color: #2216A9 !important;
  position: unset !important;
  width: fit-content !important;
  border-radius: 50px !important;
}

/* آنلاین */
.bjl-store-card .bjl-purchase-method-badge.bjl-purchase-online {
  background: rgb(233 240 232) !important;
  color: #276D20 !important;
  position: unset !important;
  width: fit-content !important;
  border-radius: 50px !important;
}

/* حضوری */
.bjl-store-card .bjl-purchase-method-badge.bjl-purchase-offline {
  background: rgb(250 246 232) !important;
  color: #bf9513 !important;
  position: unset !important;
  width: fit-content !important;
  border-radius: 50px !important;
}

/* کانتینر badgeها */
.bjl-credit-type-badges {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px !important;
    z-index: 5 !important;
    max-width: 160px !important;
}

/* هر badge فقط به اندازه محتواش عرض داشته باشه */
.bjl-credit-type-badge {
    padding: 4px 8px !important;
    border-radius: 14px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    backdrop-filter: blur(4px) !important;
    width: fit-content !important;
    min-width: unset !important;
    flex-shrink: 0 !important;
    height: 35px;
    box-sizing: border-box;
    direction: rtl !important;
}

.bjl-store-content { 
  padding: 16px !important; 
  display: flex !important; 
  flex-direction: row !important; 
  gap: 12px !important;
  flex: 1 !important;
  align-items: center !important;
  border-top: 1px solid #e5e7eb;
}
.bjl-store-text-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
  min-width: 0 !important;
}
.bjl-store-title { 
  font-size: 16px !important; 
  font-weight: 700 !important; 
  color: #111827 !important; 
  line-height: 1.4 !important; 
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.bjl-store-subtitle { 
  font-size: 14px !important; 
  font-weight: 400 !important; 
  color: #6b7280 !important; 
  line-height: 1.5 !important; 
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.bjl-store-arrow { 
  width: 40px !important; 
  height: 40px !important; 
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  background: #ebeded !important; 
  border-radius: 50px !important;
  flex-shrink: 0 !important;
}
.bjl-store-arrow img { 
  width: 10px !important; 
  height: 10px !important; 
  transform: rotateZ(225deg) !important;
  transition: transform 0.2s ease !important;
}
/* Stores: Remove container padding on mobile/tablet */
@media (max-width: 1023px) { 
  .bjl-stores .bjl-container { padding-left: 0 !important; padding-right: 0 !important; }
  /* Add 16px padding for title, subtitle and view-all button */
  .bjl-stores .bjl-container > h2,
  .bjl-stores .bjl-container > p,
  .bjl-stores .bjl-container > div:has(h2),
  .bjl-stores .bjl-container > div:has(.bjl-viewall) { 
    padding-left: 16px !important; 
    padding-right: 16px !important; 
  }
}
/* Stores: Ensure proper container padding on desktop */
@media (min-width: 1024px) {
  .bjl-stores .bjl-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* Stores: Hide buttons on mobile */
/* Stores: Buttons position 0 from edges on mobile/tablet */
@media (max-width: 1023px) {
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-prev { right: 0 !important; }
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-next { left: 0 !important; }
}
/* Stores: Position buttons at center of card */
@media (min-width: 768px) { 
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-btn { 
    top: 45% !important;
  }
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-prev {
    transform: translateY(-50%) rotate(180deg) !important;
  }
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-next {
    transform: translateY(-50%) rotate(180deg) !important;
  }
}
/* Stores: Enable drag with scroll (same as categories) */
.bjl-carousel[data-carousel="stores"] .bjl-carousel-viewport {
  cursor: grab !important;
}
.bjl-carousel[data-carousel="stores"] .bjl-carousel-viewport.is-dragging {
  cursor: grabbing !important;
  user-select: none !important;
}
.bjl-carousel[data-carousel="stores"] .bjl-carousel-viewport.is-dragging * {
  pointer-events: none !important;
  user-select: none !important;
}
/* Stores: Add padding for mobile/tablet */
@media (max-width: 1023px) {
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-track {
    padding-inline-start: 16px !important;
    padding-inline-end: 0 !important;
  }
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-track::after {
    content: "" !important;
    flex: 0 0 1px !important;
  }
}
.bjl-carousel[data-carousel="stores"] .bjl-carousel-viewport::-webkit-scrollbar { 
  display: none !important;
}
.bjl-carousel[data-carousel="stores"] .bjl-store-item {
  flex: 0 0 auto !important;
}

/* Carousel base */
.bjl-carousel { position: relative; min-height: auto; contain: layout; }
.bjl-carousel-viewport { overflow: hidden; touch-action: pan-y; -ms-touch-action: pan-y; min-height: auto; }
.bjl-carousel-track { display: flex; gap: 16px; will-change: transform; transition: transform .2s ease !important; direction: ltr; min-height: auto; }
.bjl-carousel-viewport { cursor: grab; }

/* Global mobile carousel track padding to prevent layout shift */
@media (max-width: 1023px) {
  .bjl-carousel-track {
    padding-inline-start: 16px !important;
    padding-inline-end: 0 !important;
  }
}
/* Categories: Enable horizontal touch scrolling */
.bjl-carousel[data-carousel="categories"] .bjl-carousel-viewport { 
  touch-action: pan-y pan-x !important; 
  -ms-touch-action: pan-y pan-x !important; 
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  cursor: default;
}
/* Categories: Add padding for mobile/tablet - first item 16px from right, last item 16px from left */
@media (max-width: 1023px) {
  .bjl-carousel[data-carousel="categories"] .bjl-carousel-track {
    padding-inline-start: 16px !important;
    padding-inline-end: 0 !important;
  }
  /* Spacer after the last item to guarantee 16px gap at the end */
  .bjl-carousel[data-carousel="categories"] .bjl-carousel-track::after {
    content: "" !important;
    flex: 0 0 1px !important;
  }
}
.bjl-carousel[data-carousel="categories"] .bjl-carousel-viewport::-webkit-scrollbar { 
  display: none; /* Chrome/Safari */
}
/* Stores: Enable horizontal touch scrolling */
.bjl-carousel[data-carousel="stores"] .bjl-carousel-viewport { 
  touch-action: pan-y pan-x !important; 
  -ms-touch-action: pan-y pan-x !important; 
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  cursor: default;
}
/* Stores: Remove transform-based animation for scroll-based approach */
.bjl-carousel[data-carousel="stores"] .bjl-carousel-track {
  will-change: auto !important;
  transition: none !important;
  transform: none !important;
}
/* Stores: Add padding for mobile/tablet - first item 16px from right, last item 16px from left */
@media (max-width: 1023px) {
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-track {
    padding-inline-start: 16px !important;
    padding-inline-end: 0 !important;
  }
  /* Spacer after the last item to guarantee 16px gap at the end */
  .bjl-carousel[data-carousel="stores"] .bjl-carousel-track::after {
    content: "" !important;
    flex: 0 0 1px !important;
  }
}
.bjl-carousel[data-carousel="stores"] .bjl-carousel-viewport::-webkit-scrollbar { 
  display: none; /* Chrome/Safari */
}
/* Products: Enable horizontal touch scrolling (same as stores and categories) */
.bjl-carousel[data-carousel="products"] .bjl-carousel-viewport { 
  touch-action: pan-y pan-x !important; 
  -ms-touch-action: pan-y pan-x !important; 
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  cursor: default;
}
/* Products: Remove transform-based animation for scroll-based approach */
.bjl-carousel[data-carousel="products"] .bjl-carousel-track {
  will-change: auto !important;
  transition: none !important;
  transform: none !important;
  direction: ltr !important;
  flex-direction: row-reverse !important;
}
/* Products: Add padding for mobile/tablet - first item 16px from right, last item 16px from left */
@media (max-width: 1023px) {
  .bjl-carousel[data-carousel="products"] .bjl-carousel-track {
    padding-right: 16px !important; /* gap before first visible item (right) */
    padding-left: 0 !important;
  }
  /* Spacer after the last item to guarantee 16px gap at the end (left) */
  .bjl-carousel[data-carousel="products"] .bjl-carousel-track::after {
    content: "" !important;
    flex: 0 0 1px !important;
  }
}
.bjl-carousel[data-carousel="products"] .bjl-carousel-viewport::-webkit-scrollbar { 
  display: none; /* Chrome/Safari */
}
.bjl-section[id*="mosqvf0dw"] .bjl-carousel-track,
.bjl-section.section-mosqvf0dw .bjl-carousel-track { direction: rtl; }
.bjl-carousel-viewport.is-dragging { cursor: grabbing; user-select: none; }
.bjl-carousel .bjl-card { flex: 0 0 auto; width: auto; }
.bjl-carousel-btn { position: absolute; top: 45.7%; transform: translateY(-50%); width: 40px; height: 40px; border: none; border-radius: 999px; background: rgba(255,255,255,0.9); box-shadow: 0 6px 18px rgba(0,0,0,0.12); font-size: 0; line-height: 0 !important; color: transparent; cursor: pointer; display:flex; align-items:center; justify-content:center; z-index: 2; background-repeat: no-repeat; background-position: center; background-size: 18px 18px; }
.bjl-carousel-prev { right: -4px; background-image: url('../icons/arrow-prev.svg'); transform: rotate(180deg); }
.bjl-carousel-next { left: -4px; background-image: url('../icons/arrow-next.svg'); transform: rotate(180deg); }
.bjl-carousel-btn:hover { filter: brightness(1.05); }
.bjl-carousel-btn:disabled { opacity: .4; cursor: default; }
/* When all cards fit and no sliding is needed */
.bjl-carousel.is-static .bjl-carousel-btn { display: none; }
.bjl-card { background:#fff; border-radius:16px; overflow:hidden; border: 1px solid #e9e9e9; contain: layout; max-height: 400px; }
.bjl-card_img { aspect-ratio: 1/1; background-size:cover; background-position:center; width: 170px; height: 170px; margin: 5px auto; contain: layout; }
.bjl-card_body { direction: rtl; padding: 12px 16px; border-top: 1px solid #e9e9e9; }
.bjl-badge { display:inline-flex; align-items:center; gap:6px; background:#f3f4f6; color:#111827; padding: 2px 10px; border-radius: 999px; font-size:12px; height: max-content; }

/* Product card typography */
/* Name */
.bjl-card_body > div:first-child > div:first-child { font-size: 14px; font-weight: 600 !important; line-height: 1.5; height: 42px; min-height: 42px; max-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; max-width: 204px; }
/* Features list */
.bjl-card_body > ul { font-size: 13px; }
.bjl-card_body > ul li { font-size: 13px; }
.bjl-badge img { height: 14px; width: auto; max-width: 70px; display: inline-block; vertical-align: middle; }
.bjl-card_actions { margin-top: 10px; display:flex; }
.bjl-card_btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #f9fafb; color: #171c26; font-weight: 500; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; margin: auto; border: 1px solid #edeff3; font-size: 0.875rem; width: 100%; cursor: pointer; }
.bjl-card_btn:hover { filter: brightness(1.05); border: 1px solid #7facdd; transform: translateY(-1px); }
.bjl-card_btn:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(11,34,64,0.20); }

/* Steps */
.bjl-steps { display:grid; gap:14px; grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 768px) { .bjl-steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.bjl-step { background:#fff; border-radius: 14px; padding:16px; box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.bjl-step_id { font-weight: 800; color:#06b6d4; }

/* Steps - Timeline */
.bjl-section-steps .steps-heading { text-align:center; margin:0 0 12px; font-weight: 900; font-size: clamp(22px, 4.5vw, 32px); color:#0f172a; }
.bjl-section-steps .steps-subheading { text-align:center; margin: 0 0 18px; color:#6b7280; font-weight:500; }

/* Desktop: horizontal alternating timeline */
.steps-desktop { position: relative; padding: 42px 0; isolation: isolate; }
.steps-desktop .steps-line { position:absolute; left: 0; right: 0; top: 50%; height: 4px; background: linear-gradient(90deg, #fde68a, #f59e0b); border-radius: 999px; z-index: 0; box-shadow: 0 2px 10px rgba(245,158,11,0.25); }
.steps-desktop .steps-items { position: relative; display: grid; gap: 24px; grid-template-columns: repeat(var(--steps, 6), minmax(0,1fr)); align-items: start; justify-items: center; z-index: 1; direction: rtl; max-width: 1100px; margin-inline: auto; }
.steps-desktop .step-item { position: relative; min-width: 0; display: grid; justify-items: center; padding-top: 0; }

/* Connector from badge to card */
.steps-desktop .step-item::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 2px; background: linear-gradient(180deg, #fde68a, #f59e0b); z-index: 0; }
.steps-desktop .step-item.is-top::before { bottom: 50%; height: 50px; }
.steps-desktop .step-item.is-bottom::before { top: 50%; height: 50px; }

.steps-desktop .step-badge { position: absolute; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #fbbf24); border: 3px solid #fff; box-shadow: 0 8px 24px rgba(245,158,11,0.30), 0 2px 8px rgba(253,224,71,0.35); z-index: 2; display:flex; align-items:center; justify-content:center; }
.steps-desktop .step-badge > span { display:flex; align-items:center; justify-content:center; width: 100%; height: 100%; border-radius: 999px; background: transparent; color:#fff; font-weight: 900; }

.steps-desktop .step-card { position: relative; background:#fff; border-radius: 16px; padding: 8px; box-shadow: 0 6px 16px rgba(0,0,0,0.06); width: auto; max-width: 220px; margin-inline: auto; z-index: 1; }
.steps-desktop .is-top .step-card { margin-bottom: 135px; }
.steps-desktop .is-bottom .step-card { margin-top: 135px; }
.steps-desktop .step-title { font-weight: 600; color:#0f172a; margin:0; font-size: 13px; text-align:center; }
.steps-desktop .step-desc { display:none; }

/* Mobile: vertical timeline (RTL-aligned) */
.steps-mobile { display: grid; gap: 18px; margin-top: 6px; position: relative; }
/* Continuous orange vertical rail behind badges */
.steps-mobile .v-step-item {
  position: relative;
  display: block;
  padding-right: 64px; /* reserve space for badge column (rail center at 32px) */
  margin: 0; /* collapse any accidental gaps */
}
.steps-mobile .v-step-card { /* sits to the left of badge column */ display: block; }
.steps-mobile .v-step-badge {
  position: absolute;
  right: 4px; /* 4px + 28px (badge radius) = 32px rail center */
  top: 50%;
  transform: translateY(-50%);
}
/* Orange badge with white ring and glow */
.steps-mobile .v-step-badge { position: absolute; width: 41px; height: 41px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #fbbf24); border: 3px solid #fff; box-shadow: 0 8px 22px rgba(245,158,11,0.28), 0 2px 8px rgba(253,224,71,0.28); display:flex; align-items:center; justify-content:center; margin: 0; }
.steps-mobile .v-step-badge > span { display:flex; align-items:center; justify-content:center; width:100%; height:100%; border-radius:999px; background: transparent; color:#fff; font-weight:600; }
/* Remove per-item connectors (we use the continuous rail) */
.steps-mobile .v-step-item:not(:last-child) .v-step-badge::after { content: none; }
/* Card styling (pill box) */
.steps-mobile .v-step-card { background:#fff; border-radius: 16px; padding: 14px 12px; box-shadow: 0 8px 22px rgba(0,0,0,0.06); text-align: right; writing-mode: horizontal-tb; white-space: normal; word-break: normal; overflow-wrap: anywhere; min-width: 0; }
.steps-mobile .v-step-card .step-title { font-weight: 600; color:#0f172a; margin:0; font-size: 12px; text-align: right; writing-mode: horizontal-tb; }
.steps-mobile .v-step-card .step-desc { color:#374151; opacity:.95; line-height: 1.8 !important; font-size: 13px; text-align: right; writing-mode: horizontal-tb; }

/* Visibility control */
@media (max-width: 768px) { .steps-desktop { display:none; } }
@media (min-width: 769px) { .steps-mobile { display:none; } }

/* FAQ - Modern Accordion */
.bjl-faq_wrap { max-width: 800px; margin: 0 auto; }
.bjl-faq_list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.bjl-faq .bjl-acc { background:#fff; border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,0.05); overflow: hidden; }
.bjl-faq .bjl-acc_sum { list-style: none; display:flex; align-items:center; gap:12px; padding: 14px 16px; cursor: pointer; font-weight: 800; position: relative; appearance: none; background: transparent; border: none; width: 100%; text-align: inherit; }
.bjl-faq .bjl-acc_sum::-webkit-details-marker { display:none; }
.bjl-faq .bjl-acc_icon { width: 24px; height: 24px; flex: 0 0 auto; background-repeat: no-repeat; background-position: center; background-size: 20px 20px; filter: none; cursor: pointer; }
.bjl-faq .bjl-acc:focus-visible { outline: none; }
/* Custom icons: closed -> next, open -> prev */
.bjl-faq .bjl-acc .bjl-acc_icon { background-image: url('../icons/arrow-next.svg'); transform: rotate(90deg); }
.bjl-faq .bjl-acc.is-open .bjl-acc_icon { background-image: url('../icons/arrow-prev.svg'); }
.bjl-faq .bjl-acc_q { flex: 1; font-size: 15px; user-select: none; font-weight: 600; }
.bjl-faq .bjl-acc_panel { padding: 0 16px 0; overflow: hidden; transition: max-height .26s cubic-bezier(.22,.61,.36,1); max-height: 0; }
.bjl-faq .bjl-acc.is-open .bjl-acc_panel { padding-bottom: 14px; }
.bjl-faq .bjl-acc_a { color:#374151; opacity: .95; line-height: 1.8 !important; font-size: 14px; margin: 0; }

/* Hidden items and Show more */
.bjl-faq .bjl-acc.is-hidden { display: none; }
.bjl-faq_more_wrap { text-align: center; margin-top: 10px; }
.bjl-faq_more { display:inline-flex; align-items:center; padding: 10px; border-radius: 12px; border: 1px solid #e5e7eb; background:#fff; cursor:pointer; font-weight:800; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.bjl-faq_more::after { content: ""; display:inline-block; width: 18px; height: 18px; margin-inline-start: 8px; background-image: url('../icons/arrow-next.svg'), url('../icons/arrow-next.svg'); background-repeat: no-repeat, no-repeat; background-size: 12px 12px, 12px 12px; background-position: calc(50% - 1.5px) 50%, calc(50% + 1.5px) 50%; transform: rotate(90deg); }
.bjl-faq_more:hover { border-color:#c7d2fe; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

/* FAQ section heading spacing override */
.bjl-faq .bjl-container > h2 { margin-bottom: 12px !important; }
/* FAQ section subtitle spacing override */
.bjl-faq .bjl-container > h2 + p { margin-top: 0 !important; }

/* --- Overrides: Ensure fixed header truly shows at the very top --- */
/* Always allow visible state to show the bar regardless of earlier display rules */
.bjl-sticky-header.is-visible { display: block !important; top: 0 !important; }
/* Make sure it floats above other sections */
.bjl-sticky-header { z-index: 2000; }
/* Respect the WP admin bar when logged-in (desktop) */
@media (min-width: 783px) {
  body.admin-bar .bjl-sticky-header.is-visible { top: 32px !important; }
}
@media (max-width: 782px) {
  body.admin-bar .bjl-sticky-header.is-visible { top: 46px !important; }
}
.bjl-faq .bjl-acc_sum:focus-visible { outline: none; }

/* ================= Header Template 2 behavior & visibility ================ */
/* Base: allow the header to be shown/hidden by JS based on data-from/until */
.bjl-header2 { display: block; position: relative; z-index: 1900; }
/* Behavior: fixed vs sticky (PHP sets .is-fixed or .is-sticky) */
.bjl-header2.is-fixed { position: fixed; top: 0; left: 0; right: 0; }
.bjl-header2.is-sticky { position: sticky; top: 0; }
/* Respect WP admin bar offsets when fixed or sticky is at top */
@media (min-width: 783px) {
  body.admin-bar .bjl-header2.is-fixed { top: 32px; }
  body.admin-bar .bjl-header2.is-sticky { top: 32px; }
}
@media (max-width: 782px) {
  body.admin-bar .bjl-header2.is-fixed { top: 46px; }
  body.admin-bar .bjl-header2.is-sticky { top: 46px; }
}
/* Desktop/Mobile visibility toggles (classes added by PHP) */
@media (min-width: 769px) {
  .bjl-header2.hide-desktop { display: none !important; }
}
@media (max-width: 768px) {
  .bjl-header2.hide-mobile { display: none !important; }
}

/* Ensure sticky headers don't interfere with page scroll */
.bjl-sticky-header {
  pointer-events: auto;
}

.bjl-sticky-header:not(.is-visible) {
  pointer-events: none;
}
/* Keep it above content but below global modals */
.bjl-header2 { z-index: 2000; }

/* Header2 search suggestions: hidden by default */
.bjl-header2 .bjl-h2-suggest { display: none !important; }
/* Keep suggestions visible whenever search is active (not only on input focus) */
.bjl-header2 .bjl-h2-search.is-active .bjl-h2-suggest { display: block !important; }

/* Brands */
.bjl-brands { display: flex ; gap: 12px; flex-wrap: nowrap; width: 100%; position: relative; overflow: auto; justify-content: center; }
.bjl-brand { background:#fff; border-radius: 999px; padding: 8px 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.05); font-weight:700; margin-bottom: 5px; }
.bjl-brand img { display: inline-block; vertical-align: middle; max-width: fit-content; height: 30px; width: auto; }
.bjl-brands::-webkit-scrollbar { background: #eeeeee; border-radius: 50px; height: 5px; }
.bjl-brands::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #06b6d4, #8b5cf6); border-radius: 50px; }
.bjl-brand button.bjl-brand_btn { border: none; background: transparent; cursor: pointer; }
/* Subtitle (زیرعنوان) spacing override for Brands section */
.bjl-container:has(> .bjl-brands) > h2 + p, /* legacy direct child */
.bjl-container:has(> .bjl-main-brands) > h2 + p { margin-top: 0; }
@media (max-width: 768px) {
  .bjl-brands { justify-content: right;}
}

/* Center wrapper for brands section while keeping inner content right-aligned */
.bjl-main-brands { display: flex ; justify-self: center; width: auto; padding: 0 16px; max-width: 1200px; }
.bjl-main-brands > .bjl-brands { justify-content: flex-start; width: 100%; }
@media (max-width: 1024px) { .bjl-main-brands { max-width: -webkit-fill-available !important; } }
/* Heading area */
.calc-header { text-align:center; margin-bottom: 16px; }
.calc-heading { margin: 12px 0; font-size: 36px; font-weight: 900; color:#0f172a; }
.calc-subheading { margin: 0; color:#6b7280; font-weight:500; }
h1, h2, h3, h4, h5, h6 { margin-top: 0 !important; color: #1a3b6b !important; font-size: 30px !important; font-weight: 600 !important; }
/* Subtitle (زیرعنوان) spacing override for Products section */
.bjl-container:has(> .bjl-carousel[data-carousel="products"]) > h2 + p { margin-top: 0; }
a { font-weight: 600; text-decoration: none; }

@media (max-width: 768px) {
h1, h2, h3, h4, h5, h6 { font-size: 20px !important; }
}

/* Compensate for WP admin bar pushing header down */
@media (min-width: 783px) {
  body.admin-bar.bjl-has-sticky-offset .bjl-landing { padding-top: 96px; } /* 64 header + 32 admin bar */
}
@media (max-width: 782px) {
  body.admin-bar.bjl-has-sticky-offset .bjl-landing { padding-top: 110px; } /* 64 header + 46 admin bar */
}

/* Responsive visibility and minimal sticky button for mobile */
@media (max-width: 768px) {
  /* Hide hero's internal CTA on mobile; it will appear as sticky */
  .bjl-hero_content .bjl-btn { display: none; }

  /* Minimal sticky button fixed at the bottom with safe margins */
  .bjl-sticky-download { display:block; position: fixed; left: 12px; right: 12px; bottom: 12px; padding: 0; background: transparent; z-index: 999; text-align: center; }
  .bjl-sticky-download .bjl-btn, .bjl-sticky-download button { border: none; border-radius: 14px; padding: 10px 15px; font-size: 14px; font-weight: 500; }
}

/* Ensure sticky bar is hidden on larger screens */
@media (min-width: 769px) {
  .bjl-sticky-download { display: none !important; }
}

/* Desktop sticky header (appears after passing hero content) */
.bjl-sticky-header { position: fixed; top: -80px; left: 0; right: 0; height: 64px; background: rgba(255,255,255,0.8); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid rgba(0,0,0,0.06); z-index: 900; transition: top .25s ease, box-shadow .25s ease; display:none; }
.bjl-sticky-header .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 100%; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.bjl-sticky-header .title { font-weight: 500; font-size: 18px; color:#0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bjl-sticky-header.is-visible { top: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
@media (max-width: 768px) {.bjl-sticky-header .inner { padding: 0 16px !important; } .bjl-sticky-header .cta { font-size: 13px !important;} .bjl-sticky-header .title { font-size: 13px !important;} }

/* Hide sticky header on mobile, enable on desktop */
@media (max-width: 768px) { .bjl-sticky-header { display:none !important; } .bjl-popup-root .bjl-popup-title { justify-self: center;} }
/* Description (توضیحات) with show more */
.bjl-desc_text { color:#374151; opacity:.95; line-height: 2 !important; transition: max-height .35s ease; text-align: justify; font-size: 14px !important; }
.bjl-desc:not(.is-expanded) .bjl-desc_text { max-height: var(--bjl-desc-max, 0px); overflow: hidden; }
.bjl-desc_more_wrap { display: none; margin-top: 8px; }
.bjl-desc.is-collapsible .bjl-desc_more_wrap { display: block; }
.bjl-desc_more { display:inline-flex; align-items:center; padding: 10px; border-radius: 12px; border: 1px solid #e5e7eb; background:#fff; cursor:pointer; font-weight:800; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.bjl-desc_more::after { content: ""; display:inline-block; width: 18px; height: 18px; margin-inline-start: 8px; background-image: url('../icons/arrow-next.svg'), url('../icons/arrow-next.svg'); background-repeat: no-repeat, no-repeat; background-size: 12px 12px, 12px 12px; background-position: calc(50% - 1.5px) 50%, calc(50% + 1.5px) 50%; transform: rotate(90deg); }
.bjl-desc_more:hover { border-color:#c7d2fe; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.bjl-desc.is-expanded .bjl-desc_more::after { transform: rotate(-90deg); }
dl, ol, ul { margin-top: 0; margin-block: 1rem; }
ol, ul { padding-right: 1rem; }

/* Popup: desktop modal + mobile bottom sheet */
.bjl-popup-root { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: none; }
.bjl-popup-root .bjl-popup-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,0.55); backdrop-filter: blur(2px) saturate(1.1); -webkit-backdrop-filter: blur(2px) saturate(1.1); opacity: 0; transition: opacity .2s ease; }
.bjl-popup-root .bjl-popup { position: absolute; background:#fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.20); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .22s ease, transform .22s ease; max-height: calc(100% - 24px); overflow: hidden; direction: rtl; }
.bjl-popup-root .bjl-popup-content { padding: 12px; }
/* Header with title aligned opposite to close button */
.bjl-popup-root .bjl-popup-header { align-items:center; justify-content:center; padding: 12px 16px; position: relative; border-bottom: 1px solid #e5e7eb; }
.bjl-popup-root .bjl-popup-title { font-weight: 500; font-size: 14px; color:#0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bjl-popup-root.is-open { pointer-events: auto; display: block; }
.bjl-popup-root.is-open .bjl-popup-backdrop { opacity: 1; }
/* Body lock to prevent background scroll on mobile when sheet is open */
@media (max-width: 768px) {
  body.bjl-body-locked, html.bjl-body-locked {
    overflow: hidden !important;
    overscroll-behavior: contain;
    touch-action: none;
  }
}

/* Modal (desktop) */
.bjl-popup-root.is-modal .bjl-popup-modal { top: 50%; left: 50%; transform: translate(-50%, -45%) scale(1); opacity: 1; max-width: 335px; }
.bjl-popup-root.is-modal .bjl-popup-sheet { display: none; }
/* Sheet (mobile) */
.bjl-popup-root.is-sheet .bjl-popup-modal { display: none; }
.bjl-popup-root.is-sheet .bjl-popup-sheet { left: 0; right: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; transform: translateY(0) scale(1); opacity: 1; transition: height .26s ease; will-change: height; }
.bjl-popup-root .bjl-sheet-handle { width: 65px; height: 4px; border-radius: 999px; background: #e5e7eb; margin: -5px auto 10px; }
.bjl-popup-root .bjl-popup-sheet.is-dragging { transition: none; }

/* Ensure full visibility of the mobile sheet within safe viewport */
@media (max-width: 768px) {
  .bjl-popup-root.is-sheet .bjl-popup-sheet {
    /* Cap to the small viewport height (excludes browser UI) */
    max-height: min(95svh, calc(100svh - 8px));
    /* Respect notches/home indicator without extra padding */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* Fallback scrolling when JS height calc is unavailable */
  .bjl-popup-root.is-sheet .bjl-popup-sheet .bjl-popup-content {
    max-height: calc(95svh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Compact paddings on small screens */
  .bjl-popup-root .bjl-popup-content { padding: 12px; }
  /* Remove extra bottom gap under content on sheet variant */
  .bjl-popup-root.is-sheet .bjl-popup-sheet { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bjl-popup-root.is-sheet .bjl-popup-sheet .bjl-popup-content { padding-bottom: 0; }
  .bjl-popup-root.is-sheet .bjl-popup-sheet .bjl-popup-content > :last-child { margin-bottom: 0 !important; }
}

/* Close button */
.bjl-popup-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 32px; height: 32px; border: none; cursor: pointer; background: transparent; background-image: url('../icons/close.svg'); background-repeat: no-repeat; background-position: center; background-size: 18px 18px; opacity: .85; z-index: 5; pointer-events: auto; }
.bjl-popup-close:hover { opacity: 1; }
/* Hide close button on mobile sheet variant */
.bjl-popup-root.is-sheet .bjl-popup-sheet .bjl-popup-close { display: none !important; }

/* Buttons list */
.bjl-popup-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bjl-popup-item { display:flex; align-items:center; gap: 10px; border: 1px solid #e5e7eb; border-radius: 12px; background:#fff; color:#0f172a; font-weight:800; text-decoration:none; box-shadow: 0 4px 12px rgba(0,0,0,0.04); cursor: pointer; padding: 0; }
.bjl-popup-item:hover { border-color:#c7d2fe; box-shadow: 0 6px 16px rgba(0,0,0,0.08); filter: brightness(1.02); }
.bjl-popup-item .logo { object-fit: contain; flex: 0 0 22px; border-radius: 12px; background:#f3f4f6; }
.bjl-popup-item .label { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bjl-popup-root .bjl-popup, .bjl-popup-root .bjl-popup-backdrop { transition: none !important; }
}

/* Footer - minimal bar with icons and tooltip */
.bjl-footer { padding: 13.5px 0; background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0px -10px 30px rgba(0, 0, 0, 0.06); margin-top: auto; position: static; }
footer { width: 100%; }
span.bjl-f2-link { color: #e6efff; font-weight: 300; font-size: 13px; }
.bjl-footer_bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; place-self: stretch; }
.bjl-footer_icons { display: flex; align-items: center; gap: 12px; }
.bjl-footer_hours { color: #374151; font-weight: 700; font-size: 14px; direction: ltr; text-align: center; }
.bjl-tt { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease; cursor: pointer; }
.bjl-tt:hover, .bjl-tt:focus { border-color:#c7d2fe; box-shadow: 0 6px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }
.bjl-tt img { width: 18px; height: 18px; display: block; opacity: .95; }
.bjl-tt_tip { position: absolute; bottom: 44px; right: 50%; transform: translateX(50%) translateY(6px); opacity: 0; visibility: hidden; white-space: nowrap; background: rgba(17,24,39,0.96); color: #fff; padding: 8px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1px; backdrop-filter: blur(6px) saturate(1.2); -webkit-backdrop-filter: blur(6px) saturate(1.2); box-shadow: 0 10px 24px rgba(0,0,0,0.18); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 20; border: 1px solid transparent; }
.bjl-tt_tip::after { content: ""; position: absolute; top: 100%; right: 50%; transform: translateX(50%); border-width: 6px; border-style: solid; border-color: rgba(17,24,39,0.96) transparent transparent transparent; }
.bjl-tt:hover .bjl-tt_tip, .bjl-tt:focus .bjl-tt_tip { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }
.bjl-tt_label { display: none; margin-inline-start: 8px; font-weight: 600; font-size: 13px; color: #0f172a; }
/* Desktop: swap positions (hours left, icons right) */
@media (min-width: 641px) {
  .bjl-footer_hours { order: 1; }
  .bjl-footer_icons { order: 2; }
}
@media (max-width: 640px) {
  .bjl-footer_bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .bjl-footer_icons { justify-content: center; }
  .bjl-footer_hours { text-align: center; }
  .bjl-tt { width: auto; padding: 0 10px; }
  .bjl-tt_tip { display: none !important; }
  .bjl-tt_label { display: inline-block; }
}

/* Ensure Footer Template 2 also sticks to the bottom as the last section */
.bjl-footer2 { margin-top: auto; }

/* Contact */
.bjl-contact-wrap { display: flex; flex-direction: row; gap: 16px; align-items: stretch; }
.bjl-contact { width: 385px; max-width: 100%; background:#fff; border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.bjl-contact, .bjl-contact *, .bjl-contact *::before, .bjl-contact *::after { box-sizing: border-box; }
.bjl-contact-form { display:block; width: 100%; max-width: 100%; }
.bjl-contact-form .bjl-btn { width: 100%; text-align: center; justify-content: center; background: #8b5cf6; cursor: pointer; box-shadow: 0 8px 24px #8b5cf62e; }
/* Input invalid/error styles */
.bjl-input-wrap { position: relative; flex: 1 1 100%; width: 100%; min-width: 0; padding-bottom: 23px; }
.bjl-contact-form .is-invalid,
.bjl-comment-form .is-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.08); background-image: url('../icons/error.svg'); background-repeat: no-repeat; background-position: left 12px center; background-size: 16px 16px; padding-left: 36px; }
.bjl-contact-form .is-valid,
.bjl-comment-form .is-valid { border-color: #00B274 !important; box-shadow: 0 0 0 3px rgba(0,178,116,0.10); background-image: url('../icons/success.svg'); background-repeat: no-repeat; background-position: left 12px center; background-size: 16px 16px; padding-left: 36px; }
.bjl-input-error { position: absolute; top: calc(100% + -22px); right: 14px; display: none; color: #b91c1c; font-size: 10px; font-weight: 700; pointer-events: none; white-space: normal; }
/* Show error line when input is invalid */
.bjl-input.is-invalid + .bjl-input-error { display: block; }
/* Comments section tweaks */
.bjl-comments__list .bjl-comment { overflow-wrap: anywhere; }
.info-item.info-comments { cursor: pointer; }
form.bjl-comment-form { border-bottom: 1px dashed #bbbbbb; padding-bottom: 20px; }
form.bjl-comment-form.no-comments { border-bottom: none; padding-bottom: 0; }
.bjl-reply-box .bjl-reply-target strong { color: #1951be; font-family: YekanBakh, 'Vazirmatn', Vazirmatn, sans-serif !important; }
strong.bjl-comment__author { font-family: YekanBakh, 'Vazirmatn', Vazirmatn, sans-serif !important; }
.bjl-reply-box form.bjl-comment-form { border-bottom: none; padding-bottom: 0; }
/* Nested comment styling */
.bjl-comments__list { direction: rtl; }
.bjl-comment { position: relative; }
.bjl-comment--reply { background: #fbfdff; border: none !important; }
/* remove decorative rail */
.bjl-comment--reply .bjl-comment__head::before { content: none !important; display: none !important; }
.bjl-comments__children { padding: 10px 20px 10px 10px !important; border: 1px solid #1950be3b; border-radius: 12px; margin-right: 15px; }
.bjl-comment__reply-btn { color: #0b2240; }
.bjl-comment__reply-btn:hover { border-color: #c7d2fe; filter: brightness(1.02); }
/* Make meta full width to push reply button to the edge */
.bjl-comment__meta { width: 100%; }
/* Add an external reply icon near reply boxes */
.bjl-comment--reply::after { content: ""; position: absolute; right: -13px; top: 20px; width: 20px; height: 20px; background: url(../icons/reply.svg) center / 16px 16px no-repeat; opacity: .9; pointer-events: none; }
h2.bjl-comments__title { font-size: 18px !important; color: #164bc1 !important; }
button.share-btn { background: transparent; border: none; padding: 0; color: #6b7280; display: inline-flex !important; align-items: center !important; gap: 1px !important; }
/* Replies list separation */
.bjl-comments__children > .bjl-comment + .bjl-comment { border: none !important; border-top: 1px dashed #1950be3b !important; border-radius: 0 !important; }
/* Inline reply form container under a comment */
.bjl-reply-box { background: #ffffff; border: 1px solid #1c54be; border-radius: 12px; padding: 10px; margin-top: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.bjl-reply-box .bjl-reply-target { display: block; margin-bottom: 6px; }
.bjl-comment__content p { margin: 0; }
.bjl-comment__date { font-size: 12px; }

/* Article sidebar follows scroll without internal scrolling */
.bjl-article__sidebar { overflow: visible !important; will-change: transform; }
/* Banner shows fully without distortion or repetition */
.bjl-contact-banner { flex: 1 1 0; background: url('../img/loan-banner.png') center / contain no-repeat; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

.bjl-form_row { display:flex; gap:0; flex-wrap:wrap; width: 100%; max-width: 100%; min-width: 0; margin-top: 0 !important; }
.bjl-contact .bjl-form_row { flex-direction: column; }
.bjl-contact .bjl-form_row + .bjl-form_row { margin-top: 0 !important; }
.bjl-input-wrap:last-child { margin-bottom: 0; }
.bjl-input { display:block; width:100%; max-width: 100%; padding: 12px 14px; border:1px solid #e5e7eb; border-radius: 12px; font-size:14px; text-align: right; box-sizing: border-box; margin: 0; direction: rtl; }
.bjl-success { background: #ecfdf5; color:#065f46; border:1px solid #a7f3d0; padding:10px 12px; border-radius: 10px; margin-top: 10px; display:none; text-align: center; }
.bjl-error { background: #fef2f2; color:#991b1b; border:1px solid #fecaca; padding:10px 12px; border-radius: 10px; margin-top: 10px; display:none; }
.bjl-input:focus-visible { outline: none; }

/* Top toast for success */
.bjl-toast { position: fixed; left: 50%; transform: translateX(-50%); top: 85px; z-index: 9999; background: rgba(17, 24, 39, 0.96); color: #00B274; padding: 10px 14px; border-radius: 12px; font-weight: 800; font-size: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1); margin: auto; max-width: 260px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-direction: row-reverse; }
.bjl-toast-success { background: #ffffff; box-shadow: 0 3px 10px rgb(139 92 246 / 26%); }
/* Toast content: icon + text at two sides */
.bjl-toast-icon { width: 18px; height: 18px; background: url('../icons/success.svg') center / contain no-repeat; flex: 0 0 18px; }
.bjl-toast-text { line-height: 1.4 !important; white-space: nowrap; }
@media (max-width: 768px) { .bjl-toast { top: 20px; left: 12px; right: 12px; transform: none; text-align: center; } }
@media (max-width: 768px) {
  .bjl-contact-wrap { flex-direction: column-reverse; }
  .bjl-contact-banner { min-height: 200px; }
  .bjl-contact { width: -webkit-fill-available; max-width: -webkit-fill-available; margin-bottom: 30px; }
}
.loan-pills-title { margin: 10px 0 6px; font-weight: 800; color: #0f172a; }
/* Loan duration pills: container + items aligned side-by-side with equal widths */
.loan-pills { display: flex; gap: 8px; align-items: stretch; flex-wrap: nowrap; width: 100%; }
.loan-pill { flex: 1 1 0; appearance:none; border:1px solid #e5e7eb; background:#fff; color:#111827; padding:8px 12px; border-radius:999px; font-weight:700; cursor:pointer; transition: all .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.04); text-align: center; }
@media (max-width: 480px) { .loan-pills { flex-wrap: wrap; } }
.loan-pill:hover { border-color:#c7d2fe; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.loan-pill.is-active { background:#0b2240; color:#fff; border-color: transparent; box-shadow: 0 6px 16px rgba(11,34,64,0.25); }

/* Credit Rating Pills */
.credit-rating-pills { margin-top: 20px; margin-bottom: 16px; }
.credit-rating-title { font-size: 15px !important; font-weight: 700; color: #1a3b6b; margin-bottom: 10px; }
.credit-rating-buttons { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.credit-rating-pill { flex: 1 1 0; min-width: 60px; appearance: none; border: 2px solid #e5e7eb; background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); color: #475569; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 8px rgba(0,0,0,0.04); text-align: center; position: relative; overflow: hidden; }
.credit-rating-pill::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%); opacity: 0; transition: opacity .3s ease; }
.credit-rating-pill:hover { border-color: #a5b4fc; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15); }
.credit-rating-pill:hover::before { opacity: 1; }
.credit-rating-pill.is-active { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: #ffffff; border-color: transparent; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35); transform: translateY(-1px); }
.credit-rating-pill.is-active::before { opacity: 0; }
@media (max-width: 480px) { .credit-rating-buttons { flex-wrap: wrap; } .credit-rating-pill { min-width: calc(50% - 5px); } }
.loan-control label { display:block; font-weight:700; margin-bottom: 8px; margin-top: 18.72px; font-size: 15px; color: #1a3b6b; }
h3.loan-title { font-size: 15px !important;}
input#loan-amount { width: 100%; }
.loan-control input[type=range] { width:100%; height: 6px; background: linear-gradient(90deg,#0ea5e9 0%, #f59e0b 100%); border-radius: 999px; outline:none; -webkit-appearance:none; appearance:none; cursor: grab; }
.loan-control input[type=range]::-webkit-slider-runnable-track { height:6px; background: transparent; border-radius:999px; }
.loan-control input[type=range]::-moz-range-track { height:6px; background: transparent; border-radius:999px; }
.loan-control input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:18px; height:18px; border-radius:50%; background:#fff; border:3px solid #0ea5e9; margin-top:-6px; box-shadow: 0 2px 8px rgba(14,165,233,0.35); }
.loan-control input[type=range]::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:#fff; border:3px solid #0ea5e9; box-shadow: 0 2px 8px rgba(14,165,233,0.35); }
.range-ends { display:flex !important; justify-content: space-between !important; align-items:center; width:100%; font-size:12px; color:#6b7280; margin-top:6px; }
/* Keep children size to content; positions handled by space-between */
.range-ends > .min, .range-ends > .max { flex: 0 0 auto; white-space: nowrap; }
/* Stronger selectors to avoid accidental overrides */
.loan-control .range-ends { justify-content: space-between !important; }
.loan-control .range-ends > .min, .loan-control .range-ends > .max { flex: 0 0 auto; }
/* Visual alignment per direction */
/* RTL: min on the right, max on the left */
.loan-box[dir="rtl"] .range-ends > .min { text-align: right; }
.loan-box[dir="rtl"] .range-ends > .max { text-align: left; }
/* LTR: min on the left, max on the right */
.loan-box:not([dir="rtl"]) .range-ends > .min { text-align: left; }
.loan-box:not([dir="rtl"]) .range-ends > .max { text-align: right; }
.current-amount { text-align:center; font-weight:800; font-size:24px; margin: 14px 0 8px; color:#0f172a; }
.duration-label { display: none !important; }
.loan-meta { display:flex; gap:12px; justify-content:space-between; margin-top: 8px; flex-wrap: wrap; }
.loan-meta .meta-item { background:#fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.05); font-weight:600; display: none; }
.loan-meta .meta-val { color:#0077cc; font-weight:800; }

/* ===== Header Template 2 (full header) ===== */
.bjl-header2 { position: relative; z-index: 950; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.bjl-header2 .bjl-h2-bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bjl-header2 .bjl-h2-right, .bjl-header2 .bjl-h2-center, .bjl-header2 .bjl-h2-left { display: flex; align-items: center; gap: 12px; height: 64px; }
/* Ensure consistent vertical centering for all header items */
.bjl-header2 .bjl-h2-nav .bjl-h2-menu { align-items: center; }
.bjl-header2 .bjl-h2-logo { display: flex; align-items: center; height: 100%; }
.bjl-header2 .bjl-h2-search { display: flex; align-items: center; height: 100%; }
.bjl-header2 .bjl-h2-menu { margin: 0; padding: 0; }
.bjl-header2 .bjl-h2-item { margin: 0; }
.bjl-header2 .bjl-h2-link, .bjl-header2 .bjl-h2-link--btn { display: inline-flex; align-items: center; font-size: 16px !important; line-height: 1.4; }
.bjl-header2 .bjl-h2-sublink { font-size: 16px !important; }
.bjl-header2 .bjl-h2-input { font-size: 16px !important; }
ul.bjl-h2-pop-list { margin-top: 0; padding-right: 2rem; }

/* Desktop layout: Logo right, Menu center, Search left */
@media (min-width: 993px) {
  .bjl-header2 .bjl-h2-bar {
    align-items: center;
    gap: 20px;
  }
  
  /* Logo moves to right column */
  .bjl-header2 .bjl-h2-center {
    grid-column: 3;
    justify-self: end;
  }
  
  /* Navigation moves to center column */
  .bjl-header2 .bjl-h2-nav {
    grid-column: 2;
    justify-self: center;
  }
  
  /* Search moves to left column */  
  .bjl-header2 .bjl-h2-left {
    grid-column: 1;
    justify-self: start;
  }
  
  /* Hide mobile buttons on desktop */
  .bjl-header2 .bjl-h2-right {
    display: none;
  }
}
.bjl-header2 .bjl-h2-logo img { height: 20px; width: auto; }
.bjl-header2 .bjl-h2-nav .bjl-h2-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; align-items: stretch; }
.bjl-header2 .bjl-h2-item { position: relative; }
/* Remove hover effects on items and hide submit buttons */
.bjl-header2 .bjl-h2-item:hover > .bjl-h2-link { background: transparent !important; }
.bjl-header2 .bjl-h2-link, .bjl-header2 .bjl-h2-link--btn { background: transparent; border: none; }
.bjl-header2 .bjl-h2-submit, .bjl-header2 .bjl-h2-mo-submit { display: none !important; }

/* Mega menu: closed by default, opens on .is-open */
.bjl-header2 .bjl-h2-mega { display: none; }
.bjl-header2 .bjl-h2-item.is-open > .bjl-h2-mega { display: block; }
.bjl-header2 .bjl-h2-mo-input { 
  background-image: url('../icons/search.svg') !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  background-position: right 12px center !important;
  padding: 10px 36px 10px 10px !important;
  height: 46px !important;
  font-size: 16px !important;
}

.bjl-header2 .bjl-h2-mo-input:focus-visible {
  outline: 2px solid #296cb4;
}

/* Device visibility helpers */
@media (max-width: 768px) { .bjl-header2.hide-desktop { display: none !important; } }
@media (min-width: 769px) { .bjl-header2.hide-mobile { display: none !important; } }

/* Additional header2 styles */
.bjl-header2 .bjl-h2-logo--text { font-weight: 900; font-size: 18px; color:#0f172a; }

/* Behavior helpers */
.bjl-header2.is-sticky { position: sticky; top: 0; }
.bjl-header2.is-fixed { position: fixed; top: 0; left: 0; right: 0; }

/* Hamburger and search icons (mobile visible) */
.bjl-header2 .bjl-h2-hamburger, .bjl-header2 .bjl-h2-search-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e5e7eb; background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.bjl-header2 .bjl-h2-burger-ico { width: 20px; height: 20px; background: url('../icons/menu.svg') center/contain no-repeat; }
.bjl-header2 .bjl-h2-search-ico { width: 20px; height: 20px; background: url('../icons/search.svg') center/contain no-repeat; }

/* Desktop menu */
.bjl-header2 .bjl-h2-nav { display:block; }
.bjl-header2 .bjl-h2-menu { display:flex; align-items:center; gap:14px; list-style:none; margin:0; padding:0; }
.bjl-header2 .bjl-h2-item { position:relative; }
.bjl-header2 .bjl-h2-link, .bjl-header2 .bjl-h2-link--btn { display:inline-flex; align-items:center; gap:6px; padding: 10px 12px 10px 10px; border-radius: 10px; color:#0f172a; font-weight:700; cursor: pointer; }
.bjl-header2 .bjl-h2-item:hover > .bjl-h2-link { background: transparent !important; }
/* Arrow icon for menu items with children */
.bjl-header2 .bjl-h2-item.has-children > .bjl-h2-link::after,
.bjl-header2 .bjl-h2-item.has-children > .bjl-h2-link--btn::after { content: ""; display: inline-block; width: 16px; height: 16px; background: url('../icons/arrow-next.svg') center / contain no-repeat; margin-inline-start: 4px; transition: transform 0.2s ease; transform: rotate(90deg); }
.bjl-header2 .bjl-h2-item.has-children.is-open > .bjl-h2-link::after,
.bjl-header2 .bjl-h2-item.has-children.is-open > .bjl-h2-link--btn::after { transform: rotate(-90deg); }
li.bjl-h2-item.has-children.is-open { background: #efefef; border-radius: 12px; }

/* Mega dropdown positioned under item */
.bjl-header2 .bjl-h2-mega { 
  position: absolute; 
  top: 125%; 
  inset-inline-start: 0; 
  min-width: 220px; 
  background: #fff; 
  border: 1px solid #e5e7eb; 
  border-radius: 12px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
}
.bjl-header2 .bjl-h2-sub { display:flex; list-style:none; margin:0; padding:0; flex-flow: wrap; }
.bjl-header2 .bjl-h2-sublink,
.bjl-header2 .bjl-h2-sublink.bjl-h2-sublink--btn,
button.bjl-h2-mo-sublink.bjl-h2-mo-sublink--btn,
.bjl-h2-mo-sub a {
  display: inline-block;
  padding:8px 10px;
  border-radius: 10px;
  color:#0f172a;
  font-weight:600;
  font-size: 14px;
  border: none;
  background: transparent;
  width: auto; /* override any width:max-content rules */
  max-width: 200px; /* ~22 chars */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}
/* Ensure list items don't force wider width than allowed */
.bjl-header2 .bjl-h2-sub > li { max-width: 220px; }
.bjl-header2 .bjl-h2-sublink:hover { background:#f3f4f6; }

/* Search box (desktop left) */
.bjl-header2 .bjl-h2-search { position: relative; --bjl-h2-input-w: 252px; width: var(--bjl-h2-input-w); max-width: 100%; perspective: 800px; display: inline-block; flex: 0 0 var(--bjl-h2-input-w); align-content: center; }
.bjl-header2 .bjl-h2-input:focus-visible { outline: none; border-color: #296cb4; }
.bjl-header2 .bjl-h2-input { height: 46px; width: 100%; padding: 10px 36px 10px 36px; border: 1px solid #e5e7eb; border-radius: 12px; background:#fff url('../icons/search.svg') right 10px center / 18px 18px no-repeat; text-align: right; outline-color: #296cb4 !important; box-sizing: border-box; }
/* When active, hide base icon and render animated one on top at the exact same spot */
.bjl-header2 .bjl-h2-search.is-active:focus-within .bjl-h2-input { background-image: none; }
.bjl-header2 .bjl-h2-search.is-active .bjl-h2-suggest { border-color: #296cb4; }
.bjl-header2 .bjl-h2-search.is-active::before {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 18px;
  height: 18px;
  background: url('../icons/search-active.svg') center / 18px 18px no-repeat;
  transform: translate3d(0,-50%,0) rotateY(0deg);
  transform-origin: 50% 50%;
  backface-visibility: visible; /* show both sides while spinning */
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 2; /* ensure above input */
  -webkit-animation: spinY 1.2s linear infinite;
  animation: spinY 1.2s linear infinite;
  pointer-events: none;
  display: none;
}
.bjl-header2 .bjl-h2-search.is-active:focus-within::before {
  display: block;
}
@-webkit-keyframes spinY {
  0% { transform: translateY(-50%) rotateY(0deg); }
  100% { transform: translateY(-50%) rotateY(360deg); }
}
@keyframes spinY {
  0% { transform: translateY(-50%) rotateY(0deg); }
  100% { transform: translateY(-50%) rotateY(360deg); }
}
/* Clear button for desktop search */
.bjl-header2 .bjl-h2-clear { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: none; border-radius: 8px; background: transparent url('../icons/delete.svg') center / 16px 16px no-repeat; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; z-index: 15; pointer-events: auto; }
.bjl-header2 .bjl-h2-search.has-text .bjl-h2-clear { opacity: 1; visibility: visible; }

/* Alternative selector with higher specificity */
.bjl-header2 .bjl-h2-search.bjl-h2-search.has-text .bjl-h2-clear {
  opacity: 1 !important;
  visibility: visible !important;
}
.bjl-header2 .bjl-h2-submit { position:absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border:none; border-radius: 8px; background: transparent; cursor: pointer; }
.bjl-header2 .bjl-h2-suggest { position:absolute; right: 0; left: auto; top: calc(100% + 0px); background:#fff; border:1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.08); padding: 10px; z-index: 60; max-height: 200px; overflow: hidden; width: 100%; min-width: 0; box-sizing: border-box; }

/* Hide default scrollbar */
.bjl-header2 .bjl-h2-suggest::-webkit-scrollbar {
  display: none;
}
.bjl-header2 .bjl-h2-suggest {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom scrollbar container */
.bjl-h2-suggest-content {
  height: 100%;
  max-height: 180px;
  overflow-y: auto;
  /* حذف فاصله و مارجین منفی تا عرض باکس دقیقاً برابر ورودی باشد */
  padding-left: 0;
  margin-left: 0;
}

.bjl-h2-suggest-content::-webkit-scrollbar {
  display: none;
}

/* Custom scrollbar track */
.bjl-h2-custom-scrollbar {
  position: absolute;
  inset-inline-end: 8px; /* برای RTL/LTR تطبیق‌پذیر */
  top: 8px;
  bottom: 8px;
  width: 5px;
  background: rgba(0,0,0,0.05);
  border-radius: 2.5px;
  opacity: 1; /* همیشه نمایان */
  transition: opacity 0.2s ease;
}

.bjl-h2-custom-scrollbar.hidden {
  opacity: 0;
  display: none;
}

/* Custom scrollbar thumb */
.bjl-h2-custom-scrollbar-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  background: #d1d5db;
  border-radius: 2.5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bjl-h2-custom-scrollbar-thumb:hover {
  background: #9ca3af;
}
.bjl-header2 .bjl-h2-suggest[hidden] { display:none !important; }
.bjl-header2 .bjl-h2-suggest .bjl-h2-pop-title,
.bjl-header2 .bjl-h2-mo-suggest .bjl-h2-pop-title { font-weight:800; font-size:12px; color:#6b7280; margin:0 0 6px; position: relative; }
.bjl-h2-pop-title.bjl-h2-popular-title { padding-inline-start: 20px; }
/* Show trend icon only for the Popular Searches title (has .bjl-h2-popular-title) */
.bjl-header2 .bjl-h2-suggest .bjl-h2-popular-title::before,
.bjl-header2 .bjl-h2-mo-suggest .bjl-h2-popular-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url('../icons/trend.svg') center / contain no-repeat;
  opacity: .9;
}
.bjl-header2 .bjl-h2-suggest .bjl-h2-pop-list, .bjl-h2-pop-list { display:flex; gap:6px; flex-wrap: wrap; }
/* When search results are found (ul element), use grid layout */
.bjl-header2 .bjl-h2-suggest ul.bjl-h2-pop-list, ul.bjl-h2-pop-list { display:grid; gap:6px; flex-wrap: initial; }
.bjl-header2 .bjl-h2-suggest .bjl-h2-pop-item { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:#ffffff; color:#0f172a; font-weight:700; font-size:12px; border: 2px solid; border-color: #184fbf; line-height: normal; }
nav.bjl-h2-mo-nav::-webkit-scrollbar { width: 0; }

/* Limit suggest link text to 15 characters */
a.bjl-h2-suggest-link {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  color: #0d6efd;
  font-size: 16px;
  line-height: normal;
}
.bjl-h2-no-results {
  display: block;
  padding: 8px 6px;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  color: #6b7280; /* muted gray */
}
.bjl-h2-pop-list ::marker {
  color: #1950bf;
  font-size: 16px;
}
button.bjl-h2-pop-item, a.bjl-h2-pop-item { display: inline-flex ; align-items: center; padding: 6px 10px; border-radius: 999px; background: #ffffff; color: #0f172a; font-weight: 700; font-size: 12px; border: 2px solid; border-color: #184fbf; width: fit-content; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* Search page: Header Template 2 vertical centering + 16px text */
/* Only affect the dedicated search page at /search/?q= (WP adds page-slug-search) */
body.page-slug-search .bjl-header2 .bjl-h2-bar,
body.page-slug-search .bjl-header2 .bjl-h2-right,
body.page-slug-search .bjl-header2 .bjl-h2-center,
body.page-slug-search .bjl-header2 .bjl-h2-left {
  align-items: center;
  height: 64px; /* keep consistent bar height */
}
/* Ensure inner controls align to middle as well */
body.page-slug-search .bjl-header2 .bjl-h2-nav .bjl-h2-menu { align-items: center; }
body.page-slug-search .bjl-header2 .bjl-h2-link,
body.page-slug-search .bjl-header2 .bjl-h2-link--btn {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
}
body.page-slug-search .bjl-header2 .bjl-h2-sublink { font-size: 16px; }
body.page-slug-search .bjl-header2 .bjl-h2-input { font-size: 16px; }
body.page-slug-search .bjl-header2 .bjl-h2-logo--text { font-size: 16px; }

/* Mobile overlays */
.bjl-h2-mobile-overlay { 
  position: fixed; 
  inset: 0; 
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  z-index: 99999; 
  display: block; 
  height: 100vh;
  overflow: hidden;
}
.bjl-h2-mobile-overlay[hidden] { display: none !important; }

.bjl-h2-mo-head { height: 64px; display:flex; align-items:center; justify-content: space-between; padding: 0 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.bjl-h2-mo-logo img { height: 20px; }
a.bjl-h2-mo-logo { display: flex ; align-items: center; height: 100%; }
.bjl-h2-mo-close { width: 32px; height: 32px; border:none; background: transparent url('../icons/close.svg') center/18px 18px no-repeat; }

/* Mobile navigation */
.bjl-h2-mo-nav { 
  padding: 16px 20px 100px; 
  height: calc(100vh - 64px); 
  overflow-y: auto;
  scroll-behavior: smooth;
}
.bjl-h2-mo-nav::-webkit-scrollbar { width: 0; }
.bjl-h2-mo-nav ul { list-style: none; margin: 0; padding: 0; }

/* Menu items */
.bjl-h2-mo-item { 
  margin-bottom: 8px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bjl-h2-mo-item + .bjl-h2-mo-item { border-top: none; }

/* Menu row */
.bjl-h2-mo-row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  height: 60px;
  box-sizing: border-box;
}
button.bjl-h2-mo-sublink.bjl-h2-mo-sublink--btn {
  max-width: -webkit-fill-available;
}
.bjl-h2-mo-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Menu link */
.bjl-h2-mo-link,
a.bjl-h2-mo-link,
span.bjl-h2-mo-link,
button.bjl-h2-mo-link.bjl-h2-mo-link--btn { 
  font-weight: 700; 
  color: #1e293b; 
  font-size: 15px; 
  line-height: 1.4;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bjl-h2-mo-link::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Toggle button for submenus */
.bjl-h2-mo-toggle { 
  width: 36px; 
  height: 36px; 
  border: none; 
  border-radius: 10px;
  background: #f1f5f9 url('../icons/arrow-next.svg') center/12px 12px no-repeat;
  transform: rotate(90deg); 
  cursor: pointer;
  flex-shrink: 0;
}
.bjl-h2-mo-toggle:hover {
  background-color: #e2e8f0;
}

/* Submenu */
.bjl-h2-mo-sub { 
  padding: 12px 16px 16px;
  margin-top: 8px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}
.bjl-h2-mo-sub[hidden] { display: none !important; }

/* Submenu items - grid layout like desktop */
.bjl-h2-mo-sub ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bjl-h2-mo-sub li {
  margin: 0;
}
.bjl-h2-mo-sub a,
.bjl-h2-mo-sub button.bjl-h2-mo-sublink.bjl-h2-mo-sublink--btn { 
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 16px;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.bjl-h2-mo-sub a::before,
.bjl-h2-mo-sub button.bjl-h2-mo-sublink.bjl-h2-mo-sublink--btn::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  margin-inline-end: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.bjl-h2-mo-sub a:hover::before,
.bjl-h2-mo-sub button.bjl-h2-mo-sublink.bjl-h2-mo-sublink--btn:hover::before {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Mobile menu: open state styles */
#bjl-h2-mobile-menu .bjl-h2-mo-item.has-children.is-open {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}
#bjl-h2-mobile-menu .bjl-h2-mo-item.has-children.is-open > .bjl-h2-mo-row {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}
#bjl-h2-mobile-menu .bjl-h2-mo-item.has-children.is-open > .bjl-h2-mo-row .bjl-h2-mo-link::before {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
#bjl-h2-mobile-menu .bjl-h2-mo-item.has-children.is-open > .bjl-h2-mo-row .bjl-h2-mo-toggle {
  background-color: #3b82f6;
  background-image: url('../icons/arrow-next-white.svg');
  transform: rotate(-90deg);
}
#bjl-h2-mobile-menu .bjl-h2-mo-item.has-children.is-open > .bjl-h2-mo-sub {
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  border: 1px solid #bfdbfe;
  border-top: 1px dashed #bfdbfe;
  margin-top: 0;
}

li.bjl-h2-mo-item.has-children.is-open {
  border-top-color: transparent !important;
}

.bjl-h2-mo-search { 
  padding: 20px; 
  position: relative; 
  height: calc(100vh - 90px);
  overflow-y: auto; 
  perspective: none;
}

.bjl-h2-mo-input { 
  width: 100% !important; 
  padding: 14px 44px 14px 16px !important; 
  border: 2px solid #e5e7eb !important; 
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
}
.bjl-h2-mo-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}
/* Force mobile search icon position - override everything */
.bjl-header2 #bjl-h2-mobile-search .bjl-h2-mo-input,
.bjl-header2 #bjl-h2-mobile-search .bjl-h2-mo-search-form .bjl-h2-mo-input {
  background-image: url('../icons/search.svg') !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  background-position: right 12px center !important;
  padding: 10px 36px 10px 10px !important;
  height: 46px !important;
  font-size: 16px !important;
  transition: none !important;
  animation: none !important;
}

/* Clear button for mobile search */
.bjl-h2-mo-clear { 
  position: absolute !important; 
  left: 12px !important; 
  top: 23px !important; 
  transform: translateY(-50%) !important; 
  width: 28px !important; 
  height: 28px !important; 
  border: none !important; 
  border-radius: 8px !important; 
  background: transparent url('../icons/delete.svg') center / 16px 16px no-repeat !important; 
  cursor: pointer !important; 
  opacity: 0 !important; 
  visibility: hidden !important; 
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  z-index: 15 !important;
  pointer-events: auto !important;
}
.bjl-h2-mo-clear:hover {
  background-color: #f1f5f9;
}
.bjl-h2-mo-search.has-text .bjl-h2-mo-clear { 
  opacity: 1 !important; 
  visibility: visible !important; 
}

/* Alternative selector with higher specificity */
.bjl-header2 #bjl-h2-mobile-search .bjl-h2-mo-search.has-text .bjl-h2-mo-clear {
  opacity: 1 !important;
  visibility: visible !important;
}
.bjl-h2-mo-suggest { 
  margin-top: 16px; 
  max-height: 100%; 
  overflow: hidden;
  padding: 16px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}
.bjl-h2-mo-suggest[hidden] { display:none !important; }

/* Hide default scrollbar for mobile - ensure zero width */
.bjl-h2-mo-search::-webkit-scrollbar {
  display: none;
  width: 0;
}
.bjl-h2-mo-search {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.bjl-h2-mo-suggest::-webkit-scrollbar {
  display: none;
  width: 0;
}
.bjl-h2-mo-suggest {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile: when active, hide base icon inside input and overlay animated active icon in the exact same spot */
#bjl-h2-mobile-search .bjl-h2-mo-search.is-active .bjl-h2-mo-search-form:focus-within .bjl-h2-mo-input,
#bjl-h2-mobile-search .bjl-h2-mo-search.is-active .bjl-h2-mo-input:focus {
  background-image: none !important; /* Hide the original search icon only when focused */
}

#bjl-h2-mobile-search .bjl-h2-mo-search-form {
  position: relative;
}

/* Make search form sticky at top */
#bjl-h2-mobile-search .bjl-h2-mo-search-form {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  padding-bottom: 10px;
}

/* Make search form sticky when there is search content */
.bjl-header2 #bjl-h2-mobile-search .bjl-h2-mo-search.has-text .bjl-h2-mo-search-form,
#bjl-h2-mobile-search .bjl-h2-mo-search.has-text .bjl-h2-mo-search-form {
  position: sticky !important;
  top: 0;
  z-index: 10;
  background: #ffffff;
  padding-bottom: 10px;
  box-shadow: 0 -10px 0px 10px #ffffff !important;
}

/* Show active search icon only when form is clicked/focused */
#bjl-h2-mobile-search .bjl-h2-mo-search.is-active .bjl-h2-mo-search-form:focus-within::before,
#bjl-h2-mobile-search .bjl-h2-mo-search.is-active .bjl-h2-mo-input:focus ~ .bjl-h2-mo-search-form::before {
  content: "";
  position: absolute;
  right: 14px; /* Align with the original search icon's right position */
  top: 23px; /* Center vertically */
  width: 16px;
  height: 16px;
  background: url('../icons/search-active.svg') center / 16px 16px no-repeat;
  transform: translate3d(0,-50%,0) rotateY(0deg); /* Adjust transform for vertical centering */
  transform-origin: 50% 50%;
  backface-visibility: visible; /* show both sides to prevent fade */
  -webkit-backface-visibility: visible; /* vendor prefix for Safari/WebKit */
  will-change: transform;
  z-index: 2;
  -webkit-animation: spinY 1.2s linear infinite;
  animation: spinY 1.2s linear infinite;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

/* Mobile suggest: hide by default, show only when has popular searches */
.bjl-header2 .bjl-h2-mo-suggest { 
  display: none !important; 
  margin-top: 10px;
}
.bjl-header2 .bjl-h2-mo-search.is-active .bjl-h2-mo-suggest { display: block !important; align-content: center; height: max-content; }

/* Mobile suggest list styles - same logic as desktop */
.bjl-h2-mo-suggest .bjl-h2-pop-list { display:flex; gap:6px; flex-wrap: wrap; }
.bjl-h2-mo-suggest ul.bjl-h2-pop-list { display:grid; gap:6px; flex-wrap: initial; }

/* Custom scrollbar for mobile */
.bjl-h2-mo-suggest-content {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
}

/* ================= Custom Mega Menu Styles ================ */
@media (min-width: 993px) {
  /* Request 1: Mega menu full width relative to nav menu */
  .bjl-header2 .bjl-h2-nav .bjl-h2-menu {
    position: relative;
  }
  
  .bjl-header2 .bjl-h2-item {
    position: static;
  }
  
  .bjl-header2 .bjl-h2-mega {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 10px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1), 0 8px 16px -8px rgba(0,0,0,0.1);
    padding: 24px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    /* Reset inset from previous styles */
    inset-inline-start: 0;
    min-width: auto;
    max-height: 550px;
    overflow-y: auto;
  }

  /* Request 2: Modern grid for sub items */
  .bjl-header2 .bjl-h2-sub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px;
    padding: 0;
  }
  
  /* Remove old flex styles if necessary */
  .bjl-header2 .bjl-h2-sublink, 
  button.bjl-h2-mo-sublink.bjl-h2-mo-sublink--btn, 
  .bjl-h2-mo-sub a {
    width: auto;
  }

  .bjl-header2 .bjl-h2-sublink,
  .bjl-header2 .bjl-h2-sublink.bjl-h2-sublink--btn {
    display: block;
    width: 100%;
    padding: 12px 8px;
    padding-inline-start: 24px;
    border-radius: 12px;
    color: #334155;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    text-align: right;
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .bjl-header2 .bjl-h2-sublink:hover,
  .bjl-header2 .bjl-h2-sublink.bjl-h2-sublink--btn:hover {
    background: #A0CCEE;
    color: #2563eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
  }
  
  /* Modern decorative dot */
  .bjl-header2 .bjl-h2-sublink::before,
  .bjl-header2 .bjl-h2-sublink.bjl-h2-sublink--btn::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    margin-inline-end: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
  }
  
  .bjl-header2 .bjl-h2-sublink:hover::before,
  .bjl-header2 .bjl-h2-sublink.bjl-h2-sublink--btn:hover::before {
    background: #00428b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  }
}

.bjl-h2-mo-suggest-content::-webkit-scrollbar {
  display: none;
}

.bjl-h2-mo-custom-scrollbar {
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 5px;
  background: rgba(0,0,0,0.05);
  border-radius: 2.5px;
  opacity: 0; /* پنهان در موبایل */
  transition: opacity 0.2s ease;
}

.bjl-h2-mo-custom-scrollbar.hidden {
  opacity: 0;
}

.bjl-h2-mo-custom-scrollbar-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  background: #d1d5db;
  border-radius: 2.5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bjl-h2-mo-custom-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Responsive visibility: desktop shows nav+search, mobile shows icons */
@media (max-width: 992px) {
  .bjl-header2 .bjl-h2-left { display:none; }
  .bjl-header2 .bjl-h2-right { display:flex; }
  .bjl-header2 .bjl-h2-center { justify-content: flex-end; }
}
@media (min-width: 993px) {
  /* Re-map grid so: [logo | menu | search] */
  .bjl-header2 .bjl-h2-center { grid-column: 1; justify-content: flex-start; }
  .bjl-header2 .bjl-h2-nav { grid-column: 2; display: flex; justify-content: center; width: 100%; }
  .bjl-header2 .bjl-h2-left { grid-column: 3; width: 100%; justify-content: space-between; }
  .bjl-header2 .bjl-h2-right { display:none; }
}
.loan-btn { margin-top: 12px; width: 100%; padding: 12px 16px; background:#0077cc; color:#fff; border:none; border-radius: 12px; font-weight:800; cursor:pointer; }
.loan-btn:hover { filter: brightness(1.05); }
.loan-box .result { margin-top: 14px; }
.result-card { background: linear-gradient(180deg, #fff7ed, #fffbeb); border:1px solid #fde68a; border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(245,158,11,0.12); text-align:center; }
.result-card .result-head { color:#92400e; font-weight:700; margin-bottom: 6px; }
.result-card .result-amount { font-weight:600; font-size:23px; color:#ea580c; }
.result-card .result-amount .toman { font-size:16px; font-weight:800; color:#ea580c; }
.result-card .result-note { margin-top:6px; color:#6b7280; font-size:13px; }
.result-card .result-rows { margin-top:10px; text-align: start; }
.result-card .result-rows .row { display:flex; justify-content:space-between; align-items:center; padding:6px 8px; border-bottom:1px dashed #fde68a; }
.result-card .result-rows .row:last-child { border-bottom:none; }
.result-card .result-rows .label { color:#92400e; font-weight:700; flex: 1; text-align: right; font-size: 18px; }
.result-card .result-rows .value { color:#0f172a; font-weight:600; flex: 1; text-align: left; font-size: 18px; }
@media (max-width: 768px) {
  /* Hide hero's internal CTA on mobile; it will appear as sticky */
  .bjl-hero_content .bjl-btn { display: none; }

  .result-card .result-rows .label, .result-card .result-rows .value, .bjl-faq .bjl-acc_q, .bjl-faq .bjl-acc_a { font-size: 13px; }
  .bjl-contact p, .bjl-faq .bjl-container > h2 + p, .bjl-section-steps .steps-subheading, .bjl-container:has(> .bjl-carousel[data-carousel="products"]) > h2 + p, .calc-subheading, .bjl-container:has(> .bjl-brands) > h2 + p { font-size: 14px; }

  /* Minimal sticky button fixed at the bottom with safe margins */
  .bjl-sticky-download { display:block; position: fixed; left: 12px; right: 12px; bottom: 12px; padding: 0; background: transparent; z-index: 999; text-align: center; }
  .bjl-sticky-download .bjl-btn, .bjl-sticky-download button { border: none; border-radius: 14px; padding: 10px 15px; font-size: 14px; font-weight: 500; }
}

/* Ensure sticky bar is hidden on larger screens */
@media (min-width: 769px) {
  .bjl-sticky-download { display: none !important; }
}

/* Desktop sticky header (appears after passing hero content) */
.bjl-sticky-header { position: fixed; top: -80px; left: 0; right: 0; height: 64px; background: rgba(255,255,255,0.8); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid rgba(0,0,0,0.06); z-index: 900; transition: top .25s ease, box-shadow .25s ease; display:none; }
.bjl-sticky-header .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 100%; display:flex; align-items:center; justify-content:space-between; gap:16px; box-sizing: border-box; }
.bjl-sticky-header .title { font-weight: 500; font-size: 18px; color:#0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bjl-sticky-header .cta { display: inline-flex ; align-items: center; padding: 10px 25px; border-radius: 10px; background: linear-gradient(45deg, #2a6cb4, #164bc1); color: #fff; font-weight: 500; text-decoration: none; box-shadow: 0 3px 8px #a6cb1973; font-size: 15px; cursor: pointer; border: none; }
.bjl-sticky-header.is-visible { top: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

/* Hide sticky header on mobile, enable on desktop */
@media (max-width: 768px) {
  .bjl-sticky-header { display:none !important; }
  /* Allow showing on mobile when explicitly enabled */
  .bjl-sticky-header.show-mobile { display:block !important; }
  [data-preset]:not([data-preset="group10"]) .loan-pills .loan-pill { max-width: 90.67px !important; }
  [data-preset="group10"] .loan-pills .loan-pill { max-width: none !important; }
}
@media (min-width: 769px) {
  .bjl-sticky-header { display:block; }
  /* Allow hiding on desktop when explicitly disabled */
  .bjl-sticky-header.hide-desktop { display:none !important; }
}

/* ================= Footer Template 2 ================= */
.bjl-footer2 { padding: 28px 0; background: transparent; position: absolute; left: 0; right: 0; }
.bjl-footer2_box { background: linear-gradient( 45deg, #2769B1, #00132C); color: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 -12px 36px rgba(0,0,0,0.06); }
.bjl-footer2_grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr 1fr; align-items: start; justify-items: center; }
.bjl-f2-title { margin: 0 0 20px; font-weight: 500 !important; color: #dddddd !important; font-size: 18px !important; }
.bjl-f2-text { margin: 0 0 10px; color: #e6efff; line-height: 2 !important; font-size: 13px !important; font-weight: 300; }
.bjl-f2-logos { display:flex; gap:10px; flex-wrap: wrap; margin-top: 10px; }
.bjl-f2-logo { display:inline-flex; align-items:center; justify-content:center; background: rgba(255,255,255,0.12); border-radius: 12px; padding: 8px 10px; }
.bjl-f2-logo img { height: 26px; width: auto; display:block; filter: none; }
.bjl-f2-contact { justify-self: left; }
.bjl-f2-contact .bjl-f2-phone { direction: ltr; }

.bjl-f2-contact .bjl-f2-phone a, .bjl-f2-contact .bjl-f2-phone span { color:#e6efff; font-weight:300; text-decoration: none; font-size: 13px; }
.bjl-f2-socials { display:flex; gap:8px; flex-wrap: wrap; margin-top: 10px; }
.bjl-f2-soc { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:12px; background: rgba(255,255,255,0.1); color:#fff; font-weight:700; text-decoration:none; border: 1px solid rgba(255,255,255,0.12); }
.bjl-f2-soc img { width:18px; height:18px; }

.bjl-f2-links { display:grid; gap:20px; grid-template-columns: repeat(2, minmax(0,1fr)); justify-self: right; }
.bjl-f2-coltitle { margin: 0 0 20px; color:#dddddd !important; font-size: 16px !important; font-weight: 500 !important; }
.bjl-f2-coltitle { display:flex; align-items:center; gap:10px; justify-content: space-between; }
.bjl-f2-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.bjl-f2-list a { color:#e6efff; text-decoration:none; font-weight:300; font-size: 13px; }
.bjl-f2-list .bjl-f2-linkbtn { color:#e6efff; background:transparent; border:0; padding:0; font: inherit; text-align: start; cursor:pointer; font-size: 13px; font-weight: 300; }
.bjl-f2-list .bjl-f2-linkbtn:hover { color: #b7bfdf; }
.bjl-f2-list a:hover { color: #b7bfdf; }

.bjl-f2-bottom { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 18px; padding-top: 12px; }
.bjl-f2-hours { color:#e6efff; font-weight:700; font-size:14px; }
.bjl-f2-ig { display:flex; justify-content:flex-end; }
.bjl-f2-iglink { display:inline-flex; align-items:center; gap:8px; color:#fff; background: rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.12); padding: 8px 10px; border-radius: 12px; text-decoration:none; font-weight:700; }
.bjl-f2-iglink img { width:18px; height:18px; filter: invert(1) brightness(1.8); }

/* Mobile */
@media (max-width: 768px) {
  .bjl-footer2_box { padding: 18px; margin-bottom: 40px; }
  .bjl-footer2_grid { grid-template-columns: 1fr; }
  .bjl-f2-links { grid-template-columns: 1fr; width: 100%; gap: 10px !important; border-bottom: 1px solid rgb(173 173 173 / 54%); padding-bottom: 15px; margin-bottom: 15px; }
  .bjl-f2-about { border-bottom: 1px solid rgb(173 173 173 / 54%); padding-bottom: 15px; margin-bottom: 15px; width: 100%; }
  .bjl-f2-soc span { display:none; }
  .bjl-f2-soc { padding: 8px; }
  .bjl-f2-bottom { flex-direction: column; align-items: stretch; }
  .bjl-f2-ig { justify-content: center; }
  .bjl-f2-hours { text-align: center; }
  .bjl-f2-contact { justify-self: right !important; }
  .bjl-f2-coltitle .bjl-acc_icon { width: 20px; height: 20px; flex: 0 0 auto; background-repeat: no-repeat; background-position: center; background-size: 14px 14px; filter: none; transform: rotate(90deg); background-image: url('../icons/arrow-next-white.svg'); }
  .bjl-f2-col.is-open .bjl-f2-coltitle .bjl-acc_icon { background-image: url('../icons/arrow-prev-green.svg'); }
  .bjl-f2-list { border-right: 1px solid rgb(173 173 173 / 54%); padding-right: 16px; margin-right: 8px; }
  .bjl-f2-col.is-open { padding-bottom: 20px; }
  .bjl-f2-col.is-open .bjl-f2-coltitle { color: #CDD600 !important; }
  .bjl-f2-coltitle { cursor: pointer; user-select: none; }
}

/* ================= Footer Template 3 ================= */
.bjl-footer3 { padding: 40px 0 20px; background: #f9fafb; position: relative; }
.bjl-footer3_box { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 1. Header: Logo + Back to Top */
.bjl-f3-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.bjl-f3-logo { order: 1; }
.bjl-f3-logo img { height: 30px; width: auto; display: block; }
.bjl-f3-backtotop { order: 2; }
.bjl-f3-backtotop { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid #9EA1A5; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.bjl-f3-backtotop:hover { background: #f3f4f6; border-color: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.bjl-f3-backtotop svg { color: #6b7280; }

/* 2. Main Grid: Links + QR Box */
.bjl-footer3_grid { display: grid; grid-template-columns: 1fr 400px; margin-bottom: 40px; }

/* Link Columns (Right) */
.bjl-f3-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.bjl-f3-coltitle { margin: 0 0 20px; font-weight: 700 !important; font-size: 16px !important; color: #111827 !important; }
.bjl-f3-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bjl-f3-list a, .bjl-f3-list .bjl-f3-linkbtn { color: #57585F; text-decoration: none; font-weight: 400; font-size: 14px !important; transition: color 0.2s; line-height: 2.5 !important; }
.bjl-f3-list .bjl-f3-linkbtn { background: transparent; border: 0; padding: 0; font: inherit; text-align: start; cursor: pointer; }
.bjl-f3-list a:hover, .bjl-f3-list .bjl-f3-linkbtn:hover { color: #2563eb; }

/* QR Box (Left) */
.bjl-f3-qr-box { background: #fff; border-radius: 16px; padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; width: fit-content; justify-self: left; border: 1px solid #bbbbbb; }
.bjl-f3-qr-title { font-size: 16px; font-weight: 700 !important; color: #111827; margin-bottom: 4px; }
.bjl-f3-qr-subtitle { font-size: 13px; color: #57585F; font-weight: 600 !important; }
.bjl-f3-qr-code img { width: 100%; max-width: 177.48px; height: auto; display: block; border-radius: 12px; padding: 10px; }
.bjl-f3-qr-code { border: 1px solid #bbbbbb; border-radius: 12px; }
.bjl-f3-download-btn { display: inline-flex; align-items: center; gap: 8px; background: #2C5CA7; color: #fff; border: none; border-radius: 50px; padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,0.3); transition: all 0.3s; width: 100%; justify-content: center; }
.bjl-f3-download-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,0.4); }
.bjl-f3-download-btn .bjl-f3-btn-icon { width: 20px; height: 20px; display: none; }
.bjl-f3-download-btn .bjl-f3-btn-text-desktop { display: inline; }
.bjl-f3-download-btn .bjl-f3-btn-text-mobile { display: none; }

/* 3. Bottom Row: Social + Certifications */
.bjl-f3-bottom-row { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; margin-bottom: 24px; }
.bjl-f3-socials-title { font-size: 18px; font-weight: 600 !important; color: #111827; margin-bottom: 12px; }
.bjl-f3-socials { display: flex; align-items: center; gap: 12px; }
.bjl-f3-soc { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent !important; border: none !important; box-shadow: none !important; transition: none !important; text-decoration: none; cursor: pointer; }
.bjl-f3-soc img { width: 24px; height: 24px; object-fit: contain; }
.bjl-f3-soc:hover { background: #DEE5EF !important; border: none !important; transform: none !important; border-radius: 10px; }

.bjl-f3-certifications { display: flex; align-items: center; gap: 16px; }
.bjl-f3-cert { display: inline-flex; align-items: center; justify-content: center; background: transparent !important; border: none !important; padding: 0 !important; box-shadow: none !important; }
.bjl-f3-cert img { height: 60px; width: auto; display: block; filter: none !important; transition: none !important; }
.bjl-f3-cert:hover img { filter: none !important; }

/* 4. Footer Bottom: Copyright + Company Logos */
.bjl-f3-footer-bottom { display: flex; justify-content: space-between; align-items: center; position: relative; }
.bjl-f3-footer-bottom::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #bbbbbb; z-index: 0; }
.bjl-f3-copyright { font-size: 12px; color: #57585F; line-height: 1.6; max-width: 600px; text-align: right; background: #f9fafb; padding-left: 16px; position: relative; z-index: 1; font-weight: 600 !important; }
.bjl-f3-company-logos { display: flex; align-items: center; gap: 25px; background: #f9fafb; padding-right: 16px; position: relative; z-index: 1; }
.bjl-f3-company-logo img { height: 32px; width: auto; display: block; filter: grayscale(0.3); transition: filter 0.3s; }
.bjl-f3-company-logo:hover img { filter: grayscale(0); }

/* Mobile Styles */
@media (max-width: 768px) {
  .bjl-footer3 { padding: 30px 0 20px; }
  .bjl-footer3_box { padding: 0; }
  
  .bjl-f3-header { margin-bottom: 30px; }
  .bjl-f3-logo img { height: 25px; }
  .bjl-f3-backtotop { width: 40px; height: 40px; }
  
  .bjl-footer3_grid { grid-template-columns: 1fr; gap: 24px; }
  
  .bjl-f3-links { grid-template-columns: 1fr; gap: 0; }
  .bjl-f3-col { border-bottom: 1px solid #e5e7eb; }
  .bjl-f3-coltitle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; padding: 16px 0; margin: 0; }
  .bjl-f3-coltitle .bjl-acc_icon { width: 20px; height: 20px; background: url('../icons/arrow-next-white.svg') center / 14px 14px no-repeat; transform: rotate(90deg); filter: invert(0.5); flex-shrink: 0; }
  .bjl-f3-col.is-open .bjl-f3-coltitle { color: #2563eb !important; }
  .bjl-f3-col.is-open .bjl-f3-coltitle .bjl-acc_icon { transform: rotate(-90deg); filter: invert(0.3); }
  .bjl-f3-list { padding: 0 0 16px 0; gap: 10px; }
  
  .bjl-f3-qr-box { padding: 0; background: transparent; box-shadow: none; border: none !important; justify-self: center !important; }
  .bjl-f3-qr-text, .bjl-f3-qr-code { display: none; }
  .bjl-f3-download-btn { width: 100%; }
  .bjl-f3-download-btn .bjl-f3-btn-icon { display: inline-block; }
  .bjl-f3-download-btn .bjl-f3-btn-text-desktop { display: none; }
  .bjl-f3-download-btn .bjl-f3-btn-text-mobile { display: inline; }
  
  .bjl-f3-bottom-row { flex-direction: column; gap: 24px; padding: 24px 0; }
  .bjl-f3-social-section { text-align: center; width: 100%; }
  .bjl-f3-socials-title { display: none; }
  .bjl-f3-socials { justify-content: center; }
  .bjl-f3-soc { width: 36px; height: 36px; }
  .bjl-f3-soc img { width: 18px; height: 18px; }
  
  .bjl-f3-certifications { justify-content: center; flex-wrap: wrap; }
  .bjl-f3-cert img { height: 50px; }
  
  .bjl-f3-footer-bottom { flex-direction: column-reverse; gap: 16px; text-align: center; }
  .bjl-f3-footer-bottom::after { display: none; }
  .bjl-f3-copyright { text-align: center; font-size: 11px; padding: 0 16px; background: transparent; border-top: 1px solid #e5e7eb; padding-top: 10px; }
  .bjl-f3-company-logos { justify-content: center; padding: 0 16px; background: transparent; }
  .bjl-f3-company-logo img { height: 28px; }
}

/* Description (توضیحات) with show more */
.bjl-desc_text { color:#374151; opacity:.95; line-height: 2 !important; transition: max-height .35s ease; text-align: justify; }
.bjl-desc:not(.is-expanded) .bjl-desc_text { max-height: var(--bjl-desc-max, 0px); overflow: hidden; }
.bjl-desc_more_wrap { display: none; margin-top: 8px; }
.bjl-desc.is-collapsible .bjl-desc_more_wrap { display: block; }
.bjl-desc_more { display:inline-flex; align-items:center; padding: 10px; border-radius: 12px; border: 1px solid #e5e7eb; background:#fff; cursor:pointer; font-weight:600; box-shadow: 0 4px 12px rgba(0,0,0,0.05); font-size: 14px; }
.bjl-desc_more::after { content: ""; display:inline-block; width: 18px; height: 18px; margin-inline-start: 8px; background-image: url('../icons/arrow-next.svg'), url('../icons/arrow-next.svg'); background-repeat: no-repeat, no-repeat; background-size: 12px 12px, 12px 12px; background-position: calc(50% - 1.5px) 50%, calc(50% + 1.5px) 50%; transform: rotate(90deg); }
.bjl-desc_more:hover { border-color:#c7d2fe; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.bjl-desc.is-expanded .bjl-desc_more::after { transform: rotate(-90deg); }
.short-text { line-height: 2 !important; }
.full-text { line-height: 2 !important; }
::-webkit-scrollbar { background: #efefef; width: 7px; }
::-webkit-scrollbar-thumb { border-radius: 0px; background: #1e3e813d; }
::-webkit-scrollbar-thumb:active, ::-webkit-scrollbar-thumb:hover { background: #1e3e81; }
::selection { background: #1e3e81; color: #fff; }

/* ================= Article Section ================= */
.bjl-article__title { font-weight: 600 !important; font-size: 20px !important; line-height: 1.4 !important; margin: 20px 0 12px !important; color: #3e3f3e !important; overflow-wrap: anywhere; }
.bjl-article__meta { color: #777; font-size: 13px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.bjl-article__sep { opacity: .5; margin: 0 6px; }
.bjl-article__thumb { margin: 0 0 20px; }
.bjl-article__thumb img { width: 100%; height: auto; border-radius: 8px; display: block; }
.bjl-article__content { color: #222; font-size: 16px; line-height: 2; }
.bjl-article__content :where(h1,h2,h3,h4,h5,h6){ font-weight: 800; line-height: 1.6; margin: 22px 0 10px; }
.bjl-article__content h3, .bjl-article__content h4, .bjl-article__content h5, .bjl-article__content h6 { font-size: 18px !important; color: #3e3f3e !important; }
.bjl-article__content img { max-width: 100%; height: auto; border-radius: 12px; }
.bjl-article__content figure { margin: 16px 0; }
.bjl-article__content figcaption { font-size: 13px; color: #666; margin-top: 6px; }
.bjl-article__content :where(ul,ol){ padding-inline-start: 22px; margin: 8px 0 16px; }
.bjl-article__content li { margin: 6px 0; }
.bjl-article__content blockquote { border-inline-start: 3px solid #27ae60; background: #f6fff9; padding: 10px 14px; border-radius: 6px; margin: 16px 0; }
.bjl-article__content a { color: #0006ff; }
.bjl-article__content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.bjl-article__content th, .bjl-article__content td { border: 1px solid #e5e7eb; padding: 8px 10px; }
.bjl-article__content code, .bjl-article__content pre { background: #f7f7f9; border: 1px solid #eee; border-radius: 6px; padding: 2px 6px; direction: ltr; display: inline-block; }
.bjl-article__content pre { display: block; padding: 10px 14px; overflow: auto; }

/* ---- Enhanced Article layout to match provided design ---- */
.bjl-article__hero img { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

.bjl-article__infobar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: #6b7280; font-size: 13px; margin-top: 10px; margin-bottom: 12px; }
.bjl-article__infobar .info-item { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); line-height: normal; }
.bjl-article__infobar .ico { width: 16px; height: 16px; color: #9ca3af; padding: 2px; }
.bjl-article__infobar .ico-img { width: 16px !important; height: 16px !important; object-fit: contain !important; display: inline-block !important; padding: 2px !important; }

/* Table of Contents (dropdown) */
.bjl-article__toc { margin: 12px 0 16px; }
.bjl-article__toc .bjl-toc_toggle { 
  display:inline-flex; align-items:center; justify-content:space-between; gap:10px;
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #e5e7eb;
  background: #ffffff; cursor: pointer; font-weight: 800; color: #3e3f3e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  font-size: 16px;
  position: relative; /* anchor for inner dropdown panel */
  overflow: visible;
}
.bjl-article__toc .bjl-toc_toggle::after{
  content: ""; width: 18px; height: 18px; display:inline-block;
  background: url('../icons/arrow-next.svg') center / 14px 14px no-repeat; transform: rotate(90deg);
}
.bjl-article__toc.is-open .bjl-toc_toggle::after{ transform: rotate(-90deg); }
.bjl-article__toc .bjl-toc_toggle:hover { border-color:#c7d2fe; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.bjl-article__toc .bjl-toc_panel { 
  border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 12px 12px;
  background:#fff; box-shadow: 0 10px 24px rgba(0,0,0,0.05); padding: 10px 12px; max-height: 250px;
  overflow: auto; 
}
/* Explicitly show the panel when not hidden (robust against theme overrides) */
.bjl-article__toc .bjl-toc_panel:not([hidden]) { display: block; }
/* When panel is appended inside the toggle, position like dropdown */
.bjl-article__toc .bjl-toc_toggle > .bjl-toc_panel {
  position: absolute;
  inset-inline: 0; /* left & right in LTR/RTL */
  top: calc(100% + 6px);
  z-index: 50;
  max-height: 340px;
  overflow: auto;
}
.bjl-article__toc.is-open .bjl-toc_toggle { border-bottom-left-radius: 0; border-bottom-right-radius: 0; color: #1951be !important; }
.bjl-article__toc .bjl-toc_panel[hidden] { display: none !important; }
/* When wrapper is open, force panel visible regardless of external styles */
.bjl-article__toc.is-open > .bjl-toc_panel { display: block !important; }
.bjl-article__toc .bjl-toc_list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bjl-article__toc .bjl-toc_list > li > p { margin: 0; font-weight: 700; }
.bjl-article__toc .bjl-toc_list a { color:#111827; text-decoration: none; font-weight: 500; font-size: 14px; }
.bjl-article__toc .bjl-toc_list a:hover { color: #1e3e81; text-decoration: none; }
.bjl-article__toc .bjl-toc_list ul { list-style: none; margin: 6px 12px 0 0; padding: 0 12px 0 0; border-right: 2px solid #e5e7eb; display: grid; gap: 4px; }
.bjl-article__toc .bjl-toc_list ul > li > p { margin: 0; font-weight: 600; }
.bjl-comment__rating { gap: 1px !important; margin-left: 5px !important; }
.bjl-comment__rating span { font-weight: 600 !important; position: relative; top: 2px; }

/* Reordered spacing: title now after thumbnail */
.bjl-article__thumb { margin: 0 0 12px; }

/* Content typography closer to mock */
.bjl-article__content, .bjl-article__content li { font-size: 15px; color: #374151; line-height: 2; text-align: justify; }
.bjl-article__content h2 { color: #3e3f3e !important; font-size: 20px !important; }
.bjl-article__content p + p { margin-top: 10px; }

/* Tags chips */
.bjl-article__tags { margin-top: 18px; }
.bjl-article__tags .tags-title { display: inline-block; margin-bottom: 8px; color: #111827; font-size: 14px; }
.bjl-article__tags .tags-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.bjl-article__tags .tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #f9fafb; border: 1px solid #e5e7eb; color: #111827; font-size: 12.5px; text-decoration: none; }
.bjl-article__tags .tag-chip:hover { border-color: #c7d2fe; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* Share bar */
.bjl-article__share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.bjl-article__share .share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; font-weight: 700; color:#0b2240; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.bjl-article__share .share-btn.ghost { background: #f9fafb; font-weight: 600; }
.bjl-article__share .share-btn .ico { width: 18px; height: 18px; color: #6b7280; }
.bjl-article__share .share-btn:hover { border-color:#c7d2fe; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

/* Author card */
.bjl-article__author { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background:#fff; border:1px solid #e5e7eb; border-radius: 16px; padding: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
.bjl-article__author .author-avatar img { border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.bjl-article__author .author-name { color:#111827; font-weight: 800; text-decoration: none; }
.bjl-article__author .author-name:hover { text-decoration: underline; }
.bjl-article__author .author-bio { color:#6b7280; font-size: 13px; margin-top: 2px; }
.bjl-article__author .author-follow { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 10px; border: 1px solid #e5e7eb; background:#f9fafb; text-decoration:none; font-weight:700; }
.bjl-article__author .author-follow:hover { border-color:#c7d2fe; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

/* Mobile tweaks */
@media (max-width: 768px) {
  .bjl-article__inner { padding: 0 2px; }
  .bjl-article__title { font-size: 20px !important; }
  .bjl-article__infobar { gap: 8px; }
  .bjl-article__infobar .info-item { padding: 6px 8px; font-size: 11px; }
  .bjl-article__share .share-btn { padding: 8px 10px; font-size: 12.5px; }
  .bjl-article__author { grid-template-columns: auto 1fr; }
  .bjl-article__author .author-action { grid-column: 1 / -1; }
  .bjl-article__content h2 { font-size: 18px !important;}
  .bjl-article__content h3, .bjl-article__content h4, .bjl-article__content h5, .bjl-article__content h6 { font-size: 16px !important;}
  .bjl-article__toc .bjl-toc_toggle { font-size: 14px !important; }
  .bjl-article__toc .bjl-toc_toggle > .bjl-toc_panel { max-height: 60vh; }
}

/* ====== Article Layout with optional Sidebar ====== */
.bjl-article__layout { 
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

/* Desktop and Laptop: 3/4 main + 1/4 sidebar */
@media (min-width: 1025px) {
  .bjl-article__layout.has-sidebar { 
    grid-template-columns: 3fr 320px;
  }
}
@media (min-width: 361px) {
.bjl-archive-toolbar h2 { width: fit-content !important; font-size: 20px !important; }
}
/* Tablet and Mobile: single column stack (main first, then sidebar, then comments) */
@media (max-width: 1024px) { 
  .bjl-article__layout.has-sidebar { 
    grid-template-columns: 1fr;
  }
  .bjl-article__main { 
    order: 0;
    width: 100%;
  }
  .bjl-article__sidebar { 
    order: 1;
    width: 100%;
  }
  /* Comments section should come after sidebar on mobile/tablet */
  .bjl-section[id*="comments"], 
  .bjl-section[class*="section-bv942461k"],
  .bjl-section-comments {
    order: 2;
    width: 100%;
  }
}

.bjl-article__main { 
  min-width: 0;
  position: relative;
}

.bjl-article__sidebar { 
  display: grid;
  gap: 12px;
  align-self: start;
  min-width: 0;
  position: sticky !important;
  top: 74px !important;
  justify-self: left !important;
  transform: none !important;
  max-height: calc(100vh - 84px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.bjl-comments__inner {
  width: 100%;
  float: right;
  padding: 20px 0 48px;
}

a.tag-chip { color: #2f2e2e; font-weight: 300; background: #66cbc352; padding: 1px 7px; border-radius: 4px; font-size: 14px; }

/* Sidebar scrollbar styling */
.bjl-article__sidebar::-webkit-scrollbar {
  width: 4px;
}
.bjl-article__sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.bjl-article__sidebar::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}
.bjl-article__sidebar:hover::-webkit-scrollbar-thumb {
  background: #d1d5db;
}

.sb-card { background: #f5f5f5 !important; border-radius: 12px !important; padding: 12px !important; }
.sb-title { font-weight: 500 !important; font-size: 14px !important; margin-bottom: 8px !important; color: #111827 !important; }
.sb-actions { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; }
.sb-author .sb-author-row { display: grid !important; grid-template-columns: auto 1fr !important; gap: 10px !important; align-items: center !important; }
.sb-tags .tags-wrap { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; }
.sb-ad { background: transparent !important; border: none !important; padding: 0 !important; box-shadow: none !important; }
.sb-ad .sb-banner { max-height: 380px !important; max-width: 100% !important; border-radius: 12px !important; background: #f3f4f6 !important; color: #6b7280 !important; display:flex !important; align-items:center !important; justify-content:center !important; font-weight:800 !important; margin: 0 auto !important; }
.sb-ad .sb-banner-img { max-height: 380px !important; max-width: 100% !important; display: block !important; object-fit: cover !important; object-position: center center !important; border-radius: 12px !important; margin: 0 auto !important; }
.sb-ad .sb-banner-link, .sb-ad .sb-banner-btn { display: block !important; text-decoration: none !important; background: transparent !important; border: none !important; padding: 0 !important; margin: 0 auto !important; max-width: 100% !important; }
.sb-latest .latest-list { list-style: none !important; padding: 0 !important; margin: 0 !important; display: grid !important; gap: 8px !important; }
.sb-latest .latest-list a { color: #111827 !important; text-decoration: none !important; display: grid !important; grid-template-columns: 87px 1fr !important; gap: 10px !important; align-items: center !important; }
.sb-latest .latest-list a:hover { text-decoration: none !important; }
.sb-latest .latest-thumb { width: 75px !important; height: 75px !important; border-radius: 12px !important; background-position: center !important; background-size: cover !important; background-repeat: no-repeat !important; display: inline-block !important; }
.sb-latest .latest-text { display: flex !important; flex-direction: column !important; align-items: flex-start !important; }
.sb-latest .latest-title { font-weight: 500 !important; line-height: 1.4 !important; font-size: 14px !important; }
.sb-latest .latest-date { display: block !important; font-size: 12px !important; color: #6b7280 !important; margin-top: 7px !important; font-weight: 500 !important; }
.author-avatar img { border-radius: 12px; }

/* Media: force full width, keep aspect */
.bjl-article__content img,
.bjl-article__content video,
.bjl-article__content iframe,
.bjl-article__content .wp-video,
.bjl-article__content figure img,
.bjl-article__content figure video { width: 100%; height: auto; max-width: 100%; display: block !important; }
.bjl-article__thumb img { width: 100% !important; height: auto !important; }

/* Global safety to avoid overflow */
.bjl-landing { width: 100% !important; overflow-x: hidden !important; }
/* Fix overflow for sticky sidebars (products archive & article) */
body.bjl-has-sticky-offset .bjl-landing,
body.single .bjl-landing { overflow: visible !important; background: #ffffff !important; }

/* Strengthen article styles with !important as requested */
.bjl-article__inner { margin: 0 auto !important; }
/* margin-top for first section is handled by JavaScript */
section.bjl-section.bjl-section-search.bjl-section-popular-posts, section.bjl-section.bjl-section-popular-posts.bjl-section-archive { margin-top: 25px; }
.bjl-article__infobar { display: flex !important; align-items: center !important; flex-wrap: wrap !important; gap: 4px !important; color: #6b7280 !important; font-size: 13px !important; margin-top: 10px !important; margin-bottom: 12px !important; }
.bjl-article__infobar .info-item { display: inline-flex !important; align-items: center !important; gap: 1px !important; background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 999px !important; padding: 6px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important; }
.bjl-article__content { color: #374151 !important; font-size: 15px !important; line-height: 2 !important; }
.bjl-article__content p { margin: 0 0 14px !important; color: #4a4a4a !important; font-weight: 400 !important; overflow-wrap: anywhere; }
.bjl-article__content a { font-weight: 400 !important;}
.bjl-article__content :where(h1,h2,h3,h4,h5,h6){ font-weight: 700 !important; line-height: 1.6 !important; margin: 22px 0 10px !important; }
.bjl-article__tags { margin-top: 18px !important; }
.bjl-article__tags .tag-chip { padding: 6px 10px !important; border-radius: 999px !important; background: #f9fafb !important; border: 1px solid #e5e7eb !important; font-size: 12.5px !important; }
.bjl-article__share { display: flex !important; gap: 10px !important; align-items: center !important; flex-wrap: wrap !important; margin-top: 16px !important; }
.bjl-article__share .share-btn { padding: 8px 12px !important; border-radius: 12px !important; border: 1px solid #e5e7eb !important; background: #fff !important; font-weight: 700 !important; }
.sb-share .share-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; border: none; background: transparent; }
.sb-share .share-btn img { width: 18px !important; height: 18px !important; display: inline-block !important; vertical-align: middle !important; }
.bjl-article__author { margin-top: 18px !important; }
span.slide.slide-mod { color: #0055FF; }

::marker { color: #1950bf; }

@media (max-width: 768px) { .bjl-article__content, .bjl-article__content li { font-size: 14px !important; } }

@media (max-width: 1024px) { 
  .bjl-article__sidebar { 
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    }
  }
@media (max-width: 768px) { 
  .info-item.info-date.has-upd { width: 100px !important; }
}
.info-item.info-date.has-upd { gap: 7px !important; }
/* Global safeguard: update icon only when both has-upd and is-mod are present */
.info-item.info-date .ico-upd { display: none; }
.info-item.info-date.has-upd.is-mod .ico-upd { opacity: 1; display: block; }
.info-item.info-date.has-upd.is-mod .ico-date { opacity: 0; display: none;}

/* ================= Search & Archive: complete styling alignment ================ */
/* Breadcrumb */
.bjl-article__breadcrumb { margin-bottom: 12px; }

/* Archive toolbar (title + total count) - Same as products-archive-toolbar */
.bjl-archive-toolbar { display:flex !important; flex-wrap:wrap !important; justify-content:space-between !important; align-items:center !important; gap:12px !important; margin-bottom:12px !important; }
.bjl-toolbar-controls { display:flex !important; align-items:center !important; gap:12px !important; }
.bjl-sort-label { display:none; align-items:center; gap:3px; color:#353535; font-weight:600 !important; font-size: 13px !important; }
.bjl-sort-label-icon { width:18px; height:18px; display:inline-block; background: url('../icons/sort.svg') center / 18px 18px no-repeat; }
.bjl-toolbar-controls { 
  display:flex !important; 
  align-items:center !important; 
  background:#f5f5f5 !important; 
  border:1px solid #E3E7EE !important; 
  border-radius:12px !important; 
  padding:8px 12px !important; 
  flex-wrap:nowrap !important; 
  min-width: 220px;
}

/* Mobile: title on first row, controls box on second row (all three inline) */
@media (max-width: 479px) {
  .bjl-archive-toolbar { flex-direction: column !important; align-items: stretch !important; gap: 15px !important; margin-top: 21px !important; position: sticky !important; top: 32px !important; z-index: 12 !important; background: #fff !important; box-shadow: inset 0 -5px 8px 9px #ffffff !important; }
  .bjl-archive-toolbar > h2 { width: 100% !important; margin-bottom: 4px !important; }
  .bjl-archive-toolbar > .bjl-toolbar-controls { display: flex !important; gap: 12px !important; position: sticky !important; top: 74px !important; z-index: 12 !important; }
  /* Ensure ancestors don't block sticky */
  .bjl-section-archive > .bjl-container,
  .bjl-section-archive .bjl-archive-content-wrapper { overflow: visible !important; }
  .bjl-archive-toolbar .bjl-archive-total { width: auto !important; text-align: right !important; margin-top: 0 !important; }
}

/* Tablet: order = filter, sort, total (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .bjl-mobile-filter-btn { order: 1 !important; }
  .bjl-archive-sort-select { order: 2 !important; }
  .bjl-archive-total { order: 3 !important; }
}

@media (min-width: 480px) {
  .bjl-archive-toolbar { position: sticky !important; top: 70px !important; z-index: 12 !important; }
}

/* Tablet: order = filter, sort, total (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .bjl-mobile-filter-btn { order: 1 !important; }
  .bjl-archive-sort-select { order: 2 !important; }
  .bjl-archive-total { order: 3 !important; }
}

.bjl-archive-sorts { display:flex !important; align-items:center !important; }
.bjl-section-archive > .bjl-container { max-width: 1200px !important; }
.bjl-archive-sorts a { display:inline-flex !important; align-items:center !important; gap:6px !important; padding:6px 12px !important; border-radius: 999px !important; color:#4b5563 !important; font-weight:500 !important; font-size:13px !important; text-decoration:none !important; transition: all .2s !important; }
.bjl-archive-sorts a.is-active { color:#fff !important; background: linear-gradient(135deg,#7c3aed 0%, #5b21b6 100%) !important; transform: translateY(-1px) !important; }

/* Mobile/Tablet: hide pills, show dropdown */
.bjl-archive-sort-select { display:none !important; }
@media (max-width: 1023px) {
  .bjl-archive-sorts { display:none !important; }
  .bjl-archive-sort-select { display:block !important; position: relative !important; }
  /* Combined box for filter, sort and total */
  .bjl-toolbar-controls { 
    display:flex !important; 
    align-items:center !important; 
    background:#f5f5f5 !important; 
    border:1px solid #E3E7EE !important; 
    border-radius:12px !important; 
    padding:8px 12px !important; 
    flex-wrap:nowrap !important; 
  }
  /* Make children seamless inside the combined box */
  .bjl-toolbar-controls .bjl-mobile-filter-btn,
  .bjl-toolbar-controls .bjl-dd-btn,
  .bjl-toolbar-controls .bjl-archive-total { 
    background:transparent !important; 
    border:none !important; 
    box-shadow:none !important; 
    margin:0 !important; 
  }
  .bjl-toolbar-controls .bjl-archive-total { padding:0 !important; margin-right: auto !important; margin-bottom: -2px !important; }
  /* Prevent wrapping of the three controls */
  .bjl-toolbar-controls > * { white-space:nowrap !important; }
  .bjl-dd { position: relative; }
  .bjl-dd-btn { display:flex; align-items:center; gap:3px; color:#353535; font-weight:500; cursor:pointer; box-shadow: none; font-size: 13px; padding: 0 !important; }
  .bjl-dd-btn:focus { outline: none; }
  .bjl-dd.is-open .bjl-dd-btn { border-color:#B8B8B8; background: #EBEBEB; }
  .bjl-dd-icon { width: 18px; height: 18px; background: url('../icons/sort.svg') center / 18px 18px no-repeat; transition: all .18s ease; flex-shrink: 0; }
  .bjl-dd-btn.is-active .bjl-dd-icon { background-image: url('../icons/active-sort.svg'); }
  .bjl-dd-menu { position: absolute; inset-inline: 0; top: calc(100% + 5px); background:#fff; border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid #D1D1D1; display: none; z-index: 50; min-width: 130px; }
  .bjl-dd.is-open .bjl-dd-menu { display: block; }
  .bjl-dd-item { display: flex ; align-items: center; justify-content: flex-start; gap: 8px; padding: 10px 12px; border-radius: 8px; color: #353535; font-weight: 500; cursor: pointer; font-size: 13px; transition: all .2s; }
  .bjl-dd-item:hover { background: #F5F5F5; }
  .bjl-dd-item.is-active { background: #7C3AED; color: #fff; }
  .bjl-section-archive .bjl-article__breadcrumb { padding-inline: 16px !important; }
  .bjl-archive-toolbar { background: #fff; box-shadow: 0 -5px 0px 9px #ffffff; }
}
.bjl-archive-total { font-size:13px !important; color:#353535 !important; font-weight: 500 !important; margin-right: auto !important; }

/* Search grid layout */
.bjl-search-grid { display: grid; gap: 16px; grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 640px) { .bjl-section-search .bjl-search-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (min-width: 1024px) { .bjl-section-search .bjl-search-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
@media (min-width: 1100px) { .bjl-section-search .bjl-search-grid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; } }

/* Search cards styling (align with popular posts) */
.bjl-section-popular-posts .bjl-card { display: flex; flex-direction: column; height: -webkit-fill-available; }
.bjl-section-popular-posts .bjl-card_img { aspect-ratio: 16/9; width: 100%; max-width: none; max-height: none; border-bottom: 1px solid #f3f4f6; margin: auto !important; }
.bjl-section-popular-posts .bjl-card_body { padding-top: 12px; display: flex; flex-direction: column; flex: 1 1 auto; }
.bjl-section-popular-posts .bjl-card_title { font-size: 16px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bjl-section-popular-posts .bjl-card_excerpt { font-size: 14px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-clamp: 4; text-align: justify; font-weight: 500; }
.bjl-meta-date { font-weight: 500;}
.bjl-section-popular-posts .bjl-card_actions { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-wrap-mode: nowrap; }
.bjl-section-popular-posts .bjl-card_actions .bjl-card_btn { width: auto; background: #143867 !important; color: #ffffff !important; gap: 10px; border-radius: 18px; margin: 0; font-size: 12px; line-height: normal; }

/* Term chips */
.bjl-term-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bjl-term-chip { display: inline-block; padding: 6px 10px; border: 1px solid #384906; border-radius: 999px; background: #beff00; color: #111827; font-size: 12px; text-decoration: none; }

/* Pagination */
.bjl-pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.bjl-page-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 999px; border: 1px solid #eee; background: #fff; color: #2c2930; font-weight: 800; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.04); font-size: 14px; line-height: 30px; }
.bjl-page-link.is-current { background: linear-gradient(45deg, #2769B1, #00132C); border-color: #f1f1f1; color: #ffffff; }
.bjl-page-ellipsis { color: #6b7280; font-weight: 800; }
.bjl-page-prevnext { background: #ffffff; border-color: #f1f1f1; width: auto; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bjl-page-prevnext .icon { width: 14px; height: 14px; display: inline-block; background-position: center; background-repeat: no-repeat; background-size: 14px 14px; }
.bjl-page-prevnext.prev .icon { background-image: url('../icons/arrow-next.svg'); }
.bjl-page-prevnext.next .icon { background-image: url('../icons/arrow-prev.svg'); }

/* Grid child sizing */
.bjl-section-search .bjl-search-grid > * { width: 100% !important; min-width: 0; }
section.bjl-section.bjl-section-search.bjl-section-popular-posts .bjl-term-list { border-bottom: 2px dashed #d5d5d5; padding-bottom: 25px; }
section.bjl-section.bjl-section-search.bjl-section-popular-posts .bjl-term-list:last-child { border: none; }
section.bjl-section.bjl-section-search.bjl-section-popular-posts .bjl-search-grid { padding-bottom: 25px; border-bottom: 2px dashed #d5d5d5; }
section.bjl-section.bjl-section-search.bjl-section-popular-posts .bjl-archive-toolbar { margin-bottom: 40px !important; font-size: 20px !important; background: #fff; box-shadow: 0 -5px 0px 9px #ffffff !important; padding-top: 10px; height: 48px; box-sizing: border-box; }
section.bjl-section.bjl-section-search.bjl-section-popular-posts h3{ font-size: 16px !important; margin-top: 16px !important; }

/* ===== 404 Layout: pin header/footer and center banner ===== */
.bjl-404-flex { min-height: 100vh; display: flex; flex-direction: column; }
.bjl-404-flex > header { flex: 0 0 auto; }
.bjl-404-flex > main { flex: 1 0 auto; display: flex; align-items: center; min-height: auto !important; max-width: 1200px !important; margin: auto; background: #fff !important; }
.bjl-404-flex > footer { flex: 0 0 auto; }
/* Ensure 404 banner doesn't overflow and breadcrumb overlays nicely */
.bjl-section-nf-banner .bjl-nf-banner { position: relative; }
.bjl-section-nf-banner img { display: block; width: 100%; height: auto; }

/* Reduce outer padding in the banner section to truly center within viewport */
.bjl-section-nf-banner { padding: 0 !important; margin: 0 auto; width: 100%; }

/* ===== CTA pill inserted from Classic Editor (frontend) ===== */
/* Row wrapper centers the CTA box as a single line element */
.bjl-cta-row { text-align: center; }
/* CTA anchor pill */
a.bjl-cta-box, .bjl-cta-box {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 25px;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: .1px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10) inset, 0 4px 16px rgba(0, 0, 0, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 16px;
  flex-direction: row-reverse;
}
.bjl-cta-ico { width: 22px !important; height: 22px !important; display: inline-block !important; }
.bjl-cta-text { white-space: nowrap; }
/* Color variants using radial gradients (exact stops) */
.bjl-cta-box.color-blue { background: radial-gradient(100% 100% at 25% 25%, #2900FF 0%, #000000 100%); }
.bjl-cta-box.color-pink { background: radial-gradient(100% 100% at 50% 50%, #CF48CA 0%, #4A042A 100%); }
.bjl-cta-box.color-orange { background: radial-gradient(100% 100% at 25% 25%, #DD7600 0%, #794203 100%); }
span.share-label { font-size: 13px !important; }
@media (max-width: 1024px) { span.share-label { font-size: 12px !important; } }

/* ================= Banner Section ================= */
.bjl-section-banner .bjl-banner-grid { display:grid; gap:12px; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-flow: row dense; }
@media (min-width: 1024px){ .bjl-section-banner .bjl-banner-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.bjl-section-banner .bjl-banner-item { position: relative; overflow: hidden; border-radius: 12px; background: #eee; height: var(--bjl-banner-h, auto); }
.bjl-section-banner .bjl-banner-img { display:block; width:100%; height:100%; object-fit: cover; }
.bjl-section-banner .bjl-banner-link, .bjl-section-banner .bjl-banner-btn { display:block; width:100%; height:100%; padding:0; border:none; background:transparent; cursor:pointer; }

/* Height mapping per size class */
/* Desktop */
@media (min-width: 1024px){
  .bjl-section-banner .bjl-banner-item.size-big-short   { --bjl-banner-h: 300px; }
  .bjl-section-banner .bjl-banner-item.size-med-short   { --bjl-banner-h: 180px; }
  .bjl-section-banner .bjl-banner-item.size-small-short { --bjl-banner-h: 180px; }
  .bjl-section-banner .bjl-banner-item.size-med-tall    { --bjl-banner-h: 376px; }
}
/* Mobile */
@media (max-width: 1023.98px){
  .bjl-section-banner .bjl-banner-item.size-big-short   { --bjl-banner-h: 150px; }
  .bjl-section-banner .bjl-banner-item.size-med-short   { --bjl-banner-h: 125px; }
  .bjl-section-banner .bjl-banner-item.size-small-short { --bjl-banner-h: 125px; }
  .bjl-section-banner .bjl-banner-item.size-med-tall    { --bjl-banner-h: 262px; }
}

/* Variant: big_short => one full-width short banner */
.bjl-section-banner.variant-big_short .bjl-banner-item { grid-column: 1 / -1; }

/* Variant: two_medium_short => 2 columns short */
/* Mobile: stack full width; Desktop: each spans 2 columns */
@media (max-width: 1023.98px){ .bjl-section-banner.variant-two_medium_short .bjl-banner-item { grid-column: 1 / -1; } }
@media (min-width: 1024px){ .bjl-section-banner.variant-two_medium_short .bjl-banner-item { grid-column: span 2; } }

/* Variant: four_small_short => 4 small short */
/* four small short: 2 columns on mobile, 4 columns on desktop (default) */

/* Variant: one_med_short_two_small_short => first spans 2 cols, next two 1 col each */
/* Mobile: first full width, next two side-by-side; Desktop: first spans 2 */
@media (max-width: 1023.98px){ .bjl-section-banner.variant-one_med_short_two_small_short .bjl-banner-item.i1 { grid-column: 1 / -1; } }
@media (min-width: 1024px){ .bjl-section-banner.variant-one_med_short_two_small_short .bjl-banner-item.i1 { grid-column: span 2; } }

/* Variant: four_small_tall_plus_four_small_tall => 8 small tall in 2 rows */
/* eight tall items: default grid behavior (2 cols mobile, 4 cols desktop) */

/* Variant: one_med_tall_four_small_tall => first spans 2 cols (tall), next four small tall */
/* Mobile: first full width; Desktop: first spans 2 */
@media (max-width: 1023.98px){ .bjl-section-banner.variant-one_med_tall_four_small_tall .bjl-banner-item.i1 { grid-column: 1 / -1; } }
@media (min-width: 1024px){
  .bjl-section-banner.variant-one_med_tall_four_small_tall .bjl-banner-item.i1 { grid-column: 3 / span 2; grid-row: 1 / span 2; }
}

/* Variant: one_med_tall_one_med_short_two_small_short */
/* Mobile: first full width (med tall), second full width (med short), then two small side-by-side */
@media (max-width: 1023.98px){
  .bjl-section-banner.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i1 { grid-column: 1 / -1; }
  .bjl-section-banner.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i2 { grid-column: 1 / -1; }
}
@media (min-width: 1024px){
  .bjl-section-banner.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i1 { grid-column: 3 / span 2; grid-row: 1 / span 2; }
  .bjl-section-banner.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i2 { grid-column: 1 / span 2; }
  .bjl-section-banner.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i3 { grid-column: 1 / span 1; grid-row: 2; }
  .bjl-section-banner.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i4 { grid-column: 2 / span 1; grid-row: 2; }
}

/* Variant: one_med_tall_two_med_short */
/* Mobile: med tall full width, then two med short full width stack; Desktop: first spans 2 */
@media (max-width: 1023.98px){
  .bjl-section-banner.variant-one_med_tall_two_med_short .bjl-banner-item.i1 { grid-column: 1 / -1; }
  .bjl-section-banner.variant-one_med_tall_two_med_short .bjl-banner-item.i2 { grid-column: 1 / -1; }
  .bjl-section-banner.variant-one_med_tall_two_med_short .bjl-banner-item.i3 { grid-column: 1 / -1; }
}
@media (min-width: 1024px){
  .bjl-section-banner.variant-one_med_tall_two_med_short .bjl-banner-grid { grid-auto-flow: row dense; }
  .bjl-section-banner.variant-one_med_tall_two_med_short .bjl-banner-item.i1 { grid-column: 3 / span 2; grid-row: 1 / span 2; }
  .bjl-section-banner.variant-one_med_tall_two_med_short .bjl-banner-item.i2 { grid-column: 1 / span 2; }
  .bjl-section-banner.variant-one_med_tall_two_med_short .bjl-banner-item.i3 { grid-column: 1 / span 2; grid-row: 2; }
}/* === Ensure Header2 spinner shows on focus even without .is-active or suggestions === */
.bjl-header2 .bjl-h2-search::before {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 18px;
  height: 18px;
  background: url('../icons/search-active.svg') center / 18px 18px no-repeat;
  transform: translate3d(0,-50%,0) rotateY(0deg);
  transform-origin: 50% 50%;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 2;
  -webkit-animation: spinY 1.2s linear infinite;
  animation: spinY 1.2s linear infinite;
  pointer-events: none;
  display: none;
}
/* Show spinner and hide base icon while input is focused/clicked */
.bjl-header2 .bjl-h2-search:focus-within .bjl-h2-input { background-image: none; }
.bjl-header2 .bjl-h2-search:focus-within::before { display: block; }

  /* Banner + Brands Section - Full Width Design */
  .bjl-section-banner-brands {
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 30;
  }

/* Banner - Full Width */
.bjl-banner-brands-banner {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.bjl-banner-brands-wrapper,
.bjl-banner-brands-link,
.bjl-banner-brands-btn {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.bjl-banner-brands-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.bjl-banner-brands-text {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
  max-width: 45%;
  z-index: 2;
}

/* Red Accent Bar */
.bjl-banner-brands-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 3;
}

/* dark overlay for better text contrast */
.bjl-banner-brands-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,0) 60%);
  z-index: 1;
}

/* Brands Container - Skewed Design (legacy class kept for compatibility) */
.bjl-banner-brands-logos {
  position: relative;
  background: #ffffff;
  margin: -40px auto 0;
  max-width: 95%;
  padding: 24px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: perspective(1000px) rotateX(-1deg);
  z-index: 10;
  border-radius: 8px;
}

.bjl-banner-brands-logos::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
}

.bjl-banner-brands-logos .bjl-brands {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.bjl-banner-brands-logos .bjl-brand {
  background: transparent;
  border-radius: 0;
  padding: 8px 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.bjl-banner-brands-logos .bjl-brand:hover {
  transform: scale(1.08);
  opacity: 1;
}

.bjl-banner-brands-logos .bjl-brand img {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: 140px;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.bjl-banner-brands-logos .bjl-brand:hover img {
  filter: grayscale(0%) brightness(1.1);
}

/* New tilted brand strip to match exact design */
.bjl-brand-strip { position: relative; margin-top: 0px; margin-bottom: 60px; overflow: visible; z-index: 40; }
.bjl-brand-strip-bg {
  position: absolute; left: 0; right: 0; top: 0px; height: 60px; z-index: 2;
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%); /* solid red bar behind the white card */
}
.bjl-brand-strip-tilt {
  position: relative; z-index: 3; transform: rotate(-3deg); transform-origin: center; 
}
.bjl-brand-strip-inner {
  background: #fff; 
  /* outer shadows visible both top and bottom */
  box-shadow: 0 18px 36px rgba(0,0,0,.18), 0 -10px 22px rgba(0,0,0,.12);
  padding: 18px 28px; margin: 0; max-width: none;
  /* full-bleed to viewport */
  position: relative; left: 50%; transform: translateX(-50%) rotate(2deg);
  margin-right: -30px;
      top: 60px;
}

.bjl-brand-strip-inner .bjl-brands::-webkit-scrollbar {
    height: 3px;
}

.bjl-brand-strip-inner .bjl-brands::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
}

.bjl-brand-strip-inner .bjl-brands { gap: 32px; justify-content: center; align-items: center; display:flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bjl-brand-strip-inner .bjl-brands.is-scrollable { justify-content: flex-start; }
.bjl-brand-strip-inner .bjl-brand { padding: 6px 14px 0; margin-bottom: 0; opacity: .95; transition: transform .25s ease, opacity .25s ease; background: transparent; box-shadow: none; flex-shrink: 0; }
.bjl-brand-strip-inner .bjl-brand:hover { transform: translateY(-2px); opacity: 1; }
.bjl-brand-strip-inner .bjl-brand img { max-height: 20px; width: auto; display:block; }

@media (max-width: 1024px){
  .bjl-brand-strip { margin-top: -24px; }
  .bjl-brand-strip-bg { top: 24px; height: 32px; }
  .bjl-brand-strip-inner { max-width: none; padding: 16px 22px; left: 50%; transform: translateX(-50%) rotate(1.5deg); box-shadow: 0 14px 28px rgba(0,0,0,.16), 0 -8px 18px rgba(0,0,0,.1); margin-right: -8px !important; }
  .bjl-brand-strip-inner .bjl-brand img { max-height: 20px; }
}
@media (max-width: 768px){
  .bjl-brand-strip { margin-top: -24px; }
  .bjl-brand-strip-inner { padding: 12px 16px; max-width: none; left: 50%; transform: translateX(-50%) rotate(1.2deg); box-shadow: 0 10px 20px rgba(0,0,0,.14), 0 -6px 14px rgba(0,0,0,.1); }
  .bjl-brand-strip-inner .bjl-brands { gap: 16px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  .bjl-brand-strip-inner .bjl-brand { flex-shrink: 0; }
  .bjl-brand-strip-inner .bjl-brand img { max-height: 10px; }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .bjl-banner-brands-text {
    font-size: 40px;
    left: 4%;
    max-width: 50%;
  }

  .bjl-banner-brands-logos {
    max-width: 92%;
    padding: 20px 32px;
    margin-top: -30px;
  }

  .bjl-banner-brands-logos .bjl-brands {
    gap: 24px;
  }

  .bjl-banner-brands-logos .bjl-brand img {
    max-height: 42px;
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .bjl-banner-brands-text {
    font-size: 24px;
    right: 3%;
    max-width: 60%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  }

  .bjl-banner-brands-banner::after {
    height: 6px;
  }

  .bjl-banner-brands-logos {
    max-width: 90%;
    padding: 16px 20px;
    margin-top: -24px;
    transform: perspective(800px) rotateX(-0.5deg);
  }

  .bjl-banner-brands-logos .bjl-brands {
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .bjl-banner-brands-logos .bjl-brands::-webkit-scrollbar {
    display: none;
  }

  .bjl-banner-brands-logos .bjl-brand {
    padding: 6px 12px;
    flex-shrink: 0;
  }

  .bjl-banner-brands-logos .bjl-brand img {
    max-height: 36px;
    max-width: 100px;
  }
}

/* ================= Download Box Section ================= */
.bjl-download-box {
  padding: 48px 0 !important;
  background: transparent !important;
}

.bjl-download-box__outer-title {
  text-align: center !important;
  color: #0f172a !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  margin: 0 auto 25px !important;
  max-width: 580px !important;
  padding: 0 8px !important;
}

.bjl-download-box__container {
  max-width: 580px !important;
  margin: 0 auto !important;
  padding: 40px !important;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.bjl-download-box__title {
  text-align: right !important;
  color: #ffffff !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  margin: 0 0 32px !important;
  line-height: 1.3 !important;
  border-bottom: 2px solid #363b5b;
  padding-bottom: 18px;
}

.bjl-download-box__buttons {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  column-gap: 100px !important;
  row-gap: 20px !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  text-align: -webkit-center;
}

.bjl-download-box__button {
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.bjl-download-box__button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.bjl-download-box__button-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .bjl-download-box {
    padding: 32px 0 !important;
  }

  .bjl-download-box__container {
    padding: 28px 20px !important;
    border-radius: 16px !important;
    margin: 0 16px !important;
  }

  .bjl-download-box__outer-title {
    font-size: 15px !important;
    margin: 0 16px 20px !important;
    max-width: none !important;
  }

  .bjl-download-box__title {
    font-size: 15px !important;
    margin-bottom: 24px !important;
    padding-bottom: 10px !important;
  }

  .bjl-download-box__buttons {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .bjl-download-box__container {
    margin: 0 12px !important;
    padding: 24px 16px !important;
  }

  .bjl-download-box__buttons {
    gap: 10px !important;
  }
}

/* ================= Download Box Template 2 ================= */
.bjl-download-box--template2 {
  padding: 48px 0 !important;
  background: transparent !important;
}

.bjl-download-box--template2 .bjl-download-box__outer-title {
  text-align: center !important;
  color: #0f172a !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 32px !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 8px !important;
}

.bjl-download-box--template2 .bjl-download-box__container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.bjl-download-box--template2 .bjl-download-box__title {
  display: none !important;
}

.bjl-download-box--template2 .bjl-download-box__content {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 60px !important;
  align-items: flex-start !important;
}

.bjl-download-box--template2 .bjl-download-box__images {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  order: 2 !important;
  align-self: center;
}

.bjl-download-box--template2 .bjl-download-box__app-image {
  max-width: 464px !important;
  width: 100%;
  height: auto !important;
  display: block !important;
}

.bjl-download-box--template2 .bjl-download-box__options {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  order: 1 !important;
  width: fit-content;
}

/* Tabs */
.bjl-download-box--template2 .bjl-download-box__tabs {
  display: flex !important;
  width: fit-content !important;
  gap: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 50px !important;
  border: 2px solid #969FA9 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.bjl-download-box--template2 .bjl-download-box__tab {
  flex: 1 !important;
  min-width: 180px !important;
  padding: 12px 24px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  color: #44464c  !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.bjl-download-box--template2 .bjl-download-box__tab:not(:last-child)::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 2px !important;
  height: 100% !important;
  background: #969FA9 !important;
}

.bjl-download-box--template2 .bjl-download-box__tab--active {
  background: #D7EAFF !important;
  box-shadow: none !important;
}

/* Tab Content */
.bjl-download-box--template2 .bjl-download-box__tab-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.bjl-download-box--template2 .bjl-download-box__panel {
  display: none !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.bjl-download-box--template2 .bjl-download-box__panel--active {
  display: flex !important;
}

/* Download Items */
.bjl-download-box--template2 .bjl-download-box__item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  text-decoration: none !important;
  color: #1e293b !important;
  transition: all 0.3s ease !important;
  border: 2px solid #bbbbbb !important;
  cursor: pointer !important;
  width: 80% !important;
  min-width: 288px !important;
  max-width: calc(var(--tabs-width, 360px) * 0.8) !important;
}

.bjl-download-box--template2 .bjl-download-box__item:hover {
  background: #f8fafc !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.bjl-download-box--template2 .bjl-download-box__item-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.bjl-download-box--template2 .bjl-download-box__item-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
  text-align: right;
}

.bjl-download-box--template2 .bjl-download-box__item-label {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
}

.bjl-download-box--template2 .bjl-download-box__item-prefix {
  font-weight: 600 !important;
  color: #4E5056 !important;
}

.bjl-download-box--template2 .bjl-download-box__item-name {
  font-weight: 600 !important;
  position: relative;
  top: 2px;
  right: 5px;
  font-size: 18px;
  color: #1A1A1E !important;
}

.bjl-download-box--template2 .bjl-download-box__item-version {
  font-size: 13px !important;
  color: #4E5056 !important;
  margin-top: 4px !important;
  font-weight: 600 !important;
}

/* Responsive - Template 2 */
@media (max-width: 992px) {
  .bjl-download-box--template2 .bjl-download-box__content {
    grid-template-columns: 1fr !important;
    gap: 50px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__app-image {
    margin: auto;
    max-width: 364px !important;
  }
  
  .bjl-download-box--template2 .bjl-download-box__images {
    order: 1 !important;
  }
  
  .bjl-download-box--template2 .bjl-download-box__options {
    order: 2 !important;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .bjl-download-box--template2 {
    padding: 32px 0 !important;
  }

  .bjl-download-box--template2 .bjl-download-box__container {
    padding: 0 16px !important;
    margin: 0 !important;
  }

  .bjl-download-box--template2 .bjl-download-box__outer-title {
    font-size: 22px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__title {
    font-size: 20px !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
  }
  
  .bjl-download-box--template2 .bjl-download-box__images {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__tabs {
    width: 100% !important;
    max-width: 100% !important;
  }

  .bjl-download-box--template2 .bjl-download-box__tab {
    padding: 14px 20px !important;
    font-size: 15px !important;
    min-width: auto !important;
  }
  
  .bjl-download-box--template2 .bjl-download-box__tab img {
    width: 18px !important;
    height: 18px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__item {
    padding: 16px 20px !important;
    width: 100% !important;
    min-width: auto !important;
    max-width: 100% !important;
  }

  .bjl-download-box--template2 .bjl-download-box__item-logo {
    width: 48px !important;
    height: 48px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__item-label {
    font-size: 15px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__item-version {
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .bjl-download-box--template2 .bjl-download-box__container {
    margin: 0 !important;
    padding: 0 12px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__outer-title {
    margin-bottom: 30px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__title {
    font-size: 18px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__tabs {
    gap: 0 !important;
    padding: 0 !important;
  }

  .bjl-download-box--template2 .bjl-download-box__tab {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  .bjl-download-box--template2 .bjl-download-box__tab img {
    width: 16px !important;
    height: 16px !important;
  }
  
  .bjl-download-box--template2 .bjl-download-box__item {
    padding: 14px 18px !important;
  }
  
  .bjl-download-box--template2 .bjl-download-box__item-logo {
    width: 44px !important;
    height: 44px !important;
  }
  
  .bjl-download-box--template2 .bjl-download-box__item-label {
    font-size: 14px !important;
  }
  
  .bjl-download-box--template2 .bjl-download-box__item-version {
    font-size: 12px !important;
  }
}

/* ================= Banner + Text + Download Section ================= */
.bjl-section-banner-text-download {
  padding: 0;
  overflow: visible;
  width: fit-content;
  margin: auto;
  border-radius: 16px;
  margin-block: 48px;
}

.bjl-btd-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 15px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

/* Download Section: Buttons + QR (2 columns, swapped order) */
.bjl-btd-left {
  display: grid;
  grid-template-columns: auto auto;
  gap: 24px;
  align-items: center;
  justify-content: left;
}

.bjl-btd-qr-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  order: 2;
}

.bjl-btd-qr-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bjl-btd-qr-code img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 12px;
}

.bjl-btd-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 12px;
  width: 100%;
  max-width: 360px;
  order: 1;
}

.bjl-btd-button {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
}

.bjl-btd-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.bjl-btd-button img {
  width: 100%;
  height: auto;
  display: block;
}

/* Center: Text Content */
.bjl-btd-center {
  color: #ffffff;
}

.bjl-btd-title {
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px 0;
  color: #ffffff !important;
}

.bjl-btd-subtitle {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Phone Mockup (protruding from container - left and top) */
.bjl-btd-right {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  top: -40px;
  z-index: 2;
  margin-bottom: -40px;
}

.bjl-btd-phone {
  max-width: 340px;
  width: 100%;
}

.bjl-btd-phone img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Tablet responsive */
@media (max-width: 1024px) {
  .bjl-section-banner-text-download {
    padding: 0;
    overflow: hidden;
    width: auto;
    border-radius: 0;
  }

  .bjl-btd-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding: 32px 20px 0;
  }

  .bjl-btd-left {
    order: 1;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 24px;
  }

  .bjl-btd-qr-wrapper {
    display: none;
  }

  .bjl-btd-center {
    order: 2;
  }

  .bjl-btd-right {
    order: 3;
    left: 0;
    top: 0;
    margin-bottom: 0;
    justify-content: center;
  }

  .bjl-btd-title {
    font-size: 28px;
  }

  .bjl-btd-subtitle {
    font-size: 15px;
  }

  .bjl-btd-phone {
    max-width: 240px;
  }

  .bjl-btd-qr-code img {
    width: 120px;
    height: 120px;
  }

  .bjl-btd-buttons {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(140px, 180px));
    justify-content: center;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .bjl-section-banner-text-download {
    padding: 0;
    overflow: hidden;
  }

  .bjl-btd-wrapper {
    gap: 24px;
    padding: 32px 16px 0;
  }

  .bjl-btd-left {
    order: 1;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bjl-btd-qr-wrapper {
    display: none;
  }

  .bjl-btd-right {
    order: 3;
    left: 0;
    top: 0;
    margin-bottom: 0;
  }

  .bjl-btd-title {
    font-size: 24px;
  }

  .bjl-btd-subtitle {
    font-size: 14px;
  }

  .bjl-btd-qr-code img {
    width: 100px;
    height: 100px;
  }

  .bjl-btd-buttons {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(120px, 150px));
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .bjl-btd-wrapper {
    padding: 24px 12px 0;
  }

  .bjl-f3-qr-box {
    width: -webkit-fill-available;
  }

  .bjl-btd-title {
    font-size: 20px;
  }

  .bjl-btd-subtitle {
    font-size: 13px;
  }

  .bjl-btd-qr-code img {
    width: 90px;
    height: 90px;
  }

  .bjl-btd-buttons {
    grid-template-columns: repeat(2, minmax(100px, 130px));
  }
}

/* ===== Slider Section Styles ===== */
.bjl-section-slider {
  position: relative;
}

.bjl-slider-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.bjl-slider-subtitle {
  text-align: center;
  margin-top: 0;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 16px;
}

/* Each slot wrapper can have its own slider */
.bjl-slot-wrapper {
  position: relative;
  overflow: hidden;
}

.bjl-slot-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
}

.bjl-slot-slider-container:active {
  cursor: grabbing;
}

.bjl-slot-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bjl-slot-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Transition Effects */
/* Fade effect (default) */
[data-effect="fade"] .bjl-slot-slide {
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

/* Slide effect */
[data-effect="slide"] .bjl-slot-slide {
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

[data-effect="slide"] .bjl-slot-slide.active {
  transform: translateX(0);
}

[data-effect="slide"] .bjl-slot-slide.slide-out-left {
  transform: translateX(100%);
}

[data-effect="slide"] .bjl-slot-slide.slide-out-right {
  transform: translateX(-100%);
}

/* Zoom effect */
[data-effect="zoom"] .bjl-slot-slide {
  transform: scale(0.8);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}


[data-effect="zoom"] .bjl-slot-slide.active {
  transform: scale(1);
}

/* Flip effect */
[data-effect="flip"] .bjl-slot-slide {
  transform: rotateY(90deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  transform-origin: center center;
}

[data-effect="flip"] .bjl-slot-slide.active {
  transform: rotateY(0deg);
}

/* Cube effect */
[data-effect="cube"] .bjl-slot-slide {
  transform: scale(0.7) rotateY(45deg);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
  transform-origin: center center;
}

[data-effect="cube"] .bjl-slot-slide.active {
  transform: scale(1) rotateY(0deg);
}

/* Reuse banner grid structure */
.bjl-section-slider .bjl-banner-grid { 
  display: grid; 
  gap: 12px; 
  grid-template-columns: repeat(2, minmax(0,1fr)); 
  grid-auto-flow: row dense; 
}

@media (min-width: 1024px){ 
  .bjl-section-slider .bjl-banner-grid { 
    grid-template-columns: repeat(4, minmax(0,1fr)); 
  } 
}

.bjl-section-slider .bjl-banner-item { 
  position: relative; 
  overflow: hidden; 
  border-radius: 12px; 
  background: #eee; 
  height: var(--bjl-banner-h, auto); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bjl-section-slider .bjl-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.bjl-section-slider .bjl-slider-img,
.bjl-slot-slide img { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.bjl-section-slider .bjl-slider-link, 
.bjl-section-slider .bjl-slider-btn,
.bjl-slot-slide a,
.bjl-slot-slide button { 
  display: block; 
  width: 100%; 
  height: 100%; 
  padding: 0; 
  border: none; 
  background: transparent; 
  cursor: pointer; 
}

/* Size variants - Desktop */
@media (min-width: 768px) {
  .bjl-section-slider .bjl-banner-item.size-big-short   { --bjl-banner-h: 300px; }
  .bjl-section-slider .bjl-banner-item.size-med-short   { --bjl-banner-h: 180px; }
  .bjl-section-slider .bjl-banner-item.size-small-short { --bjl-banner-h: 180px; }
  .bjl-section-slider .bjl-banner-item.size-med-tall    { --bjl-banner-h: 376px; }
}

/* Layout variants */
.bjl-section-slider.variant-big_short .bjl-banner-item { 
  grid-column: 1 / -1; 
}

.bjl-section-slider.variant-two_medium_short .bjl-banner-item { 
  grid-column: span 2; 
}

.bjl-section-slider.variant-four_small_short .bjl-banner-item { 
  grid-column: span 1; 
}

.bjl-section-slider.variant-one_med_short_two_small_short .bjl-banner-item.i1 { 
  grid-column: span 2; 
}
.bjl-section-slider.variant-one_med_short_two_small_short .bjl-banner-item.i2,
.bjl-section-slider.variant-one_med_short_two_small_short .bjl-banner-item.i3 { 
  grid-column: span 1; 
}

.bjl-section-slider.variant-four_small_tall_plus_four_small_tall .bjl-banner-item { 
  grid-column: span 1; 
}

.bjl-section-slider.variant-one_med_tall_four_small_tall .bjl-banner-item.i1 { 
  grid-column: span 2; 
  grid-row: span 2; 
}
.bjl-section-slider.variant-one_med_tall_four_small_tall .bjl-banner-item.i2,
.bjl-section-slider.variant-one_med_tall_four_small_tall .bjl-banner-item.i3,
.bjl-section-slider.variant-one_med_tall_four_small_tall .bjl-banner-item.i4,
.bjl-section-slider.variant-one_med_tall_four_small_tall .bjl-banner-item.i5 { 
  grid-column: span 1; 
}

.bjl-section-slider.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i1 { 
  grid-column: span 2; 
  grid-row: span 2; 
}
.bjl-section-slider.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i2 { 
  grid-column: span 2; 
}
.bjl-section-slider.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i3,
.bjl-section-slider.variant-one_med_tall_one_med_short_two_small_short .bjl-banner-item.i4 { 
  grid-column: span 1; 
}

.bjl-section-slider.variant-one_med_tall_two_med_short .bjl-banner-item.i1 { 
  grid-column: span 2; 
  grid-row: span 2; 
}
.bjl-section-slider.variant-one_med_tall_two_med_short .bjl-banner-item.i2,
.bjl-section-slider.variant-one_med_tall_two_med_short .bjl-banner-item.i3 { 
  grid-column: span 2; 
}

/* Navigation Buttons - Per Slot */
.bjl-slot-wrapper .bjl-slot-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
}

/* Override carousel button rotation for slider */
.bjl-slot-wrapper .bjl-carousel-prev {
  right: 8px;
  left: auto;
  transform: translateY(-50%) rotate(0deg);
  background-image: url('../icons/arrow-next.svg');
}

.bjl-slot-wrapper .bjl-carousel-next {
  left: 8px;
  right: auto;
  transform: translateY(-50%) rotate(0deg);
  background-image: url('../icons/arrow-prev.svg');
}

@media (max-width: 767px) {
  .bjl-slot-wrapper .bjl-carousel-btn {
    width: 32px;
    height: 32px;
    background-size: 14px 14px;
  }
  
  .bjl-slot-wrapper .bjl-carousel-prev {
    right: 4px;
  }
  
  .bjl-slot-wrapper .bjl-carousel-next {
    left: 4px;
  }
}

/* Pagination Dots - On Banner (like image) */
.bjl-slot-pagination {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  padding: 0;
}

.bjl-slot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bjl-slot-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.bjl-slot-dot.active {
  background: #ffffff;
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .bjl-slot-pagination {
    bottom: 12px;
    gap: 6px;
  }
  
  .bjl-slot-dot.active {
    width: 24px;
  }
}

/* ========================================
   Products Template 2 Styles
   ======================================== */

/* Carousel Container */
.bjl-products-t2 .bjl-carousel {
  position: relative;
  width: 100%;
  min-height: 400px;
  contain: layout;
}

/* Carousel Viewport for Products - Native Scroll */
.bjl-products-t2 .bjl-carousel-viewport {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  touch-action: pan-y pan-x !important;
  -ms-touch-action: pan-y pan-x !important;
  width: 100%;
}

.bjl-products-t2 .bjl-carousel-viewport::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari */
}

/* Carousel Track for Products */
.bjl-products-t2 .bjl-carousel-track {
  display: flex !important;
  gap: 20px;
  direction: ltr !important;
  flex-direction: row-reverse !important;
  will-change: auto !important;
  transform: none !important;
  transition: none !important;
  margin-block: 0 !important;
}

.bjl-products-t2 .bjl-product-card-t2 {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 0px 2px rgb(189 189 189 / 38%);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  flex-shrink: 0;
  position: relative;
  contain: layout;
  max-height: 400px;
}

/* Out of stock: grayscale card visuals */
.bjl-products-t2 .bjl-product-card-t2.is-outofstock,
.bjl-products-archive-grid .bjl-product-card-t2.is-outofstock {
  filter: grayscale(1);
}
.bjl-section.bjl-products-t2.amazing { position: relative !important; overflow: hidden !important; margin-top: 60px !important; padding: 15px 0 0 !important; background: linear-gradient(90deg, hsla(236, 100%, 8%, 1) 0%, hsla(211, 100%, 28%, 1) 100%) !important; }

.bjl-section.bjl-products-t2.amazing .bjl-card_btn.bjl-viewall {
    border-color: #fff !important;
    transition: none !important;
}

.bjl-section.bjl-products-t2.amazing .bjl-card_btn.bjl-viewall:hover {
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

.bjl-section.bjl-products-t2.amazing .bjl-card_btn.bjl-viewall img {
  transform: rotateZ(225deg) !important;
  transition: none !important;
}

/* Products Template 2: Remove container padding on mobile/tablet */
@media (max-width: 1023px) { 
  .bjl-products-t2 .bjl-container { 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
  }
  /* Add 16px padding for title, subtitle and view-all button */
  .bjl-products-t2 .bjl-container > h2,
  .bjl-products-t2 .bjl-container > p,
  .bjl-products-t2 .bjl-container > div:has(h2),
  .bjl-products-t2 .bjl-container > div:has(.bjl-viewall) { 
    padding-left: 16px !important; 
    padding-right: 16px !important; 
  }
}
/* Products Template 2: Ensure proper container padding on desktop */
@media (min-width: 1024px) {
  .bjl-products-t2 .bjl-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Products Template 2: Add padding for mobile/tablet carousel */
@media (max-width: 1023px) {
  .bjl-products-t2 .bjl-carousel-track {
    padding-inline-start: 16px !important;
    padding-inline-end: 0 !important;
  }
  /* Add invisible element at end for padding effect */
  .bjl-products-t2 .bjl-carousel-track::after {
    content: "" !important;
    flex: 0 0 1px !important;
  }
}

/* Fixed card width: 240px for ALL screen sizes */
.bjl-products-t2 .bjl-product-card-t2 {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
}

/* Tablet: Adjust gap */
@media (min-width: 768px) and (max-width: 1023px) {
  .bjl-products-t2 .bjl-carousel-track {
    gap: 16px !important;
  }
}

/* Mobile: Smaller gap and adjusted styling */
@media (max-width: 767px) {
  .bjl-products-t2 .bjl-carousel-track {
    gap: 12px !important;
  }
  
  .bjl-products-t2 .bjl-product-link {
    min-height: 360px;
  }
  
  .bjl-products-t2 .bjl-product-name-t2 {
    font-size: 13px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
  }
  
  .bjl-products-t2 .bjl-price-amazing-t2,
  .bjl-products-t2 .bjl-price-regular-t2 {
    font-size: 15px;
  }
  
  .bjl-products-t2 .bjl-discount-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .bjl-products-t2 .bjl-product-store-name-t2 {
    font-size: 11px;
  }
}

/* Products Template 2: Hide prev/next buttons on mobile */
@media (max-width: 767px) {
  .bjl-products-t2 .bjl-carousel[data-carousel="products"] .bjl-carousel-btn {
    display: none !important;
  }
}

.bjl-products-t2 .bjl-product-card-t2:hover {
  border-color: #d1d5db;
  transition: none !important;
  transform: none !important;
}

.bjl-products-t2 .bjl-product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.bjl-products-t2 .bjl-product-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
  font-family: inherit;
  width: 100%;
}

/* Discount Badge - In Column */
.bjl-products-t2 .bjl-discount-badge {
  background: #ef4444;
  color: #fff;
  padding: 4px 8px 2px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
  align-self: flex-end;
}

/* Product Image Container */
.bjl-products-t2 .bjl-product-img-t2 {
  width: 160px;
  height: 160px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 42px auto 10px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  border-radius: 8px;
  position: relative;
}

/* Store Logo - On Top Left of Card */
.bjl-products-t2 .bjl-store-logo-t2-card {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  min-width: 30px;
  height: 30px;
  max-width: 80px;
  box-sizing: border-box;
  border: 1px solid #e9e9e9;
}

.bjl-products-t2 .bjl-store-logo-t2-card img {
  max-width: 68px;
  width: auto;
  height: 20px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.bjl-products-t2 .bjl-product-card-t2:hover .bjl-store-logo-t2-card img {
  opacity: 1;
  transition: none !important;
}

/* Purchase Method Badge - On Top Right of Card */
.bjl-products-t2 .bjl-purchase-method-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.3s ease;
  height: 30px;
}

/* آنلاین+حضوری */
.bjl-products-t2 .bjl-purchase-method-badge.bjl-purchase-online_offline {
  background: rgb(232 231 246);
  color: #2216A9;
  box-sizing: border-box;
}

/* آنلاین */
.bjl-products-t2 .bjl-purchase-method-badge.bjl-purchase-online {
  background: rgb(233 240 232);
  color: #276D20;
  box-sizing: border-box;
}

/* حضوری */
.bjl-products-t2 .bjl-purchase-method-badge.bjl-purchase-offline {
  background: rgb(250 246 232);
  color: #bf9513;
  box-sizing: border-box;
}

/* Product Body */
.bjl-products-t2 .bjl-product-body-t2 {
  direction: rtl;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 168px;
  border-radius: 0 0 16px 16px;
  margin: -1px;
}

/* Product Name - Fixed Height */
.bjl-products-t2 .bjl-product-name-t2 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Store Name with Icon */
.bjl-products-t2 .bjl-product-store-name-t2 {
  display: flex;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  min-height: 38px;
  max-height: 38px;
  align-items: start;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bjl-products-t2 .bjl-product-store-name-t2 svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Price Section Wrapper - 2 Columns */
.bjl-products-t2 .bjl-product-prices-wrapper-t2 {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  min-height: 40px;
}

/* Price Section - Column 1 */
.bjl-products-t2 .bjl-product-prices-t2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Original Price (crossed out) */
.bjl-products-t2 .bjl-price-original-t2 {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  height: 20px;
  position: absolute;
  bottom: 43px;
}

.bjl-products-t2 .bjl-price-original-t2:after {
  content: "";
  background: #9ca3af;
  width: auto;
  height: 1px;
  display: block;
  top: -12px;
  position: relative;
}

/* Amazing Price (red) */
.bjl-products-t2 .bjl-price-amazing-t2 {
  font-size: 16px;
  color: #ef4444;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
}

/* Regular Price (no discount) */
.bjl-products-t2 .bjl-price-regular-t2 {
  font-size: 16px;
  color: #111827;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Currency Label */
.bjl-products-t2 .bjl-price-currency {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
}

.bjl-products-t2 .bjl-product-prices-t2[data-stock="outofstock"] {
  align-items: center;
  color: #837e7e;
  font-size: 14px;
  position: relative;
  padding: 10px 0;
  display: contents;
}

.bjl-products-t2 .bjl-product-prices-t2[data-stock="outofstock"]::before {
  display: block;
  content: "";
  width: 40px;
  height: 1px;
  background: #cbcbcb;
  border-radius: 50px;
  margin-bottom: 10px;
}

.bjl-products-t2 .bjl-product-prices-t2[data-stock="outofstock"]::after {
  width: -webkit-fill-available;
  height: 1px;
  background: #cbcbcb;
  content: "";
  border-radius: 50px;
  margin-bottom: 10px;
}

/* ========================================
   Store Info Section Styles
   ======================================== */

.bjl-store-info-card {
  display: flex !important;
  flex-direction: row-reverse !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: inset 0 0px 0px 1px #e5e7eb !important;
}

/* Content Side (Right in RTL) */
.bjl-store-info-content {
  flex: 1 !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
}

.bjl-store-info-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.bjl-store-info-text {
  flex: 1 !important;
}

.bjl-store-info-name {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* Badges container for purchase method + credit types */
.bjl-store-info-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

/* About Store Section */
.bjl-store-info-about {
  margin-top: 16px !important;
}

.bjl-store-info-about-title {
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.4 !important;
}

.bjl-store-info-about-content {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: #374151 !important;
  padding-bottom: 16px !important;
}

.bjl-store-info-about-content p {
  margin: 0 0 8px 0 !important;
  text-align: justify !important;
}

.bjl-store-info-about-content p:last-child {
  margin-bottom: 0 !important;
}

.bjl-store-info-about-content ul,
.bjl-store-info-about-content ol {
  margin: 8px 0 !important;
  padding-right: 20px !important;
}

.bjl-store-info-about-content li {
  margin-bottom: 4px !important;
}

.bjl-store-info-about-content a {
  color: #2563eb !important;
  text-decoration: underline !important;
}

.bjl-store-info-about-content a:hover {
  color: #1d4ed8 !important;
}

/* Purchase Button */
.bjl-store-info-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 12px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 40px !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.bjl-store-info-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

/* Guide Link */
.bjl-store-info-guide {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.bjl-store-info-guide:hover {
  color: #1d4ed8 !important;
}

.bjl-store-info-guide svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

/* Categories */
.bjl-store-info-categories {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 16px !important;
  border-top: 1px solid #f3f4f6 !important;
}

.bjl-store-info-cat-tag {
  display: inline-block !important;
  padding: 6px 14px !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 20px !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.bjl-store-info-cat-tag:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
}

/* Media Side (Left in RTL) - Exactly like .bjl-store-image */
.bjl-store-info-media {
  width: 280px !important;
  flex-shrink: 0 !important;
}

.bjl-store-info-banner {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px;
  margin: 10px;
}

.bjl-store-info-banner-placeholder {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
}

/* Logo - Exactly like .bjl-store-logo */
.bjl-store-info-logo {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 12px !important;
  padding: 8px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
  max-width: 65px !important;
  min-width: 35px !important;
  height: 35px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.bjl-store-info-logo img {
  width: auto !important;
  height: 20px !important;
  max-width: 55px !important;
  object-fit: contain !important;
}

/* Credit Type Badge - in badges container */
.bjl-store-info-card .bjl-credit-type-badge {
  padding: 5px 12px !important;
  border-radius: 50px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: none !important;
  height: 30px !important;
  box-sizing: border-box !important;
}

/* Purchase Method Badge - Exactly like .bjl-store-card .bjl-purchase-method-badge */
.bjl-store-info-card .bjl-purchase-method-badge {
  padding: 5px 12px !important;
  border-radius: 50px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
  height: 30px !important;
  box-sizing: border-box !important;
  width: fit-content !important;
}

/* آنلاین+حضوری */
.bjl-store-info-card .bjl-purchase-method-badge.bjl-purchase-online_offline {
  background: rgb(232 231 246) !important;
  color: #2216A9 !important;
}

/* آنلاین */
.bjl-store-info-card .bjl-purchase-method-badge.bjl-purchase-online {
  background: rgb(233 240 232) !important;
  color: #276D20 !important;
}

/* حضوری */
.bjl-store-info-card .bjl-purchase-method-badge.bjl-purchase-offline {
  background: rgb(250 246 232) !important;
  color: #bf9513 !important;
}
@media (min-width: 769px) {
  .bjl-store-info-banner {
    aspect-ratio: auto !important;
    min-height: 200px !important;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .bjl-store-info-card {
    flex-direction: column !important;
  }
  
  .bjl-store-info-media {
    width: 100% !important;
    order: -1 !important;
  }
  
  .bjl-store-info-banner {
    border-radius: 16px 16px 0 0 !important;
  }
  
  .bjl-store-info-content {
    padding: 20px 16px !important;
  }
  
  .bjl-store-info-header {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .bjl-store-info-btn {
    width: -webkit-fill-available !important;
  }
  
  .bjl-store-info-name {
    font-size: 18px !important;
  }
}

/* ========================================
   Store Info Popup Styles
   ======================================== */
body.bjl-popup-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

.bjl-store-info-popup {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.bjl-store-info-popup.is-open {
  display: flex !important;
}

.bjl-store-info-popup-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px) !important;
}

.bjl-store-info-popup-content {
  position: relative !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 24px !important;
  max-width: 480px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  z-index: 1 !important;
}

.bjl-store-info-popup-close {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  background: #f3f4f6 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.bjl-store-info-popup-close:hover {
  background: #e5e7eb !important;
}

.bjl-store-info-popup-close svg {
  width: 20px !important;
  height: 20px !important;
  color: #6b7280 !important;
}

.bjl-store-info-popup-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 20px 0 !important;
  padding-left: 48px !important;
}

.bjl-store-info-popup-section {
  margin-bottom: 20px !important;
  padding: 16px !important;
  background: #f9fafb !important;
  border-radius: 12px !important;
}

.bjl-store-info-popup-section:last-child {
  margin-bottom: 0 !important;
}

.bjl-store-info-popup-section-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin: 0 0 12px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.bjl-store-info-popup-section-title svg {
  width: 20px !important;
  height: 20px !important;
  color: #6b7280 !important;
  flex-shrink: 0 !important;
}

.bjl-store-info-popup-btn {
  display: block !important;
  width: 100% !important;
  padding: 12px 20px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
}

.bjl-store-info-popup-btn-online {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
}

.bjl-store-info-popup-btn-online:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.bjl-store-info-popup-addresses {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.bjl-store-info-popup-address-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  background: #fff !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  overflow: hidden !important;
}

.bjl-store-info-popup-address {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px !important;
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.bjl-store-info-popup-directions-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-right: 1px solid #e5e7eb !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  outline: none !important;
  border: none !important;
  height: 38px !important;
  margin-left: 5px !important;
  margin-top: 5px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
}

.bjl-store-info-popup-directions-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: #fff !important;
}

.bjl-store-info-popup-directions-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.bjl-store-info-popup-address-num {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bjl-store-info-popup-address-text {
  font-size: 13px !important;
  color: #374151 !important;
  line-height: 1.6 !important;
  align-self: center !important;
}

.bjl-store-info-popup-no-address {
  font-size: 13px !important;
  color: #6b7280 !important;
  text-align: center !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .bjl-store-info-popup {
    padding: 0 !important;
  }
  
  .bjl-store-info-popup-overlay {
    background: #fff !important;
    backdrop-filter: none !important;
  }
  
  .bjl-store-info-popup-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: unset !important;
    max-height: unset !important;
    height: auto !important;
    border-radius: 0 !important;
    padding: 16px !important;
    overflow-y: auto !important;
  }

  .bjl-store-info-popup-section {
    padding: 0 !important;
  }
  
  .bjl-store-info-popup-close {
    top: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
  }
  
  .bjl-store-info-popup-title {
    font-size: 16px !important;
  }
  
  .bjl-store-info-popup-directions-btn {
      padding: 12px 12px !important;
      font-size: 11px !important;
  }
}

/* ================= Global Visibility Helpers ================= */
/* Hide on desktop (screens >= 769px) */
@media (min-width: 993px) {
  .bjl-hide-desktop { display: none !important; }
}
/* Hide on mobile (screens <= 768px) */
@media (max-width: 992px) {
  .bjl-hide-mobile { display: none !important; }
}

@media (max-width: 1024px) {
body.page-id-3813 section.bjl-section.bjl-hero, body.page-id-3813 main.bjl-landing > .bjl-section-anchor:first-of-type:has(.bjl-hero) > .bjl-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
  }
}

/* ================= Comment Rating Stars ================= */
/* Rating input stars */
.bjl-rating-input {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 14px !important;
  border: 1px solid #e2e8f0;
}

.bjl-rating-stars--input {
  direction: rtl;
}

.bjl-star-label {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.bjl-star-label:hover {
  transform: scale(1.15);
}

.bjl-star-label:active {
  transform: scale(0.95);
}

/* Default state - all stars gray */
.bjl-star-svg path {
  fill: #e0e0e0;
  stroke: #e0e0e0;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Filled state - gold stars */
.bjl-star-label.is-filled .bjl-star-svg path,
.bjl-star-label.is-hovered .bjl-star-svg path {
  fill: #ffc107;
  stroke: #ffc107;
}

/* Hover effect - slightly brighter */
.bjl-star-label.is-hovered .bjl-star-svg path {
  fill: #ffd54f;
  stroke: #ffd54f;
}

/* Rating text labels */
.bjl-rating-text {
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Average rating display */
.bjl-comments__avg-rating {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #fcd34d;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .bjl-rating-input {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: space-between !important;
    min-width: 100% !important;
  }
  
  .bjl-rating-input .bjl-rating-label {
    font-size: 13px !important;
    white-space: nowrap;
  }
  
  .bjl-rating-input .bjl-star-label {
    width: 20px !important;
    height: 20px !important;
  }
  
  .bjl-rating-input .bjl-star-svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .bjl-rating-input .bjl-rating-text {
    display: none !important;
  }
  
  .bjl-comments__subtitle-wrap {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  .bjl-comments__avg-rating {
    width: auto;
  }
}
