.consult-box {
  width: 240px;
  padding: 24px;
  border-radius: 24px;
  background-color: #ffffff;
  position: relative;
  text-align: center;
  font-family: "Vazirmatn", "iranyekan", sans-serif;
  overflow: hidden;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* گوشه‌ها (before & after) */
.consult-box::before,
.consult-box::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* گوشه بالا چپ - گرادینت عادی */
.consult-box::before {
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  background:
    linear-gradient(60deg, rgba(255, 255, 255, 1) 0%, rgba(15, 23, 57, 1) 30%, rgba(255, 255, 255, 1) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 24px 0 0 0;
}

/* گوشه پایین راست - گرادینت عادی */
.consult-box::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
  background:
    linear-gradient(60deg, rgba(255, 255, 255, 1) 0%, rgba(15, 23, 57, 1) 60%, rgba(255, 255, 255, 1) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 0 0 24px 0;
}

/* آیکن و دایره */
.icon-wrapper {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  z-index: 1;
}

.circle-bg {
  background-color: #FFE58F;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  right: -10px;
  z-index: 0;
  transition: all 0.3s ease;
}

/* مخفی کردن دایره در هاور */
.consult-box:hover .circle-bg {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.icon {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 1;
  transition: filter 0.3s ease;
}

/* متن‌ها */
.consult-box h3,
.consult-box p {
  z-index: 1;
  position: relative;
  color: #000;
  margin: 0;
  transition: color 0.3s ease;
}

.consult-box h3 {
  font-size: 16px;
  margin-bottom: 4px;
  text-align: center;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.consult-box p {
  font-size: 14px;
}

/* 🌟 حالت هاور */
.consult-box:hover {
  background-color: #0f1729;
  transition: all 0.3s ease;
}

.consult-box:hover h3,
.consult-box:hover p {
  color: #ffffff;
}

.consult-box:hover .icon {
  filter: brightness(0) invert(1);
}

/* گرادینت گوشه‌ها در هاور → سفید کامل */
.consult-box:hover::before {
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  background:
    linear-gradient(60deg, rgba(15, 23, 57, 1) 0%, rgba(255, 255, 255, 11) 30%, rgba(15, 23, 57, 1) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 24px 0 0 0;
}

/* گوشه پایین راست */
.consult-box:hover::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
  background:
    linear-gradient(60deg, rgba(15, 23, 57, 1) 0%, rgba(255, 255, 255, 11) 30%, rgba(15, 23, 57, 1) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 0 0 24px 0;
}

/*  */

/* پایه‌ی کارت */
.bp-consult-card {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  /* جهت پیش‌فرض در کنترل‌ها تنظیم می‌شود (row / row-reverse) */
}

/* محفظه آیکن (سمت راست در حالت row-reverse) */
.bp-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* اندازه از کنترل‌ها ست می‌شود */
}

/* حباب آیکن */
.bp-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* اگر SVG بزرگ‌تر بود */
  /* ابعاد و پس‌زمینه و بردر از کنترل‌ها ست می‌شود */
  z-index: 2;
}

/* خود آیکن */
.bp-icon-img,
.bp-icon-svg svg {
  display: block;
  /* اندازه از کنترل icon_size ست می‌شود */
}

/* دایره‌ی تأکید زیر آیکن */
.bp-accent {
  position: absolute;
  right: 0; /* از کنترل accent_right اوِرراید می‌شود */
  top: calc(100% + 6px); /* از کنترل accent_top اوِرراید می‌شود */
  width: 28px; height: 28px; /* از کنترل accent_size اوِرراید می‌شود */
  border-radius: 9999px; /* همیشه دایره */
  pointer-events: none;
  z-index: 0;
}

/* متن‌ها (سمت چپ در حالت row-reverse) */
.bp-content {
  display: flex;
  flex-direction: column;
  /* text-align از کنترل‌ها ست می‌شود */
}

.bp-title {
  line-height: 1.3;
  /* رنگ و شادو و تایپو از کنترل‌ها ست می‌شود */
}