/* ======================================
   Baloot Consulting Checklist
====================================== */

.baloot-consulting-content ul,
.baloot-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

/* مورد 1: تنفس بهتر قبل از لیست در متن کنار فرم */
.baloot-consulting-sidecopy > ul {
  margin-top: 2rem;
}

.baloot-consulting-content li,
.baloot-checklist li {
  position: relative;
  padding-right: 28px; /* RTL */
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
}

/* bullet custom (خط نارنجی بلوط) */
.baloot-consulting-content li::before,
.baloot-checklist li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.85em;
  width: 14px;
  height: 2px;
  background-color: #f08a24;
}

.baloot-consulting-content li:last-child,
.baloot-checklist li:last-child {
  margin-bottom: 0;
}


/* ======================================
   Baloot Consulting Form - Compact & On-brand
====================================== */

/* فاصله بین فیلدها */
.baloot-consulting-form .form-group {
  margin-bottom: 6px !important;
}
.baloot-consulting-form .form-row {
  margin-bottom: 0 !important;
}

/* کنترل فاصله افقی ستون‌ها در row-gutter-sm */
.baloot-consulting-form .row-gutter-sm > [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}

/* ظاهر فیلدها */
.baloot-consulting-form .form-control {
  border-radius: 10px;
  border: 1px solid transparent !important; /* برای اینکه focus border قابل کنترل باشد */
}

/* textarea جمع‌وجور */
.baloot-consulting-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Focus = نارنجی بلوط */
.baloot-consulting-form .form-control:focus {
  outline: none !important;
  border-color: #f08a24 !important;
  box-shadow: 0 0 0 0.18rem rgba(240, 138, 36, 0.25) !important;
}

/* متن راهنما کنار دکمه */
.baloot-consulting-form span {
  color: #777;
}

/* مورد 3: ارتفاع/پف کارت فرم کمتر (اگر card wrapper داری) */
.baloot-consulting-form .contact-form {
  padding-top: 16px;
  padding-bottom: 16px;
}

.baloot-consulting-form .form-control {
  text-align: right;
}


/* ======================================
   Baloot Services Carousel - FIX ALIGNMENT
====================================== */

/* اگر کلاس به سکشن اضافه کردی بهتر است:
   <section class="section baloot-services-carousel ...">
   در غیر این صورت همین selectorها را بدون پیشوند هم می‌شود زد.
*/

.baloot-services-carousel .owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.baloot-services-carousel .owl-carousel .owl-item {
  display: flex;
}

.baloot-services-carousel .card {
  width: 100%;
  height: 100%;
  margin-top: 0 !important;
}

