/* ================================
   RTL Support Styles
   برای راست‌چین کردن قالب‌های بوت‌استرپ
   ================================ */

/* جهت کلی صفحه */
/* body, html {
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", "IRANSans", "IRANYekan", "Tahoma", "Segoe UI", Arial, sans-serif;
}  */

 body {
    font-family: 'Vazirmatn', sans-serif;  /* Vazirmatn نام فونت جدید است */
    font-weight: 400;  /* وزن معمولی؛ برای Bold از 700 استفاده کنید */
} 

/* تغییر چینش ردیف‌ها در بوت‌استرپ */
/* .row {
  flex-direction: row-reverse;
} */

/* منوها و ناوبری */
nav, .navbar, .nav {
  direction: rtl;
  text-align: right;
}

.navbar .ms-auto,
.navbar .me-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* لیست‌ها */
ul, ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

/* فرم‌ها */
.form-check {
  padding-right: 1.5em;
  padding-left: 0;
}

.form-check-input {
  margin-right: -1.5em;
  margin-left: 0;
}

/* فلکس و آیکون‌ها */
.d-flex {
  flex-direction: row-reverse;
}

.text-start {
  text-align: right !important;
}
.text-end {
  text-align: left !important;
}

/* مارجین و پدینگ های رایج */
.ms-1, .ms-2, .ms-3, .ms-4, .ms-5 {
  margin-left: 0 !important;
}
.me-1, .me-2, .me-3, .me-4, .me-5 {
  margin-right: 0 !important;
}

.ps-1, .ps-2, .ps-3, .ps-4, .ps-5 {
  padding-left: 0 !important;
}
.pe-1, .pe-2, .pe-3, .pe-4, .pe-5 {
  padding-right: 0 !important;
}

/* اسلایدر و کاروسل */
.carousel-control-prev {
  right: auto;
  left: 0;
}
.carousel-control-next {
  left: auto;
  right: 0;
}

/* متن‌ها */
p, h1, h2, h3, h4, h5, h6 {
  text-align: right;
  direction: rtl;
}

/* سایدبار رو بیار سمت راست */
#header {
  right: 0;
  left: auto;
}

/* محتوای اصلی فاصله از راست بگیره */
.main {
  margin-right: 0;  /* عرض سایدبارت هرچقدره همینو بذار */
  margin-left: 0;
}

@media (min-width: 1200px) {
  .header~main,
  .header~#footer {
    margin-right: 300px; /* برای RTL */
    margin-left: 0;
  }
}

.p1{
  font-size: 23px;
  text-align: center;
  margin-top: -30px;
}

.p2{
  font-size: 18px;
  margin-top: 30px;
}

.p24{
  text-align: center;
  margin-bottom: -20px;
  font-size: 18px;
}

.h22{
  margin-bottom: 0px;
}

.h23{
  text-align: center;
  margin-top: 0;
  margin-bottom: 50px;
}
.h24{
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
}



.custom-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #149ddd;
    color: white;
    text-decoration: none;
    border-radius: 20px; 
    font-family: Arial, sans-serif;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
    margin: 0 auto;
    display: block;
    width: fit-content;
    margin-top: 10px;
}

.custom-button:hover {
    color: black;
}


    .stats-container {
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 15px;
      background-color: #f8f9fa;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .stat-item {
      text-align: center;
      color: #fd0000;
    }

    .stat-number {
      font-size: 1.5rem;
      font-weight: bold;
      color: #007bff;
      display: block;
      text-align: center;
    }

    .stat-label {
      font-size: 19px;
      color: #000000;
      text-align: center;
    }

        .service-item {
      background-color: #fff;
      border-radius: 15px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      width: 320px;
      height: auto;
      margin: 8px;
      padding: 15px 10px 10px 10px;
      text-align: center;
    }

    .contact-item {
      background-color: #fff;
      border-radius: 15px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      width: 320px;
      height: auto;
      margin: 8px;
      padding: 15px 10px 10px 10px;
      text-align: center;
    }


    /* فقط در بخش تماس، چیدمان فلکس راست‌به‌چپ باشد */
