body {
}

.faq-container {
  width: 60vw;
  height: fit-content;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  box-sizing: border-box;
  background: url("../bg-faq.png") no-repeat center center/cover;
}

.faq-container h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #000000;
  text-align: center;
  width: 100%; /* centers heading even when container is left-aligned */
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px dotted #2a2929;
  padding: 1rem 0;
  width: 100%; /* ensures full width for alignment */
}

.faq-question {
  display: flex;
  justify-content: space-between; /* pushes + to far right */
  align-items: center; /* vertically centers text & + */
  cursor: pointer;
  width: 100%;
}

.faq-question h3 {
  font-size: 0.9rem;

  color: #2a2929;
  margin: 0;
  flex: 1; /* ensures text takes available space */
  text-align: left;
  letter-spacing: 0.05rem;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000;
  margin-left: 1rem;
  flex-shrink: 0; /* prevents shrinking */
}

.faq-answer {
  font-size: 0.9rem !important;
  color: #1d1c1c;
  margin-top: 0.5rem;
  display: none;
  font-weight: 300;
  letter-spacing: 0.02rem;
  text-align: left;
  width: 100%; /* keeps answer aligned neatly under question */
}

.faq-answer.show {
  display: block;
}

/* =============== RESPONSIVE BREAKPOINTS =============== */

@media (max-width: 1200px) {
  .faq-container {
    width: 70vw;
    padding: 1.8rem;
  }
  .faq-container h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 1000px) {
  .faq-container {
    width: 75vw;
    padding: 1.6rem;
  }
  .faq-container h1 {
    font-size: 2.1rem;
  }
  .faq-question h3 {
    font-size: 1rem;
  }
}

@media (max-width: 800px) {
  .faq-container {
    width: 85vw;
    padding: 1.5rem;
  }
  .faq-container h1 {
    font-size: 2rem;
  }
  .faq-answer {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .faq-container {
    width: 90vw;
    padding: 1.2rem;
  }
  .faq-container h1 {
    font-size: 1.8rem;
  }
  .faq-question h3 {
    font-size: 0.95rem;
  }
  .faq-answer {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .faq-container {
    width: 95vw;
    padding: 1rem;
  }
  .faq-container h1 {
    font-size: 1.6rem;
  }
  .faq-question h3 {
    font-size: 0.9rem;
  }
  .faq-answer {
    font-size: 0.85rem;
  }
}

@media (max-width: 320px) {
  .faq-container {
    width: 98vw;
    padding: 0.8rem;
  }
  .faq-container h1 {
    font-size: 1.4rem;
  }
  .faq-question h3 {
    font-size: 0.85rem;
  }
  .faq-answer {
    font-size: 0.8rem;
  }
}
