/* Base & reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.faq-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  max-width: 700px;
  width: 100%;
  overflow: hidden;
  margin: 0 1rem;
}
header {
  background: #753a88;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
}
header h1 {
  font-size: 1.5rem;
  font-weight: 500;
}
header .btn-login {
  background: #fff;
  color: #753a88;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
header .btn-login:hover {
  background: #f2f2f2;
}
.faq-item + .faq-item {
  border-top: 1px solid #e0e0e0;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: #f9f9f9;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question[aria-expanded="true"] {
  background: #e8e8e8;
}
.faq-answer {
  background: #fff;
  font-size: 1rem;
  color: #444;
  height: 0;
  padding: 0 1.5rem;
  opacity: 0;
  overflow: hidden;
  transition: height 0.3s linear, padding-top 0.3s linear, padding-bottom 0.3s linear, opacity 0.3s linear;
}
.faq-answer.expanded {
  height: auto;
  padding: 1rem 1.5rem;
  opacity: 1;
}
/* List styling */
.faq-answer ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}
.faq-answer ul li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.faq-answer audio {
  display: block;
  width: 100%;
  margin: 1rem 0;
}
footer {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  padding: 1rem;
  background: #f5f5f5;
}
/* Responsive adjustments */
@media (max-width: 600px) {
  body { padding: 1rem; }
  .faq-container { margin: 3rem auto 2rem; }
  header { flex-direction: column; align-items: flex-start; }
  header .btn-login { align-self: flex-end; margin-top: 0.5rem; }
  header h1 { font-size: 1.25rem; }
  .faq-question { padding: 0.75rem 1rem; font-size: 1rem; }
  .faq-answer { padding: 0.75rem 1rem; }
  .faq-answer ul { padding-left: 1rem; }
}

body.faq {
  padding-top: 6rem;
  padding-bottom: 4rem;
}






/* 1. Make the question a flex container */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;                /* space between text & icon */
  padding: 0.75rem 1rem;
}

/* 2. Use a real SVG icon (or data-URI) for the chevron */
.chevron {
  flex-shrink: 0;             /* never let it compress */
  width: 1.5rem;
  height: 1.5rem;
  background: url('../assets/chevron-down.svg') 
              no-repeat center center;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* 3. Rotate when expanded */
.faq-question[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* 4. Tweak on mobile if needed */
@media (max-width: 600px) {
  .chevron {
    width: 0.85rem;
    height: 0.85rem;
  }
  .faq-question {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
  }
}