.faq {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.faq_holder {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 370px;
  transition: max-height 0.45s ease;
}
.faq.expanded .faq_holder {
  max-height: 9999px;
}
.container_title {
  position: relative;
  margin: 26px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page_title {
  display: flex;
  width: 100%;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #333333;
}

.faq__container_title--icon {
  width: 24px;
  height: 24px;
}

.faq__item {
  background: var(--white);
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #e5e5e5;
  border-bottom: 0;
  transition: all 0.4s ease;
  opacity: 1;
  max-height: 1000px;
}

.faq__item:last-child {
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0 0 8px 8px;
}

.faq__item:first-child {
  border-radius: 12px 12px 0 0;
}

.faq__item input {
  display: none;
}

.faq__item--question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  gap: 10px;
}

.faq__item--question h3 {
  font-weight: 500;
  width: 80%;
  font-size: 15px;
  line-height: 30px;
}

.faq__item--question img {
  transition: all 0.3s ease;
  width: 20px;
  height: 20px;
}

.faq__item--answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-gray);
  font-size: 14px;
  text-wrap-style: pretty;
  text-align: justify;
  line-height: 30px;
}

.faq__item input:checked ~ .faq__item--answer {
  max-height: 200px;
  padding-top: 10px;
}

.faq__item input:checked + .faq__item--question img {
  transform: rotateX(180deg);
}

/* حالت مخفی برای سوالات بعد از چهارم */
.hidden-faq {
  opacity: 0;
  overflow: hidden;
  max-height: 0;
  padding: 0;
}

/* افکت fade */
.faq__fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 30%,
    rgba(255, 255, 255, 0.95) 70%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.faq.expanded .faq__fade-overlay {
  opacity: 0;
  visibility: hidden;
}

/* دکمه مشاهده بیشتر/کمتر */
.faq__toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  background: none;
  width: 100%;
  margin-bottom: 50px;
}

.faq__toggle-btn img {
  transition: transform 0.3s ease;
}

.faq.expanded .faq__toggle-btn img {
  transform: rotate(180deg);
}

.no-transition {
  transition: none !important;
}
.faq__toggle-btn.fixed img {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
}
@media (max-width: 575px) {
  .faq__toggle-btn.fixed {
    position: sticky;
    bottom: 0;
    background: #fff;
    height: 50px;
  }
}
@media (max-width: 480px) {
  .faq__item input:checked + .faq__item--question img {
    transform: rotateX(180deg) translate(0, 10px);
  }

  .faq__item input:checked ~ .faq__item--answer {
    max-height: 600px;
  }

  .faq__toggle-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}