.baloot-services-carousel .card-body {
  padding: 18px !important;
  margin: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* قاب ثابت برای آیکن */
.baloot-services-carousel .card-body .baloot-icon-wrap {
  width: 100%;
  height: 90px;              /* ارتفاع ثابت */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* خود تصویر: داخل قاب */
.baloot-services-carousel .card-body .baloot-icon-wrap img {
  max-width: 78px;
  max-height: 78px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

/* عنوان */
.baloot-services-carousel .card-body h4 {
  font-size: 1.05rem !important;
  line-height: 1.45 !important;
  margin: 0 0 8px !important;
}

/* متن: ارتفاع کنترل‌شده */
.baloot-services-carousel .card-body p.custom-text-size-1 {
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
  margin: 0 0 12px !important;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: calc(1.75em * 2);   /* همیشه دو خط جا */
}

/* CTA: همیشه پایین کارت */
.baloot-services-carousel .card-body a.custom-text-size-1 {
  margin-top: auto; /* هل بده به پایین */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.92rem !important;
  font-weight: 800;
  padding: 8px 10px;

  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  text-decoration: none;
}

.baloot-services-carousel .card-body a.custom-text-size-1:hover {
  border-color: #f08a24;
  color: #f08a24 !important;
}

/* حذف padding اضافی بوتسترپ */
.baloot-services-carousel .px-lg-4 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* فاصله داخل کاروسل */
.baloot-services-carousel .owl-item > div {
  width: 100%;
  padding: 8px 6px;
}
.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.about-body {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.1rem;
  color: #555;
}

.about-belief {
  font-size: 1.05rem;
  line-height: 2;
  font-weight: 500;
  margin: 1.6rem 0;
  color: #333;
  position: relative;
}

.about-belief::before {
  content: "—";
  margin-left: 0.5rem;
  color: #c9a36a; /* هماهنگ با رنگ برند */
}

.about-closing {
  font-size: 1rem;
  line-height: 1.9;
  margin-top: 1.5rem;
}



/* Scope to this page template only */
.page-template-page-consultant .baloot-consult-header.page-header-lg{
  padding: 28px 0 !important;
}
.page-template-page-consultant .baloot-consult-header h1{
  font-size: 44px !important;
  line-height: 1.2 !important;
}

/* Buttons */
.page-template-page-consultant .baloot-btn-primary{
  background: #DA8830;
  border-color: #DA8830 !important;
  color: #1f1f1f !important;
}
.page-template-page-consultant .baloot-btn-primary:hover{
  filter: brightness(0.98);
}
.page-template-page-consultant .baloot-btn-secondary{
  border: 1px solid rgba(0,0,0,.08);
}

/* Steps */
.page-template-page-consultant .baloot-step-item{
  min-height: 72px;
}

/* Cards become real tiles */
.page-template-page-consultant .baloot-consult-card{
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.page-template-page-consultant .baloot-consult-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.page-template-page-consultant .baloot-consult-card:focus,
.page-template-page-consultant .baloot-consult-card:focus-within{
  outline: 2px solid rgba(218,136,48,.35);
  outline-offset: 3px;
}

/* Slightly tighter hero spacing */
.page-template-page-consultant .baloot-consult-hero .custom-text-size-1{
  margin-bottom: 16px !important;
}

/* Mobile improvements */
@media (max-width: 767px){
  .page-template-page-consultant .baloot-consult-header h1{
    font-size: 34px !important;
  }
}


/* Consultant CTA block */
.baloot-consult-cta{
  padding: 48px 0 !important;
}

.baloot-consult-cta .baloot-mini-line{
  display:inline-block;
  width:48px;
  height:3px;
  background:#DA8830;
  border-radius:3px;
}

.baloot-consult-cta h2{
  line-height:1.25;
}

.baloot-consult-cta .baloot-cta-btn{
  background:#DA8830;
  color:#1f1f1f !important;
  border-radius:10px;
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}

.baloot-consult-cta .baloot-cta-btn:hover{
  filter: brightness(.98);
}

.baloot-consult-cta .baloot-cta-note{
  opacity:.8;
}

/* Mobile tighten */
@media (max-width: 991px){
  .baloot-consult-cta{
    padding: 36px 0 !important;
  }
}


/* Footer typography & spacing */
#footer h4{
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

#footer .footer-links li{
  margin-bottom: 8px;
  break-inside: avoid;
}

#footer .footer-links a{
  font-size: 14px;
  opacity: .85;
  transition: opacity .15s ease;
}

#footer .footer-links a:hover{
  opacity: 1;
  text-decoration: none;
}

/* Services: 2 columns under ONE heading (stable in RTL) */
#footer .footer-links--two-col{
  column-count: 2;
  column-gap: 24px;
}

/* "See all" links */
#footer .footer-more{
  opacity: .95;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Social icon size */
#footer .social-icons i{
  font-size: 18px;
}


/* ======================================
   Global Breadcrumb Density + Type (Fix)
   - Prevent wrap everywhere (single-line + ellipsis)
   - Reduce oversized font on internal pages
   - Remove default breadcrumb padding that makes it look "stretched"
====================================== */

