/* تعریف فونت لوکال */
@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-2-wrapper .section-two {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}


.section-2-wrapper .section-title {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
}


.section-2-wrapper .section-title span {
  margin-left: 0;
  margin-right: 5px; /* فاصله دادن از سمت راست چون سایت RTL هست */
}

.section-2-wrapper .section-logo {
  margin: 0; /* اطمینان از صفر شدن هرگونه مارجین اضافه لوگو */
}

.section-2-wrapper .services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.section-2-wrapper .service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-2-wrapper .image-wrapper {
  position: relative;
  width: 135px;
  height: 135px;
}

.section-2-wrapper .service-item img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.section-2-wrapper .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'IRANSans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.section-2-wrapper .service-item.hidden {
  display: none;
}

.section-2-wrapper .show-more-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background: #00C4B4;
  color: #FFF;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-family: 'IRANSans', sans-serif;
  cursor: pointer;
}

/* تبلت */
@media (min-width: 768px) {
  .section-2-wrapper .section-two {
    padding: 50px 50px 30px;
  }

  .section-2-wrapper .section-title span {
    font-size: 22px;
  }

  .section-2-wrapper .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .section-2-wrapper .image-wrapper {
    width: 120px;
    height: 120px;
  }

  .section-2-wrapper .overlay-text {
    font-size: 17px;
  }

  .section-2-wrapper .show-more-btn {
    font-size: 18px;
  }
}

/* دسکتاپ */
@media (min-width: 1024px) {
  .section-2-wrapper .section-two {
    padding: 60px 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-2-wrapper .section-title span {
    font-size: 24px;
  }

  .section-2-wrapper .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .section-2-wrapper .image-wrapper {
    width: 150px;
    height: 150px;
  }

  .section-2-wrapper .overlay-text {
    font-size: 19px;
  }

  .section-2-wrapper .show-more-btn {
    font-size: 20px;
  }
}