/* ===================================
   Experience Section - Optimized Light Style
   Prefix: expx-
   Full Width Version - No Glass Wrapper
   =================================== */

.expx-experience {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  overflow: hidden;
  direction: rtl;

  background:
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

/* نورهای تزئینی پس‌زمینه - سبک‌شده بدون blur */
.expx-experience::before,
.expx-experience::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.expx-experience::before {
  width: 260px;
  height: 260px;
  top: 40px;
  right: -100px;
  background: rgba(107, 146, 215, 0.12);
}

.expx-experience::after {
  width: 240px;
  height: 240px;
  left: -90px;
  bottom: 30px;
  background: rgba(24, 33, 74, 0.08);
}

/* اگر هنوز در HTML وجود دارد، قاب شیشه‌ای را خنثی کن */
.expx-glass-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}

/* کانتینر اصلی محتوا */
.expx-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* بخش عنوان */
.expx-heading {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.expx-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;
  padding: 8px 18px;

  border-radius: 999px;

  color: #18214A;
  font-size: 0.95rem;
  font-weight: 800;

  background: #eef4ff;
  border: 1px solid rgba(107, 146, 215, 0.22);

  box-shadow: none;
}

.expx-title {
  margin: 0;

  color: #18214A;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.7px;
}

.expx-title::after {
  content: "";
  display: block;

  width: 96px;
  height: 5px;
  margin: 20px auto 0;

  border-radius: 999px;
  background: #6B92D7;
  opacity: 0.8;
}

.expx-subtitle {
  max-width: 680px;
  margin: 22px auto 0;

  color: #4b557e;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 2;
}

/* کارت‌ها */
.expx-item-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* کارت اصلی - سبک‌شده بدون backdrop-filter */
.expx-item {
  position: relative;
  overflow: hidden;

  min-height: 100%;
  padding: 18px;

  border-radius: 30px;

  background: #ffffff;
  border: 1px solid rgba(107, 146, 215, 0.18);

  box-shadow: 0 10px 26px rgba(24, 33, 74, 0.08);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* افکت داخلی کارت - سبک و ثابت */
.expx-item::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(107, 146, 215, 0.08),
    transparent 46%
  );

  pointer-events: none;
  z-index: 0;
}

.expx-item:hover {
  border-color: rgba(107, 146, 215, 0.36);
  box-shadow: 0 12px 30px rgba(24, 33, 74, 0.1);
}

/* باکس تصویر */
.expx-image-wrap {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 220px;
  overflow: hidden;

  border-radius: 24px;

  background: #18214A;

  box-shadow: none;
}

.expx-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(180deg, transparent 52%, rgba(24, 33, 74, 0.22));

  pointer-events: none;
}

.expx-item-pic {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;

  transition: none;
}

/* حذف scale و filter تصویر برای روانی بیشتر */
.expx-item:hover .expx-item-pic {
  transform: none;
  filter: none;
}

/* محتوای کارت */
.expx-item-content {
  position: relative;
  z-index: 1;

  padding: 24px 6px 4px;
  text-align: right;
}

.expx-item-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 48px;
  height: 34px;
  margin-bottom: 14px;

  border-radius: 999px;

  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;

  background: #18214A;

  box-shadow: none;
}

.expx-item-title {
  margin: 0 0 12px;

  color: #18214A;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.4;
}

.expx-item-text {
  margin: 0;

  color: #4b557e;
  font-size: 1rem;
  font-weight: 500;
  line-height: 2;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 992px) {
  .expx-experience {
    padding: 80px 18px;
  }

  .expx-heading {
    margin-bottom: 42px;
  }

  .expx-item-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .expx-image-wrap {
    height: 210px;
  }
}

@media (max-width: 768px) {
  .expx-item-container {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .expx-item {
    border-radius: 26px;
  }

  .expx-item-content {
    text-align: center;
  }

  /* موبایل: حذف کامل ترنزیشن‌ها برای اسکرول روان‌تر */
  .expx-experience *,
  .expx-experience *::before,
  .expx-experience *::after {
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }
}

@media (max-width: 576px) {
  .expx-experience {
    padding: 64px 14px;
  }

  .expx-heading {
    margin-bottom: 34px;
  }

  .expx-kicker {
    font-size: 0.85rem;
    padding: 7px 14px;
  }

  .expx-title {
    font-size: 1.85rem;
  }

  .expx-subtitle {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .expx-item {
    padding: 14px;
    border-radius: 22px;
    box-shadow: 0 6px 16px rgba(24, 33, 74, 0.07);
  }

  .expx-image-wrap {
    height: 190px;
    border-radius: 18px;
  }

  .expx-item-title {
    font-size: 1.25rem;
  }

  .expx-item-text {
    font-size: 0.94rem;
    line-height: 1.9;
  }

  /* موبایل کوچک: نورهای تزئینی حذف شوند */
  .expx-experience::before,
  .expx-experience::after {
    display: none;
  }
}