.page-header .breadcrumb{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  /* compact */
  padding:0 !important;
  margin:0 0 8px !important;
  background:transparent !important;
  border-radius:0 !important;

  font-size:clamp(12px, 2.8vw, 14px) !important;
  line-height:1.25 !important;
}

/* Keep breadcrumb items inline so ellipsis works predictably */
.page-header .breadcrumb > li{ display:inline; }
.page-header .breadcrumb > li + li:before{ display:inline; }

/* Ensure links inherit the same compact type */
.page-header .breadcrumb a{
  font-size:inherit !important;
  line-height:inherit !important;
}

/* Single project: slightly tighter spacing */
body.single-project .page-header .breadcrumb{
  margin-bottom:6px !important;
}

/* Mobile: even tighter header rhythm */
@media (max-width: 575px){
  .custom-page-header-style-1.page-header-lg{
    padding:32px 0 !important;
  }
  body.single-project .page-header.page-header-background{
    padding-top:32px !important;
    padding-bottom:32px !important;
  }
}

/* ======================================
   Home Services Grid (4-per-row) - Compact UI
   Applies only to the home services section component
====================================== */

.baloot-services-grid .baloot-row-compact{
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

.baloot-services-grid .baloot-service-card{
  padding: 18px 16px;
  border: 1px solid rgba(33, 37, 41, 0.10);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.baloot-services-grid .baloot-service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  border-color: rgba(218, 136, 48, 0.45);
}

/* Icon container: fixed height for stable cards */
.baloot-services-grid .baloot-icon-wrap{
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.baloot-services-grid .baloot-icon-wrap img{
  max-width: 160px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.baloot-services-grid .baloot-card-title{
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 8px !important;
}

.baloot-services-grid .baloot-card-text{
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 12px !important;
  color: rgba(33, 37, 41, 0.78);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.8em * 2);
}

.baloot-services-grid .baloot-card-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(33, 37, 41, 0.16);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.baloot-services-grid .baloot-card-cta:hover{
  border-color: rgba(218, 136, 48, 0.75);
  color: #DA8830 !important;
}

/* Mobile & small screens: denser cards + 2 columns */
@media (max-width: 575px){
  .baloot-services-grid .baloot-row-compact{
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
  }
  .baloot-services-grid .baloot-service-card{
    padding: 14px 12px;
    border-radius: 12px;
  }
  .baloot-services-grid .baloot-icon-wrap{
    height: 104px;
    margin-bottom: 8px;
  }
  .baloot-services-grid .baloot-icon-wrap img{
    max-width: 140px;
    max-height: 100px;
  }
  .baloot-services-grid .baloot-card-title{
    font-size: 0.98rem;
  }
  .baloot-services-grid .baloot-card-text{
    font-size: 0.88rem;
  }
}


/* GLOBAL breadcrumb: force single line + ellipsis everywhere */
.page-header .breadcrumb,
.page-header ol.breadcrumb,
.page-header ul.breadcrumb,
.page-header nav.breadcrumb,
.page-header .breadcrumb-nav,
.page-header .breadcrumbs {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  padding: 0 !important;
  margin: 0 0 8px !important;
  background: transparent !important;

  font-size: 13px !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
}

/* make items inline so ellipsis works */
.page-header .breadcrumb *,
.page-header .breadcrumbs *{
  display: inline !important;
}



/* =====================================
   Header Brand (Icon + Text) – BalootWP
====================================== */

:root {
  --baloot-brand-mark-h: 52px;
  --baloot-brand-mark-h-sticky: 46px;
  --baloot-brand-mark-h-mobile: 40px;
  --baloot-brand-text-size: 20px;
  --baloot-brand-text-size-mobile: 16px;
}

#header .header-logo .baloot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#header .header-logo .baloot-brand__mark {
  height: var(--baloot-brand-mark-h);
  width: auto;
  display: block;
}

#header .header-logo .baloot-brand__text {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 500;
  font-size: var(--baloot-brand-text-size);
  line-height: 1;
  color: #6B4423; /* Baloot Brown */
  white-space: nowrap;
}
html.sticky-header-active #header .header-logo .baloot-brand__mark {
  height: var(--baloot-brand-mark-h-sticky);
}

