body.page-id-2586 section.bjl-section.bjl-hero {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: #060932;
}

body.page-id-2586 .bjl-hero_content {
  display: none;
}

body.page-id-2586 .bjl-hero_inner {
gap: 0;
}

body.page-id-2586 .bjl-section-banner .bjl-banner-item.size-big-short {
 --bjl-banner-h: auto;
 background: transparent;
}

body.page-id-2586 section.bjl-section.bjl-section-banner.variant-big_short h2 {
  text-align: center;
}

body.page-id-2586 section.bjl-section.bjl-hero {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: #060932;
}

body.page-id-2586 .bjl-hero_content {
  display: none;
}

body.page-id-2586 .bjl-hero_inner {
gap: 0;
}

body.page-id-2586 .bjl-section-banner .bjl-banner-item.size-big-short {
 --bjl-banner-h: auto;
 background: transparent;
}

body.page-id-2586 section.bjl-section.bjl-section-banner.variant-big_short h2 {
  text-align: center;
}

body.page-id-2586 .bjl-section {
  padding: 48px 0 0;
  box-shadow: none !important;
}

body.page-id-2586 .bjl-banner-item.i4.size-small-short {
  display: none !important;
}

body.page-id-2586 .bjl-section-banner .bjl-banner-item.size-small-short {
  --bjl-banner-h: auto;
  background: transparent;
}

body.page-id-2586 .bjl-section-banner .bjl-banner-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-id-2586 section.bjl-section.bjl-section-banner.variant-four_small_short {
  padding: 48px 0;
}

@media (min-width: 1025px) {
body.page-id-2586 .bjl-section-banner .bjl-banner-item.size-small-short {
    width: 75%;
    margin: auto;
}    
}

body.page-id-2586 .bjl-footer {
  padding: 13.5px 0 !important;
}

body.page-id-3813 section.bjl-section.bjl-hero {
  margin-top: 0;
}
@media (max-width: 1024px) {
body.page-id-3813 section.bjl-section.bjl-hero {
  padding-top: 0;
}
}

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: 48px 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;
}

/* 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: 48px 0; }
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-hero { padding-top: 20px; }
  .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)); } }

/* Carousel base */
.bjl-carousel { position: relative; }
.bjl-carousel-viewport { overflow: hidden; touch-action: pan-y; -ms-touch-action: pan-y; }
.bjl-carousel-track { display: flex; gap: 16px; will-change: transform; transition: transform .2s ease !important; direction: ltr; margin-block: 5px; }
.bjl-carousel-viewport { cursor: grab; }
.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: 50%; 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; }
.bjl-card_img { aspect-ratio: 1/1; background:#e5e7eb; background-size:cover; background-position:center; max-width: 200px; max-height: 200px; margin: auto; }
.bjl-card_body { direction: rtl; padding: 12px 16px; }
.bjl-badge { display:inline-flex; align-items:center; gap:6px; background:#f3f4f6; color:#111827; padding: 2px 10px; border-radius: 999px; font-size:12px; }

/* Product card typography */
/* Name */
.bjl-card_body > div:first-child > div:first-child { font-size: 14px; font-weight: 600 !important; }
/* 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: 28px; }
.steps-desktop .step-item.is-bottom::before { top: 50%; height: 28px; }

.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; }
.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); }

/* 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; }
.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');
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 12px center;
  padding: 10px 36px 10px 10px;
  height: 46px;
  font-size: 16px;
}

.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); 
  opacity: 0; 
  visibility: hidden; 
  transition: opacity .2s ease, visibility .2s ease; 
  z-index: 1000; 
}
.bjl-header2 .bjl-h2-item.is-open > .bjl-h2-mega { 
  opacity: 1; 
  visibility: visible; 
}
.bjl-header2 .bjl-h2-mega-inner { padding: 14px; }
.bjl-header2 .bjl-h2-sub { display:flex; list-style:none; margin:0; padding:0; flex-flow: wrap; }
.bjl-header2 .bjl-h2-sublink, button.bjl-h2-mo-sublink.bjl-h2-mo-sublink--btn, .bjl-h2-mo-sub a { display:block; padding:8px 10px; border-radius: 10px; color:#0f172a; font-weight:600; font-size: 14px; border: none; background: transparent; width: max-content; }
.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; }
.bjl-header2 .bjl-h2-search.has-text .bjl-h2-clear { opacity: 1; visibility: visible; }
.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:#ffffff; z-index: 99999; display: block; height: 100vh; }
.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; }
.bjl-h2-mo-nav { padding: 12px; height: calc(100vh - 64px); overflow-y: auto; }
.bjl-h2-mo-nav ul { list-style:none; margin:0; padding:0; }
.bjl-h2-mo-item + .bjl-h2-mo-item { border-top: 1px solid #f1f5f9; }
.bjl-h2-mo-row { display:flex; align-items:center; justify-content: space-between; padding: 12px 4px; }
.bjl-h2-mo-link { font-weight:800; color:#0f172a; font-size: 16px; line-height: normal; }
.bjl-h2-mo-toggle { width:32px; height:32px; border:none; border-radius:8px; background:transparent url('../icons/arrow-next.svg') center/14px 14px no-repeat; transform: rotate(90deg); transition: transform 0.2s ease; }
.bjl-h2-mo-sub { padding: 0 8px 12px; }
.bjl-h2-mo-sub[hidden] { display:none !important; }
.bjl-h2-mo-sub a { display:block; padding: 8px 8px; border-radius:10px; color:#0f172a; }
.bjl-h2-mo-sub a:hover { background:#f3f4f6; }

/* Mobile menu: open state styles */
#bjl-h2-mobile-menu .bjl-h2-mo-item.has-children.is-open > .bjl-h2-mo-row {
  background: #e9e9e9;
  border-radius: 8px 8px 0 0;
}
#bjl-h2-mobile-menu .bjl-h2-mo-item.has-children.is-open > .bjl-h2-mo-sub {
  background: #e9e9e9;
  border-radius: 0 0 8px 8px;
  border-top: 1px dashed #c1c1c1;
}

