
/* General FAQ Styling */
.faq {
  max-width: 100%;
  margin: 20px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  padding: 0 15px;
}
.faq h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
}
.faq h2::after {
  content: '';
  width: 50px;
  height: 3px;
  background: #ff6b6b;
  display: block;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* FAQ Item */
.faq-item {
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Question */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #f7f7f7;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s;
  border-radius: 8px;
}
.faq-question:hover {
  background: #e9ecef;
}
.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s, color 0.3s;
}

/* Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  background: #fff;
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
  transition: max-height 0.5s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  padding: 12px 16px;
}

/* Icon Rotation for Active */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #ff6b6b;
}

/* Mobile Optimization */
@media (max-width: 600px) {
  .faq h2 {
    font-size: 1.6rem;
  }
  .faq-question {
    font-size: 0.95rem;
    padding: 12px 14px;
  }
  .faq-icon {
    font-size: 1.4rem;
  }
  .faq-answer {
    font-size: 0.92rem;
    padding: 0 14px;
  }
  .faq-item.active .faq-answer {
    padding: 10px 14px;
  }
}
@media (max-width: 400px) {
  .faq h2 {
    font-size: 1.4rem;
  }
  .faq-question {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  .faq-icon {
    font-size: 1.3rem;
  }
  .faq-answer {
    font-size: 0.88rem;
    padding: 0 12px;
  }
  .faq-item.active .faq-answer {
    padding: 8px 12px;
  }
}