@media (max-width: 768px) {
  #header .header-logo .baloot-brand {
    gap: 8px;
  }
  #header .header-logo .baloot-brand__mark {
    height: var(--baloot-brand-mark-h-mobile);
  }
  #header .header-logo .baloot-brand__text {
    font-size: var(--baloot-brand-text-size-mobile);
  }
}

.about-belief::before {
  content: "—";
  margin-left: 0.5rem;
  color: #c9a36a; /* هماهنگ با رنگ برند */
}

.about-closing {
  font-size: 1rem;
  line-height: 1.9;
  margin-top: 1.5rem;
}



/* Scope to this page template only */
.page-template-page-consultant .baloot-consult-header.page-header-lg{
  padding: 28px 0 !important;
}
.page-template-page-consultant .baloot-consult-header h1{
  font-size: 44px !important;
  line-height: 1.2 !important;
}

/* Buttons */
.page-template-page-consultant .baloot-btn-primary{
  background: #DA8830;
  border-color: #DA8830 !important;
  color: #1f1f1f !important;
}
.page-template-page-consultant .baloot-btn-primary:hover{
  filter: brightness(0.98);
}
.page-template-page-consultant .baloot-btn-secondary{
  border: 1px solid rgba(0,0,0,.08);
}

/* Steps */
.page-template-page-consultant .baloot-step-item{
  min-height: 72px;
}

/* Cards become real tiles */
.page-template-page-consultant .baloot-consult-card{
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.page-template-page-consultant .baloot-consult-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.page-template-page-consultant .baloot-consult-card:focus,
.page-template-page-consultant .baloot-consult-card:focus-within{
  outline: 2px solid rgba(218,136,48,.35);
  outline-offset: 3px;
}

/* Slightly tighter hero spacing */
.page-template-page-consultant .baloot-consult-hero .custom-text-size-1{
  margin-bottom: 16px !important;
}

/* Mobile improvements */
@media (max-width: 767px){
  .page-template-page-consultant .baloot-consult-header h1{
    font-size: 34px !important;
  }
}


/* Consultant CTA block */
.baloot-consult-cta{
  padding: 48px 0 !important;
}

.baloot-consult-cta .baloot-mini-line{
  display:inline-block;
  width:48px;
  height:3px;
  background:#DA8830;
  border-radius:3px;
}

.baloot-consult-cta h2{
  line-height:1.25;
}

.baloot-consult-cta .baloot-cta-btn{
  background:#DA8830;
  color:#1f1f1f !important;
  border-radius:10px;
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}

.baloot-consult-cta .baloot-cta-btn:hover{
  filter: brightness(.98);
}

.baloot-consult-cta .baloot-cta-note{
  opacity:.8;
}

/* Mobile tighten */
@media (max-width: 991px){
  .baloot-consult-cta{
    padding: 36px 0 !important;
  }
}


/* Footer typography & spacing */
#footer h4{
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

#footer .footer-links li{
  margin-bottom: 8px;
  break-inside: avoid;
}

#footer .footer-links a{
  font-size: 14px;
  opacity: .85;
  transition: opacity .15s ease;
}

#footer .footer-links a:hover{
  opacity: 1;
  text-decoration: none;
}

/* Services: 2 columns under ONE heading (stable in RTL) */
#footer .footer-links--two-col{
  column-count: 2;
  column-gap: 24px;
}

/* "See all" links */
#footer .footer-more{
  opacity: .95;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Social icon size */
#footer .social-icons i{
  font-size: 18px;
}

