
/* ========================================
   FAQ SECTION
======================================== */

.faq-section {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px;
  border-top: 1px solid var(--line, rgba(15, 23, 42, 0.08));
}

.faq-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ========================================
   FAQ HEADER
======================================== */

.faq-header h2 {
  margin: 0;
  color: var(--text-color, #0f172a);
  font-size: clamp(1.5rem, 3vw, 34px);

  letter-spacing: -0.02em;
}

/* ========================================
   FAQ LIST
======================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  
  margin-top: 28px;
}

/* ========================================
   FAQ CARD
======================================== */

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 240, 245, 0.5));
      backdrop-filter: blur(18px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: #d4dbe5;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
}

/* Open card stays white */
.faq-item[open] {
  background: #ffffff;
  border-color: #d9e2f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

/* ========================================
   QUESTION
======================================== */

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: initial;
  gap: 8px;
  padding: 14px 16px;
  color: #172033;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 240, 245, 0.5));
  border: 1px solid rgba
#ffffffb3
(255, 255, 255, .7);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

/* Keyboard focus */
.faq-item summary:focus-visible {
  outline: 2px solid #31549c;
  outline-offset: -3px;
  border-radius: 8px;
}

/* ========================================
   PLUS ICON
======================================== */

.faq-icon {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 22px;
  height: 22px;
  
  border-radius: 50%;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.772);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(90deg);
  background: #f1f5f9;
  color: #172033;
}

/* ========================================
   ANSWER
======================================== */

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 22px;
  background: #ffffff;
  opacity: 0;
  transition:
    grid-template-rows 0.3s ease,
    opacity 0.25s ease,
    padding-bottom 0.3s ease;
}

/* Smoothly reveal the answer */
.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 21px;
  opacity: 1;
}

.faq-answer p {
  min-height: 0;
  overflow: hidden;
  max-width: 700px;
  margin: 0;
  color: #647084;
  background: #ffffff;
  font-family: "Raleway", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 600px) {
  .faq-section {
    padding: 20px 16px;
  }

  .faq-list {
    gap: 10px;
    margin-top: 22px;
  }

  .faq-item {
    border-radius: 10px;
  }

  .faq-item summary {
    gap: 12px;
    padding: 16px;
    font-size: 14px;
  }

  .faq-icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 18px;
  }

  .faq-answer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .faq-item[open] .faq-answer {
    padding-bottom: 17px;
  }

  .faq-answer p {
    font-size: 13px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-icon,
  .faq-answer {
    transition: none;
  }
}
