body {
  margin: 0;

  direction: rtl !important;
  background-color: #f0f5f9;
}
.header {
  background-color: white;
  padding: 0.625rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.container-logo img {
  max-height: 3.75rem;
}
.container-btn {
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 0rem 3.125rem !important;
}
.questions-btn {
  color: black;
  border: none;
  border-radius: 1.375rem;
  font-size: 1rem;
  text-align: center;
  padding: 0.3125rem 0.625rem;
  margin: 0 0.3125rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.questions-btn:hover {
  background-color: #3bc0ed;
  color: #fff;
  border: none;
}
.support-btn {
  background-color: #3bc0ed;
  color: white;
  border: none;
  border-radius: 1.375rem;
  font-size: 1rem;
  text-align: center;
  padding: 0.3125rem 0.625rem;
  margin: 0 0.3125rem;
  white-space: nowrap;
}
.container-login {
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 0rem 3.125rem !important;
}
.menu-btn {
  background-color: white;
  color: black;
  border: none;
}
.login-btn {
  background-color: white;
  color: black;
  border: none;
  font-size: 1.375rem;
}
.login-btn a {
  text-decoration: none;
  background-color: white;
  color: black;
  font-size: 1.375rem;
}
.dropdown-toggle::after {
  content: none !important;
}
.logout-icon {
  cursor: pointer;
  background-color: #f0f0f0;

  padding: 0.625rem;
  margin-left: 1.25rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.logout-icon:hover {
  background-color: #3bc0ed;
  color: #fff;
}
/* تنظیمات کلی منو */
.custom-dropdown-menu .dropdown-item {
  font-size: 0.875rem;
  color: black;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* فاصله بین آیکون و متن */
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-bottom: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

.custom-dropdown-menu .dropdown-item i {
  color: #3dc1c6;
  font-size: 1rem;
}

.custom-dropdown-menu .dropdown-item:hover {
  background-color: rgba(61, 193, 198, 0.1);
  transform: scale(1.02);
}

.custom-dropdown-menu .dropdown-item:hover {
  color: black; /* متن همچنان مشکی باشد */
}

.custom-dropdown-menu .dropdown-item:hover i {
  color: #3dc1c6; /* آیکون به همان رنگ بماند */
}
.menu-hamburger {
  display: none;
}
.hum-btn {
  background-color: white !important;
  color: black !important;
  border: none !important;
}
.hum-btn i {
  font-size: 1.875rem;
}
.login-btn-hum a {
  text-decoration: none;
  color: #fff;
}
/* منوی همبرگری */
.offcanvas {
  overflow: auto;
  direction: ltr;
}
.offcanvas > * {
  direction: rtl; /* بازگرداندن جهت متن به چپ به راست برای محتوای داخلی */
}
.offcanvas-header {
  background-color: #007bff; /* رنگ آبی */
  color: #fff;
  display: flex;
  justify-content: right !important;
}

.offcanvas-header h6 {
  margin: 1.25rem 0.625rem;
}
.offcanvas-body a {
  display: flex !important;
  justify-content: space-between;
}

.menu-links a {
  display: block;
  padding: 0.625rem 0.9375rem;
  text-decoration: none;
  color: #333;
  border-bottom: 0.0625rem solid #eaeaea;
}

.menu-links a:hover {
  background-color: #f5f5f5;
  color: #007bff;
}
.offcanvas-half {
  width: 50% !important;
  display: none !important;
}

/* تنظیمات برای ریسپانسیو */
@media (max-width: 48rem) {
  .container-btn {
    display: none;
  }
  .container-login {
    display: none;
  }
  .menu-hamburger {
    display: inline;
  }
  .offcanvas-half {
    display: inline !important;
  }
}

.hero {
  position: relative;
  width: 100%;
  height: 55vh;
  overflow: hidden;
  text-align: center;
  margin-top: 5rem;
  color: white;
  padding: 3rem 0;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../image/bg001.jpg") no-repeat center/cover;
  box-shadow: inset 0 0.625rem 0.25rem rgba(0, 0, 0, 0.9);
  z-index: -1;
}
.hero::after {
  content: ""; /* لایه‌ی تیره اضافی */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* پوشش تیره */
  z-index: -1;
}
.hero .btn {
  background: #03576e;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.3125rem;
  margin-top: 1.875rem;
  margin-left: 0.9375rem;
}
/* استایل بخش سرویس */
.service {
  padding: 3.125rem 0;
  background-color: #f4f4f4;
  width: 100%;
}

.service h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 3.125rem;
  text-align: center;
}
/* استایل کارت‌های سرویس */
.service-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
/* استایل کلی کارت‌ها */
.service-cards .card {
  width: 22% !important;
  height: 18.75rem !important;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 0.625rem !important;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  cursor: pointer !important;
  transition: transform 0.3s ease !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
  color: white !important;
  overflow: hidden !important;
}

.service-cards .card:hover {
  transform: scale(1.05) !important;
} /* استایل شمارنده سرویس‌ها */
/* استایل شمارنده سرویس‌ها */
.service-cards .card .service-count {
  font-size: 2rem;
  color: white;
  position: absolute;
  bottom: 0.625rem;
  right: 0.625rem;
  text-align: center;
}

/* hsjal */
/* محتوای کارت */
.service .card-content {
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ) !important; /* لایه‌ی تیره برای خوانایی متن */
  height: 40%;
  padding: 1rem !important;
  text-align: center !important;
  width: 100% !important;
  position: absolute !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
/* عنوان و متن داخل کارت */
.service .card-content h3 {
  font-size: 1.5rem !important;
  margin-bottom: 0.625rem !important;
  font-weight: bold !important;
}
/* استایل لینک */
.service .card-link {
  text-decoration: none !important;
  color: #ff9800 !important;
  font-weight: bold !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 1.1rem !important;
}
/* اندازه آیکون داخل لینک */
.service .card-link img {
  width: 1.875rem !important;
  height: auto !important;
}
/* افکت هاور روی لینک */
.service .card-link:hover {
  color: #ff5722 !important;
}
/* ریسپانسیو */
/* استایل برای نمایشگرهای کوچک (موبایل) */
@media (max-width: 48rem) {
  .service-cards {
    flex-direction: column; /* کارت‌ها به صورت ستونی نمایش داده می‌شوند */
    gap: 1.5rem; /* فاصله کمتر بین کارت‌ها */
  }

  .service-cards .card {
    width: 90% !important; /* عرض کارت‌ها بیشتر می‌شود */
    height: 15.625rem !important; /* ارتفاع کارت‌ها کمتر می‌شود */
    margin: 0 auto; /* کارت‌ها وسط‌چین می‌شوند */
  }

  .service .card-content h3 {
    font-size: 1.2rem !important; /* کاهش اندازه متن عنوان */
  }

  .service .card-link {
    font-size: 1rem !important; /* کاهش اندازه متن لینک */
  }

  .service-cards .card .service-count {
    font-size: 1.5rem !important; /* کاهش اندازه شمارنده */
  }
}

/* استایل برای تبلت */
@media (min-width: 48.0625) and (max-width: 64rem) {
  .service-cards {
    flex-wrap: wrap; /* کارت‌ها به صورت چند ردیفی نمایش داده می‌شوند */
    gap: 1.5rem; /* کاهش فاصله کارت‌ها */
  }

  .service-cards .card {
    width: 45% !important; /* عرض کارت‌ها بیشتر می‌شود */
    height: 17.5rem !important; /* ارتفاع کارت‌ها کاهش می‌یابد */
  }

  .service .card-content h3 {
    font-size: 1.4rem !important; /* کاهش اندازه متن عنوان */
  }

  .service-cards .card .service-count {
    font-size: 1.8rem !important; /* کاهش اندازه شمارنده */
  }
}

.wrapper-champain {
  background-color: #e7eaeb;
  border: 0.3125rem solid #0e878b;
  border-radius: 0.625rem 0.625rem;
  padding: 1.5rem;
  margin-top: 1.875rem;
}

/* new champain */
.campaigns .campaign-card {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.campaigns .campaign-image {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
}
.campaigns .progress-bar {
  background-color: #0aa4d3;
  position: relative;
}
.campaigns .progress-bar span {
  position: absolute;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: white;
}
.campaigns .btn-donate {
  background-color: #0aa4d3;
  color: white;
}
.campaigns .btn-donate:hover {
  background-color: #088ab8;
}

.btn-champain-details:hover {
  background-color: #0aa4d3 !important;
  border-color: #0aa4d3 !important;
}
.campaigns .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* تعداد خطوط */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em; /* تنظیم ارتفاع برای ۳ خط */
}

/* تنظیمات کلی برای بخش پرداخت */
.payment-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 60vh;
  text-align: center;
  background-color: #f9f9f9;
  padding: 0.25rem;
}
.payment-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.9375rem;
}
.payment-section .description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.25rem;
  line-height: 1.5;
  max-width: 37.5rem;
}
.amount-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.25rem;
}
.price-display {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}
#fast-pay-btn {
  padding: 0rem 2.5rem;
  height: 3.125rem;
  width: 9.375rem;
  font-size: 1rem;
  background-color: #3bc0ed;
  color: white;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
}
#fast-amount {
  display: flex;
  justify-content: left;
  width: 12.5rem;
  padding: 0.625rem;
  font-size: 1.2rem;
  text-align: center;
  border: none;
  margin: 0 0.625rem;
}
#fast-amount:focus {
  outline: none;
}
.input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  border-bottom: 0.0625rem solid black;
  margin: 0rem 0.25rem 0rem 2.5rem;
}
.input-wrapper span {
  font-size: 1.2rem;
  color: #333;
}
.amount-control .btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.btn-wrapper button {
  width: 2.1875rem;
  height: 2.1875rem;

  border: none;
  background-color: white;
  font-size: 1.375rem;
}
.btn-wrapper button:hover {
  background-color: #dce7ef;
  border-radius: 0.625rem;
}
/* ریسپانسیو */
@media (max-width: 48rem) {
  .amount-control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  #fast-pay-btn {
    padding: 0rem 1.875rem;
    height: 3.125rem;
    width: 8.75rem;
    font-size: 1rem;
  }
  #fast-amount {
    width: 10rem;
    padding: 0.625rem;
    font-size: 1.2rem;

    margin: 0 0.625rem;
  }
}
@media (max-width: 36rem) {
  #fast-pay-btn {
    padding: 0rem 1.875rem;
    height: 2.5rem;
    width: 7.5rem;
    font-size: 1rem;
  }
  #fast-amount {
    padding: 0.4375rem;
  }
}
/* footer */
.footer {
  background-color: #004b4d;
  color: white;
}
.footer ul {
  padding: 0;
  list-style: none;
}
.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  transform: scale(1);
  transition: all 0.3s ease;
}
.footer ul li a:hover {
  color: #31dbe3;
  transform: scale(1.5);
}