/* Mobile: make services single column */
@media (max-width: 575.98px){
  #footer .footer-links--two-col{
    column-count: 1;
  }
}
#footer .footer-brand{
  display: inline-block;
  margin: 6px 0 10px;
  opacity: .95;
}

#footer .footer-brand img{
  max-width: 100%;
  height: auto;
}

#footer .social-icons{
  gap: 10px;
}

#footer .social-icons i{
  font-size: 18px;
}


/* ======================================
   BalootWP - Urgent CTA (Readability Fix)
   Target: "اگر موضوع شما فوری است" alert block
   Brand colors: Brown #6B4423, Amber #DA8830, Soft White #F8F9FA, Neutral #212529
====================================== */

/* 1) Improve container contrast + legibility */
.alert.alert-dark {
  background: #212529 !important;           /* Deep Neutral */
  color: #F8F9FA !important;               /* Soft White */
  border: 1px solid rgba(248, 249, 250, .14) !important;
  border-radius: 14px;
}

.alert.alert-dark .font-weight-bold {
  color: #F8F9FA !important;
}

.alert.alert-dark p,
.alert.alert-dark .text-2 {
  color: rgba(248, 249, 250, .88) !important;
  line-height: 1.9;
}

/* icon (bolt) readable on dark */
.alert.alert-dark .fa-bolt {
  color: #DA8830 !important;               /* Amber Accent */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

/* 2) Buttons: strong contrast, consistent brand */
.alert.alert-dark .btn {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 10px 16px;
}

/* Primary: Amber filled */
.alert.alert-dark .btn.btn-primary {
  background: #DA8830 !important;          /* Amber */
  border-color: #DA8830 !important;
  color: #212529 !important;               /* readable on amber */
  box-shadow: 0 10px 24px rgba(218, 136, 48, .22);
}

.alert.alert-dark .btn.btn-primary:hover,
.alert.alert-dark .btn.btn-primary:focus {
  background: #c9771f !important;          /* slightly deeper amber */
  border-color: #c9771f !important;
  color: #212529 !important;
}

/* Outline primary: amber border + text on dark */
.alert.alert-dark .btn.btn-outline.btn-primary,
.alert.alert-dark .btn.btn-outline.btn-primary:visited {
  background: transparent !important;
  border-color: rgba(218, 136, 48, .75) !important;
  color: #DA8830 !important;
}

.alert.alert-dark .btn.btn-outline.btn-primary:hover,
.alert.alert-dark .btn.btn-outline.btn-primary:focus {
  background: rgba(218, 136, 48, .12) !important;
  border-color: #DA8830 !important;
  color: #F8F9FA !important;
}

/* Light outline: for "نمونه‌کارها" – readable, not washed */
.alert.alert-dark .btn.btn-outline.btn-light,
.alert.alert-dark .btn.btn-outline.btn-light:visited {
  background: transparent !important;
  border-color: rgba(248, 249, 250, .55) !important;
  color: rgba(248, 249, 250, .92) !important;
}

.alert.alert-dark .btn.btn-outline.btn-light:hover,
.alert.alert-dark .btn.btn-outline.btn-light:focus {
  background: rgba(248, 249, 250, .10) !important;
  border-color: rgba(248, 249, 250, .85) !important;
  color: #F8F9FA !important;
}

/* 3) Spacing & alignment for RTL + wrap */
.alert.alert-dark .d-flex.flex-wrap {
  gap: 10px;
}

.alert.alert-dark .btn.ml-2 {
  margin-left: 0 !important;  /* prevent odd spacing in RTL when wrapping */
}

/* 4) Optional: stronger separation from background */
.alert.alert-dark {
  box-shadow: 0 18px 40px rgba(33, 37, 41, .25);
}

/* 5) Mobile: stack buttons for clean readability */
@media (max-width: 576px) {
  .alert.alert-dark .d-flex.flex-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .alert.alert-dark .btn {
    width: 100%;
  }
}