/* تعریف فونت لوکال - وزن معمولی */
@font-face {
  font-family: 'IRANSans';
  src: url('https://stylei.ir/wp-content/uploads/IRANSansWeb.woff2') format('woff2'),
       url('https://stylei.ir/wp-content/uploads/IRANSansWeb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* تعریف فونت لوکال - وزن پررنگ */
@font-face {
  font-family: 'IRANSans';
  src: url('https://stylei.ir/wp-content/uploads/IRANSansWeb_Bold.woff2') format('woff2'),
       url('https://stylei.ir/wp-content/uploads/IRANSansWeb_Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* استایل کلی سکشن */
.section-8-wrapper .section-eight {
  padding: 40px 5px;
  font-family: 'IRANSans', sans-serif;
  text-align: center;
  background: #FFFFFF;
}

/* استایل کارت جدید */
.section-8-wrapper .card-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E5E4E2;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* استایل عنوان */
.section-8-wrapper .section-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
  position: relative;
  font-family: 'IRANSans', sans-serif;
}

.section-8-wrapper .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #00BFFF;
  border-radius: 2px;
}

/* استایل لیست مراحل */
.section-8-wrapper .steps-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

/* استایل هر مرحله */
.section-8-wrapper .step-item {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* خط عمودی بین مراحل */
.section-8-wrapper .step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 24px;
  width: 2px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    #00BFFF 50%,
    transparent 0%
  );
  background-size: 2px 10px;
}

/* استایل شماره مرحله */
.section-8-wrapper .step-number {
  width: 50px;
  height: 50px;
  background: #00BFFF;
  color: #FFFFFF;
  font-size: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'IRANSans', sans-serif;
}

/* استایل محتوای مرحله */
.section-8-wrapper .step-content {
  text-align: right;
  flex: 1;
}

/* استایل عنوان مرحله */
.section-8-wrapper .step-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
  font-family: 'IRANSans', sans-serif;
}

/* استایل توضیحات مرحله */
.section-8-wrapper .step-description {
  font-size: 13px;
  color: #666;
  margin: 0;
  font-family: 'IRANSans', sans-serif;
}

/* استایل wrapper لینک آموزش */
.section-8-wrapper .tutorial-link-wrapper {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  margin-top: 25px; /* فاصله 5 پیکسل از کارت */
}

/* استایل لینک آموزش */
.section-8-wrapper .tutorial-link {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  color: #040720;
  text-decoration: none;
  font-family: 'IRANSans', sans-serif;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.section-8-wrapper .tutorial-link:hover {
  color: #0000A5;
}

/* افکت خط زیرین */
.section-8-wrapper .tutorial-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: #00BFFF;
  transition: width 0.3s ease;
}

.section-8-wrapper .tutorial-link:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* استایل خطوط متحرک دور متن */
.section-8-wrapper .border-animation {
  position: absolute;
  background: #00BFFF;
}

.section-8-wrapper .border-top {
  top: 0;
  right: 0;
  width: 0;
  height: 2px;
  animation: border-top 4s infinite;
}

.section-8-wrapper .border-right {
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  animation: border-right 4s infinite;
  animation-delay: 1s;
}

.section-8-wrapper .border-bottom {
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  animation: border-bottom 4s infinite;
  animation-delay: 2s;
}

.section-8-wrapper .border-left {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 0;
  animation: border-left 4s infinite;
  animation-delay: 3s;
}

/* انیمیشن خطوط */
@keyframes border-top {
  0% { width: 0; }
  25% { width: 100%; }
  100% { width: 100%; }
}

@keyframes border-right {
  0% { height: 0; }
  25% { height: 100%; }
  100% { height: 100%; }
}

@keyframes border-bottom {
  0% { width: 0; }
  25% { width: 100%; }
  100% { width: 100%; }
}

@keyframes border-left {
  0% { height: 0; }
  25% { height: 100%; }
  100% { height: 100%; }
}

/* تبلت */
@media (min-width: 768px) {
  .section-8-wrapper .section-eight {
    padding: 50px 5px;
  }

  .section-8-wrapper .card-wrapper {
    padding: 30px;
  }

  .section-8-wrapper .section-title {
    font-size: 32px;
  }

  .section-8-wrapper .step-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .section-8-wrapper .step-title {
    font-size: 16px;
  }

  .section-8-wrapper .step-description {
    font-size: 14px;
  }

  .section-8-wrapper .step-item:not(:last-child)::after {
    right: 28px;
    height: 40px;
  }

  .section-8-wrapper .tutorial-link {
    font-size: 24px;
  }

  .section-8-wrapper .tutorial-link-wrapper {
    padding: 12px 18px;
    margin-top: 5px;
  }
}

/* دسکتاپ */
@media (min-width: 1024px) {
  .section-8-wrapper .section-eight {
    padding: 60px 5px;
  }

  .section-8-wrapper .card-wrapper {
    padding: 40px;
  }

  .section-8-wrapper .section-title {
    font-size: 36px;
  }

  .section-8-wrapper .step-number {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .section-8-wrapper .step-title {
    font-size: 18px;
  }

  .section-8-wrapper .step-description {
    font-size: 15px;
  }

  .section-8-wrapper .step-item:not(:last-child)::after {
    right: 32px;
    height: 40px;
  }

  .section-8-wrapper .tutorial-link {
    font-size: 28px;
  }

  .section-8-wrapper .tutorial-link-wrapper {
    padding: 15px 20px;
    margin-top: 5px;
  }
}