.footer hr {
  border-color: #dee2e6;
}

.footer p {
  font-size: 0.9rem;
}
.container-social-link {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.container-social-link img {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0rem 0.3125rem;
  color: black;
}
.list-unstyled a {
  text-decoration: none;
  color: white;
}
.social-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.social-icons .icon {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0rem 0.3125rem;
}
.social-icons .icon:hover {
  filter: none;
  transform: scale(1.1);
}
.icon-w {
  height: 3.125rem !important;
  width: 3.125rem !important;
  margin-top: -0.3125rem !important;
}
/* نوشته بالای ایکون */
.social-icons a {
  position: relative;
  display: inline-block;
}

.social-icons a::after {
  content: attr(data-title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #555;
  color: #fff;
  padding: 0.3125rem 0.5rem;
  border-radius: 0.3125rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.social-icons a:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ریسپانسیو */
@media (max-width: 48rem) {
  .footer .row {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* ستون اول و دوم کنار هم (هر کدام 50٪ عرض) */
  .footer .col-md-4:nth-child(1),
  .footer .col-md-4:nth-child(2) {
    flex: 0 0 50%; /* هر ستون 50٪ */
    max-width: 50%;
    text-align: center; /* وسط‌چین کردن متن */
  }

  /* ستون سوم به زیر دو ستون دیگر برود */
  .footer .col-md-4:nth-child(3) {
    flex: 0 0 100%; /* کل عرض */
    max-width: 100%;
    text-align: center;
  }

  .social-icons .icon {
    width: 2.1875rem;
    height: 2.1875rem;
    margin: 0.3125rem;
  }
  .icon-w {
    height: 2.8125rem !important;
    width: 2.8125rem !important;
    margin-top: -0.125rem !important;
  }
}

@media (max-width: 36rem) {
  .footer ul li {
    font-size: 0.8rem;
  }

  .social-icons .icon {
    width: 1.875rem;
    height: 1.875rem;
  }
  .icon-w {
    height: 2.5rem !important;
    width: 2.5rem !important;
    margin-top: -0.125rem !important;
  }
}
.telephone-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #3bc0ed;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  position: fixed;
  bottom: 0.25rem;
  right: 0.25rem;
  color: white;
}
.telephone-btn i {
  font-size: 1.5625rem;
}
/* استایل اسکرول برای تمام عناصر سایت */
*::-webkit-scrollbar {
  width: 0.375rem;
  height: 0.5rem;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: #d3d3d3;
  border-radius: 0.625rem;
  transition: width 0.2s ease;
}
/* حالت هاور */
*::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
*::-webkit-scrollbar-thumb:active {
  width: 0.9375rem !important;
  background: #808080;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* حذف دکمه‌های افزایش و کاهش در مرورگرهای مختلف */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* برای مرورگر Firefox */
}
/* استایل سایز بزرگ  */
@media (min-width: 1400px) {
  .container,
  .container-lg {
    max-width: 90% !important;
    min-width: 89% !important;
  }
}

@media (min-width: 1700px) {
  .footer {
    font-size: 1.5rem !important;
  }
}
/* استایل tooltip برای پروفایل کاربر */
.user-profile-tooltip {
  position: relative;
  display: inline-block;
}

.user-profile-tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.user-profile-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.user-profile-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
