/* ============================================================
   FAQ Section
   ============================================================ */

.faq-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(57, 113, 177, 0.16);
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-header .section-sub {
  color: var(--text-soft);
  font-size: 15px;
  margin-top: 10px;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- FAQ Item ---------- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
  border-color: rgba(22, 162, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(22, 162, 255, 0.1);
}

/* ---------- Question Button ---------- */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: left; /* Keep LTR alignment even in RTL if needed */
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--blue);
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.4s ease;
  line-height: 1;
}

/* Rotate the + into an x */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ---------- Answer ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(3, 10, 19, 0.4);
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- RTL Support ---------- */
[dir="rtl"] .faq-question {
  text-align: right;
}
[dir="rtl"] .faq-icon {
  margin-left: 0;
  margin-right: auto;
}