/* --------------------------- */
/* Creative Expert Segment CSS */
/* --------------------------- */

.creative-segment {
  position: relative;
  min-height: 786px;
  color: var(--color-white, #fff);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box; /* تا ارتفاع و عرض با احتساب بردر محاسبه شود */
  --creative-mobile-border: rgba(255, 255, 255, 0.19); /* رنگ بردر موبایل (قابل‌تغییر) */
}

/* تصویر سرتاسری با object-fit */
.creative-segment__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* لایهٔ گرادیانت جداگانه روی تصویر و زیر محتوا */
.creative-segment__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 120vw 27vw at 88% 100%, rgba(25, 195, 177, 0.92) 10%, rgba(25, 195, 177, 0.00) 66%);
  opacity: 1;
}

/* محتوای اصلی */
.creative-segment__inner {
  position: relative;
  z-index: 2; /* بالاتر از گرادیانت و تصویر */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 56px 56px 28px;
  margin-top: auto;
}

/* متن‌ها روی سمت راست گرادیانت */
.creative-segment__text {
  width: min(720px, 58%);
  text-align: right;
}

.creative-segment__title {
  margin: 0 0 12px;
  font-size: clamp(40px, 4vw, 50px);
  line-height: 1.2;
  font-weight: 700;
}

.creative-segment__subtitle {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
}

/* ردیف پایینی: خط + دکمه (دکمه سمت چپ) */
.creative-segment__cta {
  margin-top: auto;
  display: flex;
  flex-direction: row-reverse; /* دکمه چپ، خط بین دکمه و متن */
  align-items: center;
  gap: 16px;
}

/* خط جداکننده بین متن و دکمه */
.creative-segment__line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .2);
}

/* شخصی‌سازی کوچک برای دکمه (استایل اصلی از buttons.css) */
.creative-segment .expert-btn {
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 992px) {
  .creative-segment {
    min-height: 620px;
  }

  .creative-segment__inner {
    padding: 40px 24px 20px;
  }

  .creative-segment__gradient {
    background: radial-gradient(ellipse calc(100vw + 350px) 100vw at 0% 100%, rgba(25, 195, 177, 0.92) 10%, rgba(25, 195, 177, 0.00) 66%);
  }
  .creative-segment__cta{
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .creative-segment {
    min-height: 620px;
    /* خواسته شما: بردر 20px و فاصله‌ی کم از لبه‌های صفحه */
    border: 1px solid var(--creative-mobile-border);
    border-radius: 20px;
    margin: clamp(6px, 2.5vw, 12px);
    /* overflow: hidden از قبل هست تا تصویر و گرادیانت از بردر بیرون نزند */
  }

  .creative-segment__text {
    width: 100%;
  }

  .creative-segment__cta {
    gap: 12px;
  }

  .creative-segment__line {
    background: rgba(255, 255, 255, .28);
  }
}