li.bjl-h2-mo-item.has-children.is-open {
  border-top-color: transparent !important;
}

.bjl-h2-mo-search { padding: 14px; position: relative; height: calc(100vh - 64px); overflow-y: auto; perspective: none; }
.bjl-h2-mo-input { width: 100%; padding: 12px 40px 12px 14px; border:1px solid #e5e7eb; border-radius: 12px; }
/* Clear button for mobile search */
.bjl-h2-mo-clear { position: absolute; left: 20px; top: 37px; 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; }
.bjl-h2-mo-search.has-text .bjl-h2-mo-clear { opacity: 1; visibility: visible; }
.bjl-h2-mo-suggest { margin-top: 10px; max-height: 100%; overflow: hidden; }
.bjl-h2-mo-suggest[hidden] { display:none !important; }

/* Hide default scrollbar for mobile */
.bjl-h2-mo-suggest::-webkit-scrollbar {
  display: none;
}
.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-header2 .bjl-h2-mo-search:focus-within .bjl-h2-mo-input {
  background-image: none !important;
}
.bjl-header2 .bjl-h2-mo-input:focus,
.bjl-header2 .bjl-h2-mo-input:focus-visible {
  background: #fff none !important;
}
.bjl-header2 .bjl-h2-mo-search::before {
  content: "";
  position: absolute;
  right: 27px; /* 12px from input edge + 14px container padding */
  top: 37px; /* align to the vertical center of input (matches clear button) */
  width: 16px;
  height: 16px;
  background: url('../icons/search-active.svg') center / 16px 16px no-repeat;
  transform: translate3d(0,-50%,0) rotateY(0deg);
  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;
  display: none;
}
.bjl-header2 .bjl-h2-mo-search:focus-within::before { display: block; }

/* Mobile suggest: hidden by default; show whenever mobile search is active */
.bjl-header2 .bjl-h2-mo-suggest { display: none !important; }
.bjl-header2 .bjl-h2-mo-search.is-active .bjl-h2-mo-suggest { display: block !important; }

/* 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;
  padding-left: 12px;
  margin-left: -12px;
}

.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; }
.result-card .result-rows .value { color:#0f172a; font-weight:600; flex: 1; text-align: left; }
@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; }
}
/* 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; }
img, button, a, .bjl-footer_bar { user-select: none; }

/* ================= Article Section ================= */
.bjl-article { padding: 10px 0; }
.bjl-article__title { font-weight: 600 !important; font-size: 22px !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; }

/* 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; }
}
/* 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: relative;
  justify-self: left !important;
  transform: none !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; }

/* Fixed state will be toggled via JS when header passes infobar */
.bjl-article__sidebar.is-fixed {
  position: fixed;
  width: 320px;
}

/* When the fixed sidebar would overflow its container bottom, clamp it here */
.bjl-article__sidebar.is-bottom-stuck {
  position: absolute;
  left: 0 !important;
}

@media (max-width: 1200px) {
  .bjl-article__sidebar.is-fixed {
    left: 46px;
  }
}

/* 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; }
body.single .bjl-landing { background: #ffffff !important; }

/* Strengthen article styles with !important as requested */
.bjl-article__inner { margin: 0 auto !important; }
section.bjl-section.bjl-hero, section.bjl-section.bjl-article { margin-top: 64px; }
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 strong, .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) */
.bjl-archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bjl-archive-title { font-weight: 800; font-size: 22px !important; margin: 0; text-align: right; overflow-wrap: anywhere; }
.bjl-archive-total { white-space: nowrap; color: #6b7280; font-weight: 500; }

/* 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; }
.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: 18px !important; }
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; justify-content: center; min-height: auto !important; max-width: 1200px !important; margin: auto; background: #fff !important; }
.bjl-404-flex > footer { flex: 0 0 auto; }
.bjl-404-flex > main nav.bjl-article__breadcrumb.bjl-nf-breadcrumb { margin-top: 73px !important; max-width: 1200px !important; }
/* 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; }