.contact .d-flex {
  flex-direction: row-reverse;
}


.contact .contact-item .icon {
  margin-right: 0;
  margin-left: 30px;
}

/* سایدبار در موبایل مخفی باشد */
@media (max-width: 1199px) {
  #header {
    right: -300px; /* از سمت راست خارج شود (برای RTL) */
    left: auto;
    transition: right 0.3s ease-in-out; /* انیمیشن نرم */
    position: fixed;
    width: 300px;
    height: 100%;
    overflow-y: auto;
    z-index: 9998;
  }

  #header.header-show {
    right: 0; /* با کلیک باز شود */
  }

  .header-toggle {
    position: fixed;
    top: 15px;
    left: 15px; /* برای RTL، آیکون همبرگر سمت چپ (انتهای صفحه) باشد */
    right: auto;
    z-index: 9999;
    display: block !important; /* همیشه در موبایل نمایش داده شود */
  }

  main,
  #footer {
    margin-right: 0 !important; /* محتوای اصلی بدون حاشیه سایدبار */
  }
}

/* استایل آیکون همبرگر */
.header-toggle {
  color: #fff;
  background-color: #149ddd; /* رنگ اکسنت شما */
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.header-toggle:hover {
  background-color: #0e7fb3; /* رنگ hover */
}

/* در دسکتاپ، سایدبار همیشه باز و آیکون مخفی */
@media (min-width: 1200px) {
  #header {
    right: 0;
    left: auto;
  }

  .header-toggle {
    display: none !important;
  }

  main,
  #footer {
    margin-right: 300px; /* حاشیه برای سایدبار */
    margin-left: 0;
  }
}

.ham1{
  padding-top: 3px;
  padding-left: 6px;
}

/* عرض اسکرول بار */
::-webkit-scrollbar {
  width: 10px;
}

/* پس‌زمینه مسیر اسکرول */
::-webkit-scrollbar-track {
  background: #0a182b;
}

/* خود اسکرول (thumb) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #149DDD, #ffffff);
  border-radius: 10px;
  transition: background 0.3s ease;
}

/* هاور کردن روی اسکرول */
::-webkit-scrollbar-thumb:hover {
  background: #149DDD;
}

/* وقتی اسکرول را نگه می‌داریم */
::-webkit-scrollbar-thumb:active {
  background: #149DDD;
}

/* گوشه‌های اسکرول بار */
::-webkit-scrollbar-track-piece {
  background: transparent;
}

/* دکمه‌های بالا و پایین (اختیاری) */
::-webkit-scrollbar-button {
  display: none;
}

.h211{
  font-size: 15px;
  text-align: center;
  margin-top: -10px;
  margin-bottom: 15px;
}

.port1{
  border-radius: 10px;
}

.port2{
    padding-bottom: 40px;
}

.h41{
  border-radius: 10px;
}


.services .row {
  flex-direction: row-reverse;
}

.contact .row {
  flex-direction: row-reverse;
}

/* اصلاح نمایش بخش خدمات در مانیتورهای بزرگ */
#services .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* فاصله یکنواخت بین کارت‌ها */
}

#services .service-item {
  flex: 1 1 30%;
  max-width: 31%;
  min-width: 300px;
  box-sizing: border-box;
}

/* در لپ‌تاپ‌ها یا مانیتورهای متوسط */
@media (max-width: 1200px) {
  #services .service-item {
    flex: 1 1 45%;
    max-width: 48%;
  }
}

/* در موبایل */
@media (max-width: 768px) {
  #services .service-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


#contact .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#contact .contact-item {
  flex: 1 1 30%;
  max-width: 31%;
  min-width: 300px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  #contact .contact-item {
    flex: 1 1 45%;
    max-width: 48%;
  }
}

@media (max-width: 768px) {
  #contact .contact-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* .em1{
font-family: var(--default-font);
  font-weight: 300;
